aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/ui/browsers/annotate.c
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2018-08-04 13:05:16 +0000
committerArnaldo Carvalho de Melo <[email protected]>2018-08-08 18:55:51 +0000
commitd4265b1a1b9b58df9c3bc0a3a7aa5b72c079c77a (patch)
tree21b5b57ca450858684e60e3f61ef3c47e366788c /tools/perf/ui/browsers/annotate.c
parentperf annotate: Pass 'struct annotation_options' to map_symbol__annotation_dump() (diff)
downloadkernel-d4265b1a1b9b58df9c3bc0a3a7aa5b72c079c77a.tar.gz
kernel-d4265b1a1b9b58df9c3bc0a3a7aa5b72c079c77a.zip
perf annotate: Pass browser percent_type in annotate_browser__calc_percent()
Pass browser percent_type in annotate_browser__calc_percent(). Signed-off-by: Jiri Olsa <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: David Ahern <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/ui/browsers/annotate.c')
-rw-r--r--tools/perf/ui/browsers/annotate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/ui/browsers/annotate.c b/tools/perf/ui/browsers/annotate.c
index cfe611c28987..2a3a34d450d5 100644
--- a/tools/perf/ui/browsers/annotate.c
+++ b/tools/perf/ui/browsers/annotate.c
@@ -318,7 +318,7 @@ static void annotate_browser__calc_percent(struct annotate_browser *browser,
double percent;
percent = annotation_data__percent(&pos->al.data[i],
- PERCENT_HITS_LOCAL);
+ browser->opts->percent_type);
if (max_percent < percent)
max_percent = percent;