diff options
| -rw-r--r-- | tools/perf/util/ui/browsers/hists.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/tools/perf/util/ui/browsers/hists.c b/tools/perf/util/ui/browsers/hists.c index dd512b73b015..dafdf6775d77 100644 --- a/tools/perf/util/ui/browsers/hists.c +++ b/tools/perf/util/ui/browsers/hists.c | |||
| @@ -215,12 +215,12 @@ static int hist_browser__run(struct hist_browser *self, const char *title, | |||
| 215 | "Press '?' for help on key bindings") < 0) | 215 | "Press '?' for help on key bindings") < 0) |
| 216 | return -1; | 216 | return -1; |
| 217 | 217 | ||
| 218 | newtFormAddHotKey(self->b.form, 'A'); | ||
| 219 | newtFormAddHotKey(self->b.form, 'a'); | 218 | newtFormAddHotKey(self->b.form, 'a'); |
| 220 | newtFormAddHotKey(self->b.form, '?'); | 219 | newtFormAddHotKey(self->b.form, '?'); |
| 221 | newtFormAddHotKey(self->b.form, 'h'); | 220 | newtFormAddHotKey(self->b.form, 'h'); |
| 222 | newtFormAddHotKey(self->b.form, 'H'); | ||
| 223 | newtFormAddHotKey(self->b.form, 'd'); | 221 | newtFormAddHotKey(self->b.form, 'd'); |
| 222 | newtFormAddHotKey(self->b.form, 'D'); | ||
| 223 | newtFormAddHotKey(self->b.form, 't'); | ||
| 224 | 224 | ||
| 225 | newtFormAddHotKey(self->b.form, NEWT_KEY_LEFT); | 225 | newtFormAddHotKey(self->b.form, NEWT_KEY_LEFT); |
| 226 | newtFormAddHotKey(self->b.form, NEWT_KEY_RIGHT); | 226 | newtFormAddHotKey(self->b.form, NEWT_KEY_RIGHT); |
| @@ -232,7 +232,7 @@ static int hist_browser__run(struct hist_browser *self, const char *title, | |||
| 232 | if (es->reason != NEWT_EXIT_HOTKEY) | 232 | if (es->reason != NEWT_EXIT_HOTKEY) |
| 233 | break; | 233 | break; |
| 234 | switch (es->u.key) { | 234 | switch (es->u.key) { |
| 235 | case 'd': { /* Debug */ | 235 | case 'D': { /* Debug */ |
| 236 | static int seq; | 236 | static int seq; |
| 237 | struct hist_entry *h = rb_entry(self->b.top, | 237 | struct hist_entry *h = rb_entry(self->b.top, |
| 238 | struct hist_entry, rb_node); | 238 | struct hist_entry, rb_node); |
| @@ -771,18 +771,17 @@ int hists__browse(struct hists *self, const char *helpline, const char *ev_name) | |||
| 771 | default:; | 771 | default:; |
| 772 | } | 772 | } |
| 773 | 773 | ||
| 774 | key = toupper(key); | ||
| 775 | switch (key) { | 774 | switch (key) { |
| 776 | case 'A': | 775 | case 'a': |
| 777 | if (browser->selection->map == NULL && | 776 | if (browser->selection->map == NULL && |
| 778 | browser->selection->map->dso->annotate_warned) | 777 | browser->selection->map->dso->annotate_warned) |
| 779 | continue; | 778 | continue; |
| 780 | goto do_annotate; | 779 | goto do_annotate; |
| 781 | case 'D': | 780 | case 'd': |
| 782 | goto zoom_dso; | 781 | goto zoom_dso; |
| 783 | case 'T': | 782 | case 't': |
| 784 | goto zoom_thread; | 783 | goto zoom_thread; |
| 785 | case 'H': | 784 | case 'h': |
| 786 | case '?': | 785 | case '?': |
| 787 | do_help: | 786 | do_help: |
| 788 | ui__help_window("-> Zoom into DSO/Threads & Annotate current symbol\n" | 787 | ui__help_window("-> Zoom into DSO/Threads & Annotate current symbol\n" |
