Re: [PATCH] perf data: Allow to use stdio functions for pipe mode

2020-10-29 Thread Namhyung Kim
Hi Jiri, On Thu, Oct 29, 2020 at 8:57 PM Jiri Olsa wrote: > > On Wed, Oct 28, 2020 at 05:56:32PM +0900, Namhyung Kim wrote: > > When perf data is in a pipe, it reads each event separately using > > read(2) syscall. This is a huge performance bottleneck when > > processing large data like in perf

Re: [PATCH] perf data: Allow to use stdio functions for pipe mode

2020-10-29 Thread Jiri Olsa
On Wed, Oct 28, 2020 at 05:56:32PM +0900, Namhyung Kim wrote: > When perf data is in a pipe, it reads each event separately using > read(2) syscall. This is a huge performance bottleneck when > processing large data like in perf inject. Also perf inject needs to > use write(2) syscall for the out

Re: [PATCH] perf data: Allow to use stdio functions for pipe mode

2020-10-29 Thread Namhyung Kim
Hi Ian, On Thu, Oct 29, 2020 at 1:37 AM Ian Rogers wrote: > > On Wed, Oct 28, 2020 at 1:56 AM Namhyung Kim wrote: > > > > When perf data is in a pipe, it reads each event separately using > > read(2) syscall. This is a huge performance bottleneck when > > processing large data like in perf inje

Re: [PATCH] perf data: Allow to use stdio functions for pipe mode

2020-10-28 Thread Ian Rogers
On Wed, Oct 28, 2020 at 1:56 AM Namhyung Kim wrote: > > When perf data is in a pipe, it reads each event separately using > read(2) syscall. This is a huge performance bottleneck when > processing large data like in perf inject. Also perf inject needs to > use write(2) syscall for the output. >

[PATCH] perf data: Allow to use stdio functions for pipe mode

2020-10-28 Thread Namhyung Kim
When perf data is in a pipe, it reads each event separately using read(2) syscall. This is a huge performance bottleneck when processing large data like in perf inject. Also perf inject needs to use write(2) syscall for the output. So convert it to use buffer I/O functions in stdio library for p