perf report: Tidy up the --collapse call-chain feature
Commit-ID: 9e2e73305665c363fe173b2da53ae98dd6e7ae0d Gitweb: http://git.kernel.org/tip/9e2e73305665c363fe173b2da53ae98dd6e7ae0d Author: Ingo Molnar <[email protected]> AuthorDate: Thu, 18 Jun 2009 07:01:03 +0200 Committer: Ingo Molnar <[email protected]> CommitDate: Thu, 18 Jun 2009 07:01:03 +0200
perf report: Tidy up the --collapse call-chain feature
- rename --call <regex> to --collapse <regex>
- add pagefaults to the default collapsing pattern too
- rename [unmatched] to [other] - to signal that this is not an error but the inverse set
Cc: Peter Zijlstra <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
LKML-Reference: <new-submission>
Signed-off-by Ingo Molnar <[email protected]>
--- tools/perf/builtin-report.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
tools/perf/builtin-report.c +5 -5
@@ -44,7 +44,7 @@ static int full_paths;static unsigned long page_size;static unsigned long mmap_window =32 ; -static char *call ="^sys_" ; +static char *call ="^sys_|^do_page_fault" ;static regex_t call_regex;struct ip_chain_event {
@@ -637,7 +637,7 @@ sort__call_print(FILE *fp, struct hist_entry *self) {size_t ret =0 ; - ret +=fprintf (fp,"%-20s" , self->call ? self->call->name :"[unmatched]" ); + ret +=fprintf (fp,"%-20s" , self->call ? self->call->name :"[other]" );return ret; }
@@ -1457,11 +1457,11 @@ static const struct option options[] = { "dump raw trace in ASCII"),OPT_STRING ('k' ,"vmlinux" , &vmlinux,"file" ,"vmlinux pathname" ),OPT_STRING ('s' ,"sort" , &sort_order,"key[,key2...]" , -"sort by key(s): pid, comm, dso, symbol. Default: pid,symbol" ), +"sort by key(s): pid, comm, dso, symbol, call" ),OPT_BOOLEAN ('P' ,"full-paths" , &full_paths,"Don't shorten the pathnames taking into account the cwd" ), -OPT_STRING ('c' ,"call" , &call,"regex" , -"regex to use for --sort call" ), +OPT_STRING ('g' ,"grep" , &call,"regex" , +"regex filter to use for '--sort call'" ), OPT_END() };