Re: [PATCH V8 3/8] perf, x86: handle multiple records in PEBS buffer

2015-05-08 Thread Peter Zijlstra
On Fri, May 08, 2015 at 01:05:47PM +0200, Andi Kleen wrote: > > The first issue is that the 'status' field of the PEBS record is a copy > > of the GLOBAL_STATUS MSR at PEBS assist time. To see why this is a > > I wanted to mention that Skylake has this issue fixed. The status > field in PEBS is no

Re: [PATCH V8 3/8] perf, x86: handle multiple records in PEBS buffer

2015-05-08 Thread Andi Kleen
> The first issue is that the 'status' field of the PEBS record is a copy > of the GLOBAL_STATUS MSR at PEBS assist time. To see why this is a I wanted to mention that Skylake has this issue fixed. The status field in PEBS is now only the counter that triggered the PEBS record. > The second issue

[PATCH V8 3/8] perf, x86: handle multiple records in PEBS buffer

2015-05-06 Thread Kan Liang
From: Yan, Zheng When the PEBS interrupt threshold is larger than one record and the machine supports multiple PEBS events, the records of these events are mixed up and we need to demultiplex them. Demuxing the records is hard because the hardware is deficient. The hardware has two issues that,