perf hists browser: Honour the help line provided by builtin-{top,report}.c
authorArnaldo Carvalho de Melo <[email protected]>
Fri, 19 Jun 2015 20:30:20 +0000 (17:30 -0300)
committerArnaldo Carvalho de Melo <[email protected]>
Fri, 19 Jun 2015 20:30:20 +0000 (17:30 -0300)
commit5f00b0f45bc3f1e77f0db0e915fd3302db669914
treea7cee8263e6b00080ac915273bef04bccf2fa0ea
parent516e536849d26a2bcacd9050f4a7222a14c0f9e4
perf hists browser: Honour the help line provided by builtin-{top,report}.c

The hists_browser was replacing whatever helpline provided by 'top' or
'report' with a static "Press '?' for help on key bindings", fix it.

Now the message passed by top appears at the bottom of the screen:

"For a higher level overview, try: perf top --sort comm,dso"

As well the message that will be added when the user presses 'f' to
disable the events, something along the lines of "press f again to
re-enable...".

Cc: Adrian Hunter <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Don Zickus <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/ui/browsers/hists.c