]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Move symbol__calc_percent() call to outside symbol__disassemble()
authorJiri Olsa <jolsa@kernel.org>
Wed, 15 Nov 2017 11:20:08 +0000 (12:20 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 17 Nov 2017 15:16:26 +0000 (12:16 -0300)
commit30203598405de53f7fee033c68eb0cce101bb49c
tree6fea5cd8024e59803c2e8f6ddf343280c9c7ae17
parent013fff7765095163a209c5020877b14fc2ade706
perf tools: Move symbol__calc_percent() call to outside symbol__disassemble()

We need to call symbol__calc_percent() periodicaly for top, so it's no
longer convenient to keep it in symbol__disassemble().

Let's separate the symbol__disassemble() to allocate and init
the symbol annotation structs and symbol__calc_percent() to
compute the lines percentages based on symbol hists data.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-gtnp8t4tb00q6lag07psn5nq@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/annotate.c
tools/perf/ui/gtk/annotate.c
tools/perf/util/annotate.c