Re: [PATCH v4] perf, x86: Fix multi-segment problem of perf_event_intel_uncore

2015-09-16 Thread Peter Zijlstra
On Thu, Sep 17, 2015 at 01:17:12AM +0900, Taku Izumi wrote: > +struct pci2phy_map { > + struct list_head list; > + int segment; > + int pbus_to_physid[256]; > +}; > +struct pci2phy_map *__find_pci2phy_map(int segment) > +{ > + struct pci2phy_map *map, *alloc = NULL; > + > +

[PATCH v4] perf, x86: Fix multi-segment problem of perf_event_intel_uncore

2015-09-16 Thread Taku Izumi
In multi-segment system, uncore devices may belong to buses whose segment number is other than 0. :ff:10.5 System peripheral: Intel Corporation Xeon E5 v3/Core i7 Scratchpad & Semaphore Registers (rev 03) ... 0001:7f:10.5 System peripheral: Intel Corporation Xeon E5 v3/Core i7

Re: [PATCH v4] perf, x86: Fix multi-segment problem of perf_event_intel_uncore

2015-09-16 Thread Peter Zijlstra
On Thu, Sep 17, 2015 at 01:17:12AM +0900, Taku Izumi wrote: > +struct pci2phy_map { > + struct list_head list; > + int segment; > + int pbus_to_physid[256]; > +}; > +struct pci2phy_map *__find_pci2phy_map(int segment) > +{ > + struct pci2phy_map *map, *alloc = NULL; > + > +

[PATCH v4] perf, x86: Fix multi-segment problem of perf_event_intel_uncore

2015-09-16 Thread Taku Izumi
In multi-segment system, uncore devices may belong to buses whose segment number is other than 0. :ff:10.5 System peripheral: Intel Corporation Xeon E5 v3/Core i7 Scratchpad & Semaphore Registers (rev 03) ... 0001:7f:10.5 System peripheral: Intel Corporation Xeon E5 v3/Core i7