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

2015-09-10 Thread Peter Zijlstra
On Fri, Sep 04, 2015 at 02:28:36AM +0900, Taku Izumi wrote: > +struct pci2phy_map *__find_pci2phy_map(int segment) > +{ > + struct pci2phy_map *map; > + > + lockdep_assert_held(&pci2phy_map_lock); > + > + list_for_each_entry(map, &pci2phy_map_head, list) { > + if (map->segm

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

2015-09-03 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 S