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

2020-11-16 Thread Arnaldo Carvalho de Melo
Em Sat, Nov 14, 2020 at 09:55:34PM +0100, Jiri Olsa escreveu: > On Fri, Oct 30, 2020 at 02:47:42PM +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

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

2020-11-14 Thread Jiri Olsa
On Fri, Oct 30, 2020 at 02:47:42PM +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

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

2020-11-13 Thread Namhyung Kim
Gentle ping! :) On Fri, Oct 30, 2020 at 2:47 PM 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

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

2020-10-29 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