perf hists: Add __hist_entry__snprintf function
authorJiri Olsa <[email protected]>
Thu, 22 Sep 2016 15:36:29 +0000 (17:36 +0200)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 22 Sep 2016 16:08:56 +0000 (13:08 -0300)
commit9da44db1493a9d384ddc1bcd1553a1803ff985b6
tree55767da5d73cd2edb78e7b17605d056880a64140
parent3becf4525d9c0fb9cf8ff657b2aec1c733bc742f
perf hists: Add __hist_entry__snprintf function

Add __hist_entry__snprintf() to take a perf_hpp_list as an argument
instead of using he->hists->hpp_list.

This way we can display arbitrary list of entries regardless of the
hists setup, which will be useful in the upcoming c2c patch series.

Signed-off-by: Jiri Olsa <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Don Zickus <[email protected]>
Cc: Joe Mario <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/ui/stdio/hist.c