diff options
author | Ingo Molnar <mingo@kernel.org> | 2012-03-19 20:14:46 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-03-19 20:14:46 +0100 |
commit | 9521d830b6341d1887dcfc2aebde23fbfa5f1473 (patch) | |
tree | db6b03aaca5ca4a254912ae1a7f3e5e89ee182e4 /tools/perf/util/ui/browsers/hists.c | |
parent | bea95c152dee1791dd02cbc708afbb115bb00f9a (diff) | |
parent | c31a94570552dcaa517c4f7a043ffd28835016be (diff) | |
download | op-kernel-dev-9521d830b6341d1887dcfc2aebde23fbfa5f1473.zip op-kernel-dev-9521d830b6341d1887dcfc2aebde23fbfa5f1473.tar.gz |
Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Fixes for the last batch from Namhyung and the initial GTK report browser
from Pekka.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/ui/browsers/hists.c')
-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 de8ece8..c4173c9 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, char *options[16]; int nr_options = 0; int key = -1; + char buf[64]; if (browser == NULL) return -1; @@ -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 '?': @@ -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: |