Re: [PATCH 2/2] perf/x86/intel: Support PEBS output to PT

2019-05-08 Thread Peter Zijlstra
On Thu, May 02, 2019 at 01:50:22PM +0300, Alexander Shishkin wrote: > The output setting is per-CPU, so all PEBS events must be either writing > to PT or to the DS area, so in order to not mess up the event scheduling, > we fall back to the latter in case both types of events are scheduled in. >

Re: [PATCH 2/2] perf/x86/intel: Support PEBS output to PT

2019-05-08 Thread Peter Zijlstra
On Thu, May 02, 2019 at 01:50:22PM +0300, Alexander Shishkin wrote: > The output setting is per-CPU, so all PEBS events must be either writing > to PT or to the DS area, so in order to not mess up the event scheduling, > we fall back to the latter in case both types of events are scheduled in.

Re: [PATCH 2/2] perf/x86/intel: Support PEBS output to PT

2019-05-08 Thread Peter Zijlstra
On Thu, May 02, 2019 at 01:50:22PM +0300, Alexander Shishkin wrote: > If PEBS declares ability to output its data to Intel PT stream, use the > aux_source attribute bit to enable PEBS data output to PT. This requires > a PT event to be present and scheduled in the same context. Unlike the > DS

[PATCH 2/2] perf/x86/intel: Support PEBS output to PT

2019-05-02 Thread Alexander Shishkin
If PEBS declares ability to output its data to Intel PT stream, use the aux_source attribute bit to enable PEBS data output to PT. This requires a PT event to be present and scheduled in the same context. Unlike the DS area, the kernel does not extract PEBS records from the PT stream to generate