From: Franck Bui-Huu Date: Sun, 16 Jan 2011 16:14:45 +0000 (+0100) Subject: perf record: auto detect when stdout is a pipe X-Git-Tag: v2.6.39-rc1~510^2~114^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7065adb9b4f3384c2615f0a3dbdb6c3aae1eb18;p=pandora-kernel.git perf record: auto detect when stdout is a pipe This patch gives the ability to 'perf record' to detect when its stdout has been redirected to a pipe. There's now no more need to add '-o -' switch in this case. However '-o ' option has always precedence, that is if specified and stdout has been connected via a pipe then the output will go into the specified output. LKML-Reference: Signed-off-by: Franck Bui-Huu Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed