summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-report.c
diff options
context:
space:
mode:
authorTom Zanussi <tzanussi@gmail.com>2010-04-02 06:59:16 +0200
committerIngo Molnar <mingo@elte.hu>2010-04-14 11:56:06 +0200
commit529870e37473a9fc609078f03cc5b4148cf06a87 (patch)
treed0ab94e0895dbf1e27292c1c654e316c808d8f07 /tools/perf/builtin-report.c
parentperf: Add pipe-specific header read/write and event processing code (diff)
downloadlinux-529870e37473a9fc609078f03cc5b4148cf06a87.tar.xz
linux-529870e37473a9fc609078f03cc5b4148cf06a87.zip
perf record: Introduce special handling for pipe output
Adds special treatment for stdout - if the user specifies '-o -' to perf record, the intent is that the event stream be written to stdout rather than to a disk file. Also, redirect stdout of forked child to stderr - in pipe mode, stdout of the forked child interferes with the stdout perf stream, so redirect it to stderr where it can still be seen but won't be mixed in with the perf output. Signed-off-by: Tom Zanussi <tzanussi@gmail.com> Acked-by: Thomas Gleixner <tglx@linutronix.de> Cc: fweisbec@gmail.com Cc: rostedt@goodmis.org Cc: k-keiichi@bx.jp.nec.com Cc: acme@ghostprotocols.net LKML-Reference: <1270184365-8281-3-git-send-email-tzanussi@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-report.c')
0 files changed, 0 insertions, 0 deletions