diff options
-rw-r--r-- | tools/perf/util/ui/browsers/hists.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tools/perf/util/ui/browsers/hists.c b/tools/perf/util/ui/browsers/hists.c index de8ece8bcce3..c4173c9733bb 100644 --- a/tools/perf/util/ui/browsers/hists.c +++ b/tools/perf/util/ui/browsers/hists.c | |||
@@ -879,6 +879,7 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events, | |||
879 | char *options[16]; | 879 | char *options[16]; |
880 | int nr_options = 0; | 880 | int nr_options = 0; |
881 | int key = -1; | 881 | int key = -1; |
882 | char buf[64]; | ||
882 | 883 | ||
883 | if (browser == NULL) | 884 | if (browser == NULL) |
884 | return -1; | 885 | return -1; |
@@ -933,6 +934,16 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events, | |||
933 | goto zoom_dso; | 934 | goto zoom_dso; |
934 | case 't': | 935 | case 't': |
935 | goto zoom_thread; | 936 | goto zoom_thread; |
937 | case 's': | ||
938 | if (ui_browser__input_window("Symbol to show", | ||
939 | "Please enter the name of symbol you want to see", | ||
940 | buf, "ENTER: OK, ESC: Cancel", | ||
941 | delay_secs * 2) == K_ENTER) { | ||
942 | self->symbol_filter_str = *buf ? buf : NULL; | ||
943 | hists__filter_by_symbol(self); | ||
944 | hist_browser__reset(browser); | ||
945 | } | ||
946 | continue; | ||
936 | case K_F1: | 947 | case K_F1: |
937 | case 'h': | 948 | case 'h': |
938 | case '?': | 949 | case '?': |
@@ -950,7 +961,8 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events, | |||
950 | "C Collapse all callchains\n" | 961 | "C Collapse all callchains\n" |
951 | "E Expand all callchains\n" | 962 | "E Expand all callchains\n" |
952 | "d Zoom into current DSO\n" | 963 | "d Zoom into current DSO\n" |
953 | "t Zoom into current Thread"); | 964 | "t Zoom into current Thread\n" |
965 | "s Filter symbol by name"); | ||
954 | continue; | 966 | continue; |
955 | case K_ENTER: | 967 | case K_ENTER: |
956 | case K_RIGHT: | 968 | case K_RIGHT: |