RE: [PATCH] perf tool: Don't discard prev in backward mode

2017-10-12 Thread Liang, Kan
> Perf record can switch output. The new output should only store the data > after switching. However, in overwrite backward mode, the new output still > have the data from old output. That also brings extra overhead. > > At the end of mmap_read, the position of processed ring buffer is saved in

RE: [PATCH] perf tool: Don't discard prev in backward mode

2017-10-12 Thread Liang, Kan
> Perf record can switch output. The new output should only store the data > after switching. However, in overwrite backward mode, the new output still > have the data from old output. That also brings extra overhead. > > At the end of mmap_read, the position of processed ring buffer is saved in

Re: [PATCH] perf tool: Don't discard prev in backward mode

2017-10-12 Thread Wangnan (F)
Hi Kan, Please see if this patch works for you. On 2017/10/14 7:16, Wang Nan wrote: Perf record can switch output. The new output should only store the data after switching. However, in overwrite backward mode, the new output still have the data from old output. That also brings extra

Re: [PATCH] perf tool: Don't discard prev in backward mode

2017-10-12 Thread Wangnan (F)
Hi Kan, Please see if this patch works for you. On 2017/10/14 7:16, Wang Nan wrote: Perf record can switch output. The new output should only store the data after switching. However, in overwrite backward mode, the new output still have the data from old output. That also brings extra