selftests: ftrace: Output only to console with "--logdir -"
authorMasami Hiramatsu <mhiramat@kernel.org>
Fri, 7 Jul 2017 01:02:33 +0000 (10:02 +0900)
committerShuah Khan <shuahkh@osg.samsung.com>
Wed, 26 Jul 2017 21:41:36 +0000 (15:41 -0600)
commit97bece60ef87d813cbe6f8f9b8e532a6a95d422a
tree89deb105cd435c13134631415c483152e779f90f
parentdab24fb1f2d6dfb6b134535e4510cb1f681d9d23
selftests: ftrace: Output only to console with "--logdir -"

Output logs only to console if "-" is given to --logdir
option. In this case, ftracetest doesn't record any log
on the disk, and all logs immediately shown (including
all command logs.) Since there is no "tee" in the middle
of command and console, it outputs the log really soon.

This option is useful only when the console is logged.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Steven Rostedt (VMware) <srostedt@goodmis.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/ftrace/ftracetest