On Mon, 22 Feb 2016, Peter Zijlstra wrote:
> On Mon, Feb 22, 2016 at 11:06:50AM -0000, Thomas Gleixner wrote:
> > + event->pmu_private = box;
>
> > +static inline struct intel_uncore_box *uncore_event_to_box(struct
> > perf_event *event)
> > +{
> > + return event->pmu_private;
> > +}
>
> Do you really need this? That is, what is wrong with:
>
> static inline struct intel_uncore_box *uncore_event_to_box(struct perf_event
> *event)
> {
> return uncore_pmu_to_box(event->pmu, event->cpu);
> }
>
> Which, after patch 12, should be fairly trivial, right?
Yes.
- [patch V2 11/28] x86/topology: Create logical package id Thomas Gleixner
- Re: [patch V2 11/28] x86/topology: Create logical pac... Andi Kleen
- Re: [patch V2 11/28] x86/topology: Create logical... Thomas Gleixner
- [patch V2 12/28] x86/perf/uncore: Track packages not per c... Thomas Gleixner
- [patch V2 08/28] x86/perf/uncore: Make uncore_pcibus_to_ph... Thomas Gleixner
- [patch V2 02/28] x86/perf/intel/uncore: Simplify error rol... Thomas Gleixner
- [patch V2 10/28] x86/perf/intel_uncore: Store box in event... Thomas Gleixner
- Re: [patch V2 10/28] x86/perf/intel_uncore: Store box... Peter Zijlstra
- Re: [patch V2 10/28] x86/perf/intel_uncore: Store... Thomas Gleixner
- Re: [patch V2 10/28] x86/perf/intel_uncore: Store box... Peter Zijlstra
- Re: [patch V2 10/28] x86/perf/intel_uncore: Store... Thomas Gleixner
- [patch V2 01/28] x86/perf/intel/uncore: Remove pointless m... Thomas Gleixner
- [patch V2 04/28] x86/perf/intel/uncore: Add sanity checks ... Thomas Gleixner
- [patch V2 03/28] x86/perf/intel/uncore: Fix error handling Thomas Gleixner
- [patch V2 05/28] x86/perf/intel_uncore: Cleanup hardware o... Thomas Gleixner
- Re: [patch V2 00/28] x86/perf/intel/uncore|rapl: Fix error... Andi Kleen

