Re: [PATCH 2/2] perf intel-pt: Use aux_watermark

2021-04-14 Thread Alexander Shishkin
Adrian Hunter writes: > On 8/04/21 6:31 pm, Alexander Shishkin wrote: >> diff --git a/tools/perf/arch/x86/util/intel-pt.c >> b/tools/perf/arch/x86/util/intel-pt.c >> index a6420c647959..d00707faf547 100644 >> --- a/tools/perf/arch/x86/util/intel-pt.c >> +++ b/tools/perf/arch/x86/util/intel-pt.c

Re: [PATCH 2/2] perf intel-pt: Use aux_watermark

2021-04-13 Thread Adrian Hunter
On 8/04/21 6:31 pm, Alexander Shishkin wrote: > Turns out, the default setting of attr.aux_watermark to half of the total > buffer size is not very useful, especially with smaller buffers. The > problem is that, after half of the buffer is filled up, the kernel updates > ->aux_head and sets up the

[PATCH 2/2] perf intel-pt: Use aux_watermark

2021-04-08 Thread Alexander Shishkin
Turns out, the default setting of attr.aux_watermark to half of the total buffer size is not very useful, especially with smaller buffers. The problem is that, after half of the buffer is filled up, the kernel updates ->aux_head and sets up the next "transaction", while observing that ->aux_tail is