提交 68ba3235 编写于 作者: N Namhyung Kim 提交者: Arnaldo Carvalho de Melo

perf record: Honor --quiet option properly

It should call perf_quiet_option() to suppress messages.
Signed-off-by: NNamhyung Kim <namhyung@kernel.org>
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-7-namhyung@kernel.org
[ Fix merge clash with 483635a9 ("perf record: Add -a as default target") ]
Signed-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
上级 eddaef88
...@@ -1677,6 +1677,8 @@ int cmd_record(int argc, const char **argv, const char *prefix __maybe_unused) ...@@ -1677,6 +1677,8 @@ int cmd_record(int argc, const char **argv, const char *prefix __maybe_unused)
argc = parse_options(argc, argv, record_options, record_usage, argc = parse_options(argc, argv, record_options, record_usage,
PARSE_OPT_STOP_AT_NON_OPTION); PARSE_OPT_STOP_AT_NON_OPTION);
if (quiet)
perf_quiet_option();
/* Make system wide (-a) the default target. */ /* Make system wide (-a) the default target. */
if (!argc && target__none(&rec->opts.target)) if (!argc && target__none(&rec->opts.target))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册