Commit 6db6127c authored by Namhyung Kim's avatar Namhyung Kim Committed by Arnaldo Carvalho de Melo

perf report: Treat an argument as a symbol filter

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 <mingo@elte.hu>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1331887855-874-5-git-send-email-namhyung.kim@lge.comSigned-off-by: default avatarNamhyung Kim <namhyung.kim@lge.com>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent b14ffaca
...@@ -715,12 +715,17 @@ int cmd_report(int argc, const char **argv, const char *prefix __used) ...@@ -715,12 +715,17 @@ int cmd_report(int argc, const char **argv, const char *prefix __used)
} else } else
symbol_conf.exclude_other = false; symbol_conf.exclude_other = false;
if (argc) {
/* /*
* Any (unrecognized) arguments left? * Special case: if there's an argument left then assume that
* it's a symbol filter:
*/ */
if (argc) if (argc > 1)
usage_with_options(report_usage, options); usage_with_options(report_usage, options);
report.symbol_filter_str = argv[0];
}
sort_entry__setup_elide(&sort_comm, symbol_conf.comm_list, "comm", stdout); sort_entry__setup_elide(&sort_comm, symbol_conf.comm_list, "comm", stdout);
if (sort__branch_mode == 1) { if (sort__branch_mode == 1) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment