提交 2d5646c0 编写于 作者: A Arnaldo Carvalho de Melo

perf hists browser: Add missing hotkeys to the help window

The navigation keys were missing (UP, DOWN arrows, etc).

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-3pnln0bws5v0yoqwd3f020nx@git.kernel.orgSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 db45bd90
...@@ -886,17 +886,20 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events, ...@@ -886,17 +886,20 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events,
case NEWT_KEY_F1: case NEWT_KEY_F1:
case 'h': case 'h':
case '?': case '?':
ui__help_window("h/?/F1 Show this window\n" ui__help_window("h/?/F1 Show this window\n"
"TAB/UNTAB Switch events\n" "UP/DOWN/PGUP\n"
"q/CTRL+C Exit browser\n\n" "PGDN/SPACE Navigate\n"
"q/ESC/CTRL+C Exit browser\n\n"
"For multiple event sessions:\n\n"
"TAB/UNTAB Switch events\n\n"
"For symbolic views (--sort has sym):\n\n" "For symbolic views (--sort has sym):\n\n"
"-> Zoom into DSO/Threads & Annotate current symbol\n" "-> Zoom into DSO/Threads & Annotate current symbol\n"
"<- Zoom out\n" "<- Zoom out\n"
"a Annotate current symbol\n" "a Annotate current symbol\n"
"C Collapse all callchains\n" "C Collapse all callchains\n"
"E Expand all callchains\n" "E Expand all callchains\n"
"d Zoom into current DSO\n" "d Zoom into current DSO\n"
"t Zoom into current Thread\n"); "t Zoom into current Thread\n");
continue; continue;
case NEWT_KEY_ENTER: case NEWT_KEY_ENTER:
case NEWT_KEY_RIGHT: case NEWT_KEY_RIGHT:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册