From: Jiri Olsa Date: Sat, 4 Aug 2018 13:05:16 +0000 (+0200) Subject: perf annotate: Pass browser percent_type in annotate_browser__calc_percent() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d4265b1a1b9b58df9c3bc0a3a7aa5b72c079c77a;p=openwrt%2Fstaging%2Fblogic.git 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 Cc: Alexander Shishkin Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/r/20180804130521.11408-16-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- 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;