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

perf report: Force tty output if -T/--thread option is given

The -T/--thread option is supported only on --stdio mode (at least for
now).  So enforce the tty output if the option was requested.
Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1431184784-30525-2-git-send-email-namhyung@kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 1f91d5fd
...@@ -815,8 +815,8 @@ int cmd_report(int argc, const char **argv, const char *prefix __maybe_unused) ...@@ -815,8 +815,8 @@ int cmd_report(int argc, const char **argv, const char *prefix __maybe_unused)
goto error; goto error;
} }
/* Force tty output for header output. */ /* Force tty output for header output and per-thread stat. */
if (report.header || report.header_only) if (report.header || report.header_only || report.show_threads)
use_browser = 0; use_browser = 0;
if (strcmp(input_name, "-") != 0) if (strcmp(input_name, "-") != 0)
......
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