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

From: Franck Bui-Huu
Date: Mon Jan 17 2011 - 13:22:50 EST


On 01/17/2011 06:27 PM, Arnaldo Carvalho de Melo wrote:
> 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...
>

Yes, I noticed that too, perf-script is also a candidate.

I'll do.

Franck
--
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/