Commit d4265b1a authored by Jiri Olsa's avatar Jiri Olsa Committed by Arnaldo Carvalho de Melo

perf annotate: Pass browser percent_type in annotate_browser__calc_percent()

Pass browser percent_type in annotate_browser__calc_percent().
Signed-off-by: default avatarJiri 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.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 4c650ddc
...@@ -318,7 +318,7 @@ static void annotate_browser__calc_percent(struct annotate_browser *browser, ...@@ -318,7 +318,7 @@ static void annotate_browser__calc_percent(struct annotate_browser *browser,
double percent; double percent;
percent = annotation_data__percent(&pos->al.data[i], percent = annotation_data__percent(&pos->al.data[i],
PERCENT_HITS_LOCAL); browser->opts->percent_type);
if (max_percent < percent) if (max_percent < percent)
max_percent = percent; max_percent = percent;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment