mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
perf ui hist browser: Fixup key bindings
To match what is shown when '?' or 'H' is pressed, i.e. the keybind help window. Cc: Frederic Weisbecker <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
59e8fe32fc
commit
4694153c25
1 changed files with 7 additions and 8 deletions
|
|
@ -215,12 +215,12 @@ static int hist_browser__run(struct hist_browser *self, const char *title,
|
|||
"Press '?' for help on key bindings") < 0)
|
||||
return -1;
|
||||
|
||||
newtFormAddHotKey(self->b.form, 'A');
|
||||
newtFormAddHotKey(self->b.form, 'a');
|
||||
newtFormAddHotKey(self->b.form, '?');
|
||||
newtFormAddHotKey(self->b.form, 'h');
|
||||
newtFormAddHotKey(self->b.form, 'H');
|
||||
newtFormAddHotKey(self->b.form, 'd');
|
||||
newtFormAddHotKey(self->b.form, 'D');
|
||||
newtFormAddHotKey(self->b.form, 't');
|
||||
|
||||
newtFormAddHotKey(self->b.form, NEWT_KEY_LEFT);
|
||||
newtFormAddHotKey(self->b.form, NEWT_KEY_RIGHT);
|
||||
|
|
@ -232,7 +232,7 @@ static int hist_browser__run(struct hist_browser *self, const char *title,
|
|||
if (es->reason != NEWT_EXIT_HOTKEY)
|
||||
break;
|
||||
switch (es->u.key) {
|
||||
case 'd': { /* Debug */
|
||||
case 'D': { /* Debug */
|
||||
static int seq;
|
||||
struct hist_entry *h = rb_entry(self->b.top,
|
||||
struct hist_entry, rb_node);
|
||||
|
|
@ -771,18 +771,17 @@ int hists__browse(struct hists *self, const char *helpline, const char *ev_name)
|
|||
default:;
|
||||
}
|
||||
|
||||
key = toupper(key);
|
||||
switch (key) {
|
||||
case 'A':
|
||||
case 'a':
|
||||
if (browser->selection->map == NULL &&
|
||||
browser->selection->map->dso->annotate_warned)
|
||||
continue;
|
||||
goto do_annotate;
|
||||
case 'D':
|
||||
case 'd':
|
||||
goto zoom_dso;
|
||||
case 'T':
|
||||
case 't':
|
||||
goto zoom_thread;
|
||||
case 'H':
|
||||
case 'h':
|
||||
case '?':
|
||||
do_help:
|
||||
ui__help_window("-> Zoom into DSO/Threads & Annotate current symbol\n"
|
||||
|
|
|
|||
Loading…
Reference in a new issue