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

2015-07-02 Thread Peter Zijlstra
On Thu, Jul 02, 2015 at 05:01:40AM +0900, Taku Izumi wrote: > + raw_spin_lock(&pci2phy_map_lock); > + list_for_each_entry(map, &pci2phy_map_head, list) { > + if (map->segment == pci_domain_nr(pdev->bus)) { > + phys_id = map->pbus_to_physid[pdev->bus->number];

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

2015-06-30 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