diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-10-12 13:02:29 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-10-12 13:02:29 -0400 |
commit | 4aa8e454d347a1c96a2322683a6798de7e17da5f (patch) | |
tree | 99df1765beb8755a289820945b3e08830866df02 | |
parent | 7727a92544b2a507b83fdc7d3e4b6f4545c9f364 (diff) |
perf hists browser: Inform how to reset the symbol filter
When in the hists browser, i.e. in 'perf report' or in 'perf top', it is
possible to press '/' and specify a substring to filter by symbol name.
Clarify how to remove a filter by making the prompt be:
Please enter the name of symbol you want to see.
To remove the filter later, press / + ENTER
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-vbq2b0kyufwy6p0ctkfswcoe@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/ui/browsers/hists.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c index eea16278d038..772834912c7c 100644 --- a/tools/perf/ui/browsers/hists.c +++ b/tools/perf/ui/browsers/hists.c | |||
@@ -1889,7 +1889,8 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events, | |||
1889 | continue; | 1889 | continue; |
1890 | case '/': | 1890 | case '/': |
1891 | if (ui_browser__input_window("Symbol to show", | 1891 | if (ui_browser__input_window("Symbol to show", |
1892 | "Please enter the name of symbol you want to see", | 1892 | "Please enter the name of symbol you want to see.\n" |
1893 | "To remove the filter later, press / + ENTER.", | ||
1893 | buf, "ENTER: OK, ESC: Cancel", | 1894 | buf, "ENTER: OK, ESC: Cancel", |
1894 | delay_secs * 2) == K_ENTER) { | 1895 | delay_secs * 2) == K_ENTER) { |
1895 | hists->symbol_filter_str = *buf ? buf : NULL; | 1896 | hists->symbol_filter_str = *buf ? buf : NULL; |