Skip to content

Commit 007d66a

Browse files
milianwacmel
authored andcommitted
perf trace: Write to stderr by default
Without this patch, it is cumbersome to read the trace output but ignoring the normal, potentially verbose, output of the debuggee. One common example is doing something like the following: perf trace -s find /tmp > /dev/null Without this patch, the trace summary will be lost. Now, it will still be printed at the end. This behavior is also applied by strace. Cc: Milian Wolff <milian.wolff@kdab.com> Cc: David Ahern <dsahern@gmail.com> Link: http://lkml.kernel.org/n/tip-tqnks6y2cnvm5f9g2dsfr7zl@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent b7a001d commit 007d66a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/perf/builtin-trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2965,7 +2965,7 @@ int cmd_trace(int argc, const char **argv, const char *prefix __maybe_unused)
29652965
.mmap_pages = UINT_MAX,
29662966
.proc_map_timeout = 500,
29672967
},
2968-
.output = stdout,
2968+
.output = stderr,
29692969
.show_comm = true,
29702970
.trace_syscalls = true,
29712971
};

0 commit comments

Comments
 (0)