perf annotate: Introduce annotation_line__max_percent()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 15 Mar 2018 20:04:53 +0000 (17:04 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 20 Mar 2018 16:19:30 +0000 (13:19 -0300)
commit2f025ea0bac2f99a2800f43f139f57c226d3b08b
treee4b822464fe8c388f59961398cdb62fdb64dcbd2
parentecda45bd6cfe0badda0e8215c5a008eaf7647716
perf annotate: Introduce annotation_line__max_percent()

Out of the annotate_browser__write() routine, to be used in the --stdio2
mode.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-0he0wyy4haswqi1qb35x37do@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/annotate.c
tools/perf/util/annotate.c
tools/perf/util/annotate.h