perf trace: Introduce special handling for pipe input
authorTom Zanussi <tzanussi@gmail.com>
Fri, 2 Apr 2010 04:59:18 +0000 (23:59 -0500)
committerIngo Molnar <mingo@elte.hu>
Wed, 14 Apr 2010 09:56:06 +0000 (11:56 +0200)
commitc239da3b4b55dbb8f30bcb8d1a0d63fc44a567c3
treec7bbe718db4ff6bb82b2eac9870f5cbabdf8b988
parent46656ac7fb3252f8a3db29b18638e0e8067849ba
perf trace: Introduce special handling for pipe input

Adds special treatment for stdin - if the user specifies '-i -'
to perf trace, the intent is that the event stream be read from
stdin rather than from a disk file.

The actual handling of the '-' filename is done by the session;
this just adds a signal handler to stop reporting, and turns off
interference by the pager.

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-5-git-send-email-tzanussi@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-trace.c