perf annotate: Pass browser percent_type in annotate_browser__calc_percent()
authorJiri Olsa <jolsa@kernel.org>
Sat, 4 Aug 2018 13:05:16 +0000 (15:05 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 8 Aug 2018 18:55:51 +0000 (15:55 -0300)
Pass browser percent_type in annotate_browser__calc_percent().

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/20180804130521.11408-16-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/annotate.c

index cfe611c28987c0a6847c890955bd197c2306ec0e..2a3a34d450d5f283a8eff829938b29096d9d6d6f 100644 (file)
@@ -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;