summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.h
diff options
context:
space:
mode:
authorJiri Olsa2017-10-11 17:01:41 +0200
committerArnaldo Carvalho de Melo2017-11-16 18:37:49 +0100
commit8b4c74dc5cd40a3bc77f8bc2b6b7b33dc125e302 (patch)
treea6002e803ec28cd9fcf5388466a85c41d9ea7bb2 /tools/perf/util/annotate.h
parentperf annotate: Add symbol__calc_percent function (diff)
downloadkernel-qcow2-linux-8b4c74dc5cd40a3bc77f8bc2b6b7b33dc125e302.tar.gz
kernel-qcow2-linux-8b4c74dc5cd40a3bc77f8bc2b6b7b33dc125e302.tar.xz
kernel-qcow2-linux-8b4c74dc5cd40a3bc77f8bc2b6b7b33dc125e302.zip
perf annotate: Add symbol__calc_lines function
Replace symbol__get_source_line() with symbol__calc_lines(), which calculates the source line tree over the struct annotation_line. This will allow us to remove redundant struct source_line in following patches. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Andi Kleen <andi@firstfloor.org> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20171011150158.11895-19-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/annotate.h')
-rw-r--r--tools/perf/util/annotate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h
index 6056840da4c9..927810b19f0d 100644
--- a/tools/perf/util/annotate.h
+++ b/tools/perf/util/annotate.h
@@ -66,6 +66,7 @@ struct sym_hist_entry {
struct annotation_data {
double percent;
+ double percent_sum;
struct sym_hist_entry he;
};
@@ -78,6 +79,7 @@ struct annotation_line {
float ipc;
u64 cycles;
size_t privsize;
+ char *path;
int samples_nr;
struct annotation_data samples[0];
};