lkml.org 
[lkml]   [2017]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRE: [PATCH V3 1/5] perf/x86/intel/uncore: customized pmu event read for client IMC uncore
On Thu, 2 Nov 2017, Liang, Kan wrote:
> > On Tue, 24 Oct 2017, kan.liang@intel.com wrote:
> > > - if (event->hw.idx >= UNCORE_PMC_IDX_FIXED)
> > > + if (event->hw.idx == UNCORE_PMC_IDX_FIXED)
> > > shift = 64 - uncore_fixed_ctr_bits(box);
> > > else
> > > shift = 64 - uncore_perf_ctr_bits(box); diff --git
> > > a/arch/x86/events/intel/uncore_snb.c
> > > b/arch/x86/events/intel/uncore_snb.c
> > > index db1127c..9d5cd3f 100644
> > > --- a/arch/x86/events/intel/uncore_snb.c
> > > +++ b/arch/x86/events/intel/uncore_snb.c
> > > @@ -498,6 +498,30 @@ static void snb_uncore_imc_event_del(struct
> > perf_event *event, int flags)
> > > snb_uncore_imc_event_stop(event, PERF_EF_UPDATE); }
> > >
> > > +static void snb_uncore_imc_event_read(struct perf_event *event) {
> > > + struct intel_uncore_box *box = uncore_event_to_box(event);
> > > + u64 prev_count, new_count, delta;
> > > + int shift;
> > > +
> > > + if (event->hw.idx >= UNCORE_PMC_IDX_FIXED)
> >
> > And this needs to be >= because?
>
> Patch 5/5 will clean up the client IMC uncore.
> Before that, we still need it to make client IMC uncore work.
>
> This patch isolates the >= case for client IMC uncore.

Fair enough. A comment to that effect (even when removed later) would have
avoided that question.

Thanks,

tglx

\
 
 \ /
  Last update: 2017-11-02 14:55    [W:0.046 / U:1.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site