mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-10 04:58:08 +07:00
perf annotate browser: Add key bindings help window
Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@gmail.com> 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-1txmtzf71eqie5xcukbfxors@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
2402e4a936
commit
54e7a4e88e
@ -581,10 +581,7 @@ static int annotate_browser__run(struct annotate_browser *self, int evidx,
|
|||||||
struct rb_node *nd = NULL;
|
struct rb_node *nd = NULL;
|
||||||
struct map_symbol *ms = self->b.priv;
|
struct map_symbol *ms = self->b.priv;
|
||||||
struct symbol *sym = ms->sym;
|
struct symbol *sym = ms->sym;
|
||||||
const char *help = "<-/ESC: Exit, TAB/shift+TAB: Cycle hot lines, "
|
const char *help = "Press 'h' for help on key bindings";
|
||||||
"H: Hottest line, ->/ENTER: Line action, "
|
|
||||||
"O: Offset view, "
|
|
||||||
"S: Source view";
|
|
||||||
int key;
|
int key;
|
||||||
|
|
||||||
if (ui_browser__show(&self->b, sym->name, help) < 0)
|
if (ui_browser__show(&self->b, sym->name, help) < 0)
|
||||||
@ -637,16 +634,30 @@ static int annotate_browser__run(struct annotate_browser *self, int evidx,
|
|||||||
else
|
else
|
||||||
nd = self->curr_hot;
|
nd = self->curr_hot;
|
||||||
break;
|
break;
|
||||||
case 'H':
|
case K_F1:
|
||||||
case 'h':
|
case 'h':
|
||||||
|
ui_browser__help_window(&self->b,
|
||||||
|
"UP/DOWN/PGUP\n"
|
||||||
|
"PGDN/SPACE Navigate\n"
|
||||||
|
"q/ESC/CTRL+C Exit\n\n"
|
||||||
|
"-> Go to target\n"
|
||||||
|
"<- Exit\n"
|
||||||
|
"h Cycle thru hottest instructions\n"
|
||||||
|
"j Toggle showing jump to target arrows\n"
|
||||||
|
"J Toggle showing number of jump sources on targets\n"
|
||||||
|
"n Search next string\n"
|
||||||
|
"o Toggle disassembler output/simplified view\n"
|
||||||
|
"s Toggle source code view\n"
|
||||||
|
"/ Search string\n"
|
||||||
|
"? Search previous string\n");
|
||||||
|
continue;
|
||||||
|
case 'H':
|
||||||
nd = self->curr_hot;
|
nd = self->curr_hot;
|
||||||
break;
|
break;
|
||||||
case 'S':
|
|
||||||
case 's':
|
case 's':
|
||||||
if (annotate_browser__toggle_source(self))
|
if (annotate_browser__toggle_source(self))
|
||||||
ui_helpline__puts(help);
|
ui_helpline__puts(help);
|
||||||
continue;
|
continue;
|
||||||
case 'O':
|
|
||||||
case 'o':
|
case 'o':
|
||||||
self->use_offset = !self->use_offset;
|
self->use_offset = !self->use_offset;
|
||||||
if (self->use_offset)
|
if (self->use_offset)
|
||||||
|
Loading…
Reference in New Issue
Block a user