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

2019-07-31 Thread Alexander Shishkin
Peter Zijlstra writes: > On Thu, Jul 04, 2019 at 07:00:19PM +0300, Alexander Shishkin wrote: >> +/* >> + * In case there's a mix of PEBS->PT and PEBS->DS, fall back >> + * to DS. >> + */ > > I thought we disallowed that from happening !? Yes, that was a weird leftover. Thanks a

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

2019-07-29 Thread Peter Zijlstra
On Thu, Jul 04, 2019 at 07:00:19PM +0300, Alexander Shishkin wrote: > diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c > index f0e4804515d8..a11924e20df3 100644 > --- a/arch/x86/events/core.c > +++ b/arch/x86/events/core.c > @@ -869,6 +869,7 @@ int x86_schedule_events(struct cpu_hw_eve

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

2019-07-04 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 co