Re: [PATCH v2 6/8] perf mmap: Fix perf backward recording

2017-12-04 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 04, 2017 at 02:37:44PM +0900, Namhyung Kim escreveu: > Hi, > > On Sun, Dec 03, 2017 at 02:00:42AM +, Wang Nan wrote: > > perf record backward recording doesn't work as we expected: it never > > overwrite when ring buffer full. > > > > Test: > > > > (Run a busy printing task

Re: [PATCH v2 6/8] perf mmap: Fix perf backward recording

2017-12-04 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 04, 2017 at 02:37:44PM +0900, Namhyung Kim escreveu: > Hi, > > On Sun, Dec 03, 2017 at 02:00:42AM +, Wang Nan wrote: > > perf record backward recording doesn't work as we expected: it never > > overwrite when ring buffer full. > > > > Test: > > > > (Run a busy printing task

Re: [PATCH v2 6/8] perf mmap: Fix perf backward recording

2017-12-03 Thread Namhyung Kim
Hi, On Sun, Dec 03, 2017 at 02:00:42AM +, Wang Nan wrote: > perf record backward recording doesn't work as we expected: it never > overwrite when ring buffer full. > > Test: > > (Run a busy printing task background like this: > > while True: > print 123 > > send SIGUSR2 to perf to

Re: [PATCH v2 6/8] perf mmap: Fix perf backward recording

2017-12-03 Thread Namhyung Kim
Hi, On Sun, Dec 03, 2017 at 02:00:42AM +, Wang Nan wrote: > perf record backward recording doesn't work as we expected: it never > overwrite when ring buffer full. > > Test: > > (Run a busy printing task background like this: > > while True: > print 123 > > send SIGUSR2 to perf to

[PATCH v2 6/8] perf mmap: Fix perf backward recording

2017-12-02 Thread Wang Nan
perf record backward recording doesn't work as we expected: it never overwrite when ring buffer full. Test: (Run a busy printing task background like this: while True: print 123 send SIGUSR2 to perf to capture snapshot.) # ./perf record --overwrite -e raw_syscalls:sys_enter -e

[PATCH v2 6/8] perf mmap: Fix perf backward recording

2017-12-02 Thread Wang Nan
perf record backward recording doesn't work as we expected: it never overwrite when ring buffer full. Test: (Run a busy printing task background like this: while True: print 123 send SIGUSR2 to perf to capture snapshot.) # ./perf record --overwrite -e raw_syscalls:sys_enter -e