Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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.org


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 4c650ddc
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;