summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.h
diff options
context:
space:
mode:
authorTaeung Song2017-07-20 22:18:05 +0200
committerArnaldo Carvalho de Melo2017-07-21 17:02:38 +0200
commit461c17f00f400f95116880d91d20a7fcd84263a9 (patch)
tree9e90d493d49065b41387ba79fc6645cafd8b0813 /tools/perf/util/annotate.h
parentperf hists: Pass perf_sample to __symbol__inc_addr_samples() (diff)
downloadkernel-qcow2-linux-461c17f00f400f95116880d91d20a7fcd84263a9.tar.gz
kernel-qcow2-linux-461c17f00f400f95116880d91d20a7fcd84263a9.tar.xz
kernel-qcow2-linux-461c17f00f400f95116880d91d20a7fcd84263a9.zip
perf annotate: Store the sample period in each histogram bucket
We'll use it soon, when fixing --show-total-period. Signed-off-by: Taeung Song <treeze.taeung@gmail.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/r/1500500215-16646-1-git-send-email-treeze.taeung@gmail.com [ split from a larger patch, do the math in __symbol__inc_addr_samples() ] 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h
index 720f18195046..9ce575c25fd9 100644
--- a/tools/perf/util/annotate.h
+++ b/tools/perf/util/annotate.h
@@ -88,6 +88,7 @@ double disasm__calc_percent(struct annotation *notes, int evidx, s64 offset,
struct sym_hist {
u64 nr_samples;
+ u64 period;
struct sym_hist_entry addr[0];
};