Re: [PATCH 3/4] perf/x86/intel/ds: Handle PEBS overflow for fixed counters

2018-07-23 Thread Liang, Kan
On 7/23/2018 12:56 PM, Liang, Kan wrote: On 7/23/2018 12:21 PM, Peter Zijlstra wrote: On Mon, Jul 23, 2018 at 04:59:44PM +0200, Peter Zijlstra wrote: On Thu, Mar 08, 2018 at 06:15:41PM -0800, kan.li...@linux.intel.com wrote: diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/inte

Re: [PATCH 3/4] perf/x86/intel/ds: Handle PEBS overflow for fixed counters

2018-07-23 Thread Liang, Kan
On 7/23/2018 12:21 PM, Peter Zijlstra wrote: On Mon, Jul 23, 2018 at 04:59:44PM +0200, Peter Zijlstra wrote: On Thu, Mar 08, 2018 at 06:15:41PM -0800, kan.li...@linux.intel.com wrote: diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c index ef47a418d819..86149b87cce8 10

Re: [PATCH 3/4] perf/x86/intel/ds: Handle PEBS overflow for fixed counters

2018-07-23 Thread Peter Zijlstra
On Mon, Jul 23, 2018 at 04:59:44PM +0200, Peter Zijlstra wrote: > On Thu, Mar 08, 2018 at 06:15:41PM -0800, kan.li...@linux.intel.com wrote: > > diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c > > index ef47a418d819..86149b87cce8 100644 > > --- a/arch/x86/events/intel/core.

Re: [PATCH 3/4] perf/x86/intel/ds: Handle PEBS overflow for fixed counters

2018-07-23 Thread Peter Zijlstra
On Mon, Jul 23, 2018 at 04:59:44PM +0200, Peter Zijlstra wrote: > On Thu, Mar 08, 2018 at 06:15:41PM -0800, kan.li...@linux.intel.com wrote: > > diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c > > index ef47a418d819..86149b87cce8 100644 > > --- a/arch/x86/events/intel/core.

Re: [PATCH 3/4] perf/x86/intel/ds: Handle PEBS overflow for fixed counters

2018-07-23 Thread Peter Zijlstra
On Thu, Mar 08, 2018 at 06:15:41PM -0800, kan.li...@linux.intel.com wrote: > diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c > index ef47a418d819..86149b87cce8 100644 > --- a/arch/x86/events/intel/core.c > +++ b/arch/x86/events/intel/core.c > @@ -2280,7 +2280,10 @@ static i

[PATCH 3/4] perf/x86/intel/ds: Handle PEBS overflow for fixed counters

2018-03-08 Thread kan . liang
From: Kan Liang The pebs_drain() need to support fixed counters. The DS Save Area now include "counter reset value" fields for each fixed counters. Extend the related variables (e.g. mask, counters, error) to support fixed counters. There is no extended PEBS in PEBS v2 and earlier PEBS format. O