Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298322
b: refs/heads/master
c: 938a23a
h: refs/heads/master
v: v3
  • Loading branch information
Namhyung Kim authored and Arnaldo Carvalho de Melo committed Mar 16, 2012
1 parent cfd9f43 commit d0e4fd4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aa49f6ec990baa9d8f1b46a86fc169a8028776d4
refs/heads/master: 938a23ae7f656ffde9dd67e83dddf4406f85d773
14 changes: 13 additions & 1 deletion trunk/tools/perf/util/ui/browsers/hists.c
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,7 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events,
char *options[16];
int nr_options = 0;
int key = -1;
char buf[64];

if (browser == NULL)
return -1;
Expand Down Expand Up @@ -933,6 +934,16 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events,
goto zoom_dso;
case 't':
goto zoom_thread;
case 's':
if (ui_browser__input_window("Symbol to show",
"Please enter the name of symbol you want to see",
buf, "ENTER: OK, ESC: Cancel",
delay_secs * 2) == K_ENTER) {
self->symbol_filter_str = *buf ? buf : NULL;
hists__filter_by_symbol(self);
hist_browser__reset(browser);
}
continue;
case K_F1:
case 'h':
case '?':
Expand All @@ -950,7 +961,8 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events,
"C Collapse all callchains\n"
"E Expand all callchains\n"
"d Zoom into current DSO\n"
"t Zoom into current Thread");
"t Zoom into current Thread\n"
"s Filter symbol by name");
continue;
case K_ENTER:
case K_RIGHT:
Expand Down

0 comments on commit d0e4fd4

Please sign in to comment.