Re: [PATCH V3 5/6] x86/intel_rdt: Use perf infrastructure for measurements

2018-09-17 Thread Reinette Chatre
Hi Peter, On 9/17/2018 1:58 AM, Peter Zijlstra wrote: > On Tue, Sep 11, 2018 at 10:14:36AM -0700, Reinette Chatre wrote: >> +static int measure_l2_residency(void *_plr) >> +{ > >> +measure_residency_fn(&perf_miss_attr, &perf_hit_attr, plr, &counts); > >> +} >> + >> +static int measure_l3_res

Re: [PATCH V3 5/6] x86/intel_rdt: Use perf infrastructure for measurements

2018-09-17 Thread Peter Zijlstra
On Tue, Sep 11, 2018 at 10:14:36AM -0700, Reinette Chatre wrote: > +static int measure_l2_residency(void *_plr) > +{ > + measure_residency_fn(&perf_miss_attr, &perf_hit_attr, plr, &counts); > +} > + > +static int measure_l3_residency(void *_plr) > +{ > + measure_residency_fn(&perf_miss_a

[PATCH V3 5/6] x86/intel_rdt: Use perf infrastructure for measurements

2018-09-11 Thread Reinette Chatre
The success of a cache pseudo-locked region is measured using performance monitoring events that are programmed directly at the time the user requests a measurement. Modifying the performance event registers directly is not appropriate since it circumvents the in-kernel perf infrastructure that ex