Re: [PATCH] perf-record: auto detect when stdout is a pipe

From: Arnaldo Carvalho de Melo
Date: Mon Jan 17 2011 - 12:28:11 EST


Em Sun, Jan 16, 2011 at 05:14:45PM +0100, Franck Bui-Huu escreveu:
> From: Franck Bui-Huu <fbuihuu@xxxxxxxxx>
>
> 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 <path>' 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.
>

I guess we could have that in perf report as well? I.e. if stdin is a
FIFO...

Thanks, applied,

- Arnaldo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/