Re: [PATCH] coresight: tmc-etr: Fix updating buffer in not-snapshot mode.

2019-08-12 Thread Mathieu Poirier
Good day Yabin, With this patch you are addressing a long time itch I had - please read on. On Mon, 5 Aug 2019 at 17:37, Yabin Cui wrote: > > TMC etr always copies all available data to perf aux buffer, which > may exceed the available space in perf aux buffer. It isn't suitable > for not-snapsh

Re: [PATCH] coresight: tmc-etr: Fix updating buffer in not-snapshot mode.

2019-08-06 Thread Suzuki K Poulose
Hi Yabin On 06/08/2019 00:37, Yabin Cui wrote: TMC etr always copies all available data to perf aux buffer, which may exceed the available space in perf aux buffer. It isn't suitable for not-snapshot mode, because: 1) It may overwrite previously written data. 2) It may make the perf_event_mmap_p

[PATCH] coresight: tmc-etr: Fix updating buffer in not-snapshot mode.

2019-08-05 Thread Yabin Cui
TMC etr always copies all available data to perf aux buffer, which may exceed the available space in perf aux buffer. It isn't suitable for not-snapshot mode, because: 1) It may overwrite previously written data. 2) It may make the perf_event_mmap_page->aux_head report having more or less data than