Re: [PATCHv2] perf tools: Detect when pipe is passed as perf data

2021-01-11 Thread Jiri Olsa
On Sun, Jan 10, 2021 at 11:13:18PM -0800, Stephane Eranian wrote: > On Wed, Jan 6, 2021 at 1:49 AM Jiri Olsa wrote: > > > > On Tue, Jan 05, 2021 at 05:33:38PM -0800, Stephane Eranian wrote: > > > Hi, > > > > > > On Wed, Dec 30, 2020 at 3:09 AM Jiri Olsa wrote: > > > > > > > > Currently we allow p

Re: [PATCHv2] perf tools: Detect when pipe is passed as perf data

2021-01-10 Thread Stephane Eranian
On Wed, Jan 6, 2021 at 1:49 AM Jiri Olsa wrote: > > On Tue, Jan 05, 2021 at 05:33:38PM -0800, Stephane Eranian wrote: > > Hi, > > > > On Wed, Dec 30, 2020 at 3:09 AM Jiri Olsa wrote: > > > > > > Currently we allow pipe input/output only through '-' string > > > being passed to '-o' or '-i' option

Re: [PATCHv2] perf tools: Detect when pipe is passed as perf data

2021-01-06 Thread Jiri Olsa
On Tue, Jan 05, 2021 at 05:33:38PM -0800, Stephane Eranian wrote: > Hi, > > On Wed, Dec 30, 2020 at 3:09 AM Jiri Olsa wrote: > > > > Currently we allow pipe input/output only through '-' string > > being passed to '-o' or '-i' options, like: > > > It seems to me it would be useful to auto-detect

Re: [PATCHv2] perf tools: Detect when pipe is passed as perf data

2021-01-05 Thread Stephane Eranian
Hi, On Wed, Dec 30, 2020 at 3:09 AM Jiri Olsa wrote: > > Currently we allow pipe input/output only through '-' string > being passed to '-o' or '-i' options, like: > It seems to me it would be useful to auto-detect that the perf.data file is in pipe vs. file mode format. Your patch detects the ty

[PATCHv2] perf tools: Detect when pipe is passed as perf data

2020-12-30 Thread Jiri Olsa
Currently we allow pipe input/output only through '-' string being passed to '-o' or '-i' options, like: # mkfifo perf.pipe # perf record --no-buffering -e 'sched:sched_switch' -o - > perf.pipe & [1] 354406 # cat perf.pipe | ./perf --no-pager script -i - | head -3 perf 354406 [