RE: [PATCH] perf tools: fix: Force backward ring buffer mapped readonly

2017-10-12 Thread Liang, Kan
> > On 2017/10/12 22:45, Liang, Kan wrote: > >>> On 2017/10/12 20:56, Liang, Kan wrote: > > On 2017/10/11 21:16, Liang, Kan wrote: > >>> perf record's --overwrite option doesn't work as we expect. > >>> For example: > > [SNIP] > > > >>> In the above example we get same recor

Re: [PATCH] perf tools: fix: Force backward ring buffer mapped readonly

2017-10-12 Thread Wangnan (F)
On 2017/10/12 22:46, Wangnan (F) wrote: On 2017/10/12 22:45, Liang, Kan wrote: On 2017/10/12 20:56, Liang, Kan wrote: On 2017/10/11 21:16, Liang, Kan wrote: perf record's --overwrite option doesn't work as we expect. For example: [SNIP] In the above example we get same records from the

Re: [PATCH] perf tools: fix: Force backward ring buffer mapped readonly

2017-10-12 Thread Wangnan (F)
On 2017/10/12 22:45, Liang, Kan wrote: On 2017/10/12 20:56, Liang, Kan wrote: On 2017/10/11 21:16, Liang, Kan wrote: perf record's --overwrite option doesn't work as we expect. For example: [SNIP] In the above example we get same records from the backward ring buffer all the time. Overwrit

RE: [PATCH] perf tools: fix: Force backward ring buffer mapped readonly

2017-10-12 Thread Liang, Kan
> On 2017/10/12 20:56, Liang, Kan wrote: > >> On 2017/10/11 21:16, Liang, Kan wrote: > perf record's --overwrite option doesn't work as we expect. > For example: > >> [SNIP] > >> > In the above example we get same records from the backward ring > buffer all the time. Overwritin

Re: [PATCH] perf tools: fix: Force backward ring buffer mapped readonly

2017-10-12 Thread Wangnan (F)
On 2017/10/12 20:56, Liang, Kan wrote: On 2017/10/11 21:16, Liang, Kan wrote: perf record's --overwrite option doesn't work as we expect. For example: [SNIP] In the above example we get same records from the backward ring buffer all the time. Overwriting is not triggered. This commit maps

RE: [PATCH] perf tools: fix: Force backward ring buffer mapped readonly

2017-10-12 Thread Liang, Kan
> > On 2017/10/11 21:16, Liang, Kan wrote: > >> perf record's --overwrite option doesn't work as we expect. > >> For example: > > [SNIP] > > >> > >> In the above example we get same records from the backward ring > >> buffer all the time. Overwriting is not triggered. > >> > >> This commit maps

Re: [PATCH] perf tools: fix: Force backward ring buffer mapped readonly

2017-10-11 Thread Wangnan (F)
On 2017/10/11 21:16, Liang, Kan wrote: perf record's --overwrite option doesn't work as we expect. For example: [SNIP] In the above example we get same records from the backward ring buffer all the time. Overwriting is not triggered. This commit maps backward ring buffers readonly, make i

RE: [PATCH] perf tools: fix: Force backward ring buffer mapped readonly

2017-10-11 Thread Liang, Kan
> perf record's --overwrite option doesn't work as we expect. > For example: > > $ ~/linux/tools/perf$ sudo rm ./perf.data* > rm: cannot remove './perf.data*': No such file or directory > : ~/linux/tools/perf$ sudo ./perf record -m 4 -e raw_syscalls:* -g -- > overwrite \ >

[PATCH] perf tools: fix: Force backward ring buffer mapped readonly

2017-10-10 Thread Wang Nan
perf record's --overwrite option doesn't work as we expect. For example: $ ~/linux/tools/perf$ sudo rm ./perf.data* rm: cannot remove './perf.data*': No such file or directory : ~/linux/tools/perf$ sudo ./perf record -m 4 -e raw_syscalls:* -g --overwrite \