mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 17:23:25 -05:00
perf annotate: Add -q/--quiet option
The -q/--quiet option is to suppress any message. Sometimes users just want to see the numbers and it can be used for that case. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Suggested-and-Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: kernel-team@lge.com Link: http://lkml.kernel.org/r/20170217081742.17417-6-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
63b42fce86
commit
eddaef8896
2 changed files with 8 additions and 0 deletions
|
@ -39,6 +39,10 @@ OPTIONS
|
||||||
--verbose::
|
--verbose::
|
||||||
Be more verbose. (Show symbol address, etc)
|
Be more verbose. (Show symbol address, etc)
|
||||||
|
|
||||||
|
-q::
|
||||||
|
--quiet::
|
||||||
|
Do not show any message. (Suppress -v)
|
||||||
|
|
||||||
-D::
|
-D::
|
||||||
--dump-raw-trace::
|
--dump-raw-trace::
|
||||||
Dump raw trace in ASCII.
|
Dump raw trace in ASCII.
|
||||||
|
|
|
@ -410,6 +410,7 @@ int cmd_annotate(int argc, const char **argv, const char *prefix __maybe_unused)
|
||||||
OPT_BOOLEAN('f', "force", &file.force, "don't complain, do it"),
|
OPT_BOOLEAN('f', "force", &file.force, "don't complain, do it"),
|
||||||
OPT_INCR('v', "verbose", &verbose,
|
OPT_INCR('v', "verbose", &verbose,
|
||||||
"be more verbose (show symbol address, etc)"),
|
"be more verbose (show symbol address, etc)"),
|
||||||
|
OPT_BOOLEAN('q', "quiet", &quiet, "do now show any message"),
|
||||||
OPT_BOOLEAN('D', "dump-raw-trace", &dump_trace,
|
OPT_BOOLEAN('D', "dump-raw-trace", &dump_trace,
|
||||||
"dump raw trace in ASCII"),
|
"dump raw trace in ASCII"),
|
||||||
OPT_BOOLEAN(0, "gtk", &annotate.use_gtk, "Use the GTK interface"),
|
OPT_BOOLEAN(0, "gtk", &annotate.use_gtk, "Use the GTK interface"),
|
||||||
|
@ -463,6 +464,9 @@ int cmd_annotate(int argc, const char **argv, const char *prefix __maybe_unused)
|
||||||
annotate.sym_hist_filter = argv[0];
|
annotate.sym_hist_filter = argv[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (quiet)
|
||||||
|
perf_quiet_option();
|
||||||
|
|
||||||
file.path = input_name;
|
file.path = input_name;
|
||||||
|
|
||||||
annotate.session = perf_session__new(&file, false, &annotate.tool);
|
annotate.session = perf_session__new(&file, false, &annotate.tool);
|
||||||
|
|
Loading…
Add table
Reference in a new issue