Commit-ID: 9e2e73305665c363fe173b2da53ae98dd6e7ae0d Gitweb: http://git.kernel.org/tip/9e2e73305665c363fe173b2da53ae98dd6e7ae0d Author: Ingo Molnar <mingo@xxxxxxx> AuthorDate: Thu, 18 Jun 2009 07:01:03 +0200 Committer: Ingo Molnar <mingo@xxxxxxx> 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 <a.p.zijlstra@xxxxxxxxx> Cc: Mike Galbraith <efault@xxxxxx> Cc: Paul Mackerras <paulus@xxxxxxxxx> Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@xxxxxxx> --- tools/perf/builtin-report.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 707f60c..57b6e2f 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c @@ -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() }; -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html