projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b14ffac
)
perf report: Treat an argument as a symbol filter
author
Namhyung Kim
<
[email protected]
>
Fri, 16 Mar 2012 08:50:55 +0000
(17:50 +0900)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Fri, 16 Mar 2012 19:44:36 +0000
(16:44 -0300)
As Ingo requested, it'd be better off treating first (and the only)
argument as a symbol filter, so that user doesn't need to input the
symbol on the dialog window on TUI.
Cc: Ingo Molnar <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Namhyung Kim <
[email protected]
>
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/builtin-report.c
patch
|
blob
|
history
diff --git
a/tools/perf/builtin-report.c
b/tools/perf/builtin-report.c
index 80fb90741b64ded6dda0723b0ded9e8859170fbd..c00545806bb70ff19cf39e626ddb5ac220eac0da 100644
(file)
--- a/
tools/perf/builtin-report.c
+++ b/
tools/perf/builtin-report.c
@@
-715,11
+715,16
@@
int cmd_report(int argc, const char **argv, const char *prefix __used)
} else
symbol_conf.exclude_other = false;
- /*
- * Any (unrecognized) arguments left?
- */
- if (argc)
- usage_with_options(report_usage, options);
+ if (argc) {
+ /*
+ * Special case: if there's an argument left then assume that
+ * it's a symbol filter:
+ */
+ if (argc > 1)
+ usage_with_options(report_usage, options);
+
+ report.symbol_filter_str = argv[0];
+ }
sort_entry__setup_elide(&sort_comm, symbol_conf.comm_list, "comm", stdout);