[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120314231154.GA15986@dev3310.snc6.facebook.com>
Date: Wed, 14 Mar 2012 16:11:54 -0700
From: Arun Sharma <asharma@...com>
To: Namhyung Kim <namhyung.kim@....com>
Cc: Ingo Molnar <mingo@...e.hu>, Namhyung Kim <namhyung@...il.com>,
Arun Sharma <asharma@...com>,
Arnaldo Carvalho de Melo <acme@...hat.com>,
Peter Zijlstra <peterz@...radead.org>,
Stephane Eranian <eranian@...gle.com>,
linux-kernel@...r.kernel.org, dsahern@...il.com, ravitillo@....gov,
khandual@...ux.vnet.ibm.com, robert.richter@....com,
ming.m.lin@...el.com, vweaver1@...s.utk.edu, andi@...stfloor.org
Subject: Re: [RFC] perf report: Implement symbol filtering on TUI
On Wed, Mar 07, 2012 at 10:57:50AM +0900, Namhyung Kim wrote:
> As Ingo requested, symbol filtering feature was missing on TUI.
> Add 's' key to get input from user, and do simple filtering by
> strstr(). To turn filtering off, just enter no name by pressing
> 's' followed by ENTER.
Why not do this for --stdio as well?
perf report foo -g graph,0.5,caller -s inclusive --stdio
will print only the callgraph under foo.
This works better for me than:
perf report -s parent -p ^c$ --stdio
-Arun
index 94394f3..607b21b 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -219,6 +219,8 @@ static int perf_evlist__tty_browse_hists(struct perf_evlist *evlist,
struct hists *hists = &pos->hists;
const char *evname = event_name(pos);
+ hists->symbol_filter_str = rep->symbol_filter_str;
+ hists__filter_by_symbol(hists);
hists__fprintf_nr_sample_events(hists, evname, stdout);
hists__fprintf(hists, NULL, false, true, 0, 0, stdout);
fprintf(stdout, "\n\n");
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists