Closed cvonelm closed 10 months ago
Also the question is if this should be recorded on a new "uncore" location, instead of "core X"
As this PR is completely based on an EventDescription Rework which turned out to be a cluttery mess, I am closing this PR in favour of an implementation on the current EventDescription or a properly reworked version.
This PR adds support for the
cpumask
field of PMU events.Some PMUs do not refer to a core component but to some piece of uncore, such as the
amd_iommu_0
PMU found on modern AMD processors.To be able to still measure them, perf associates every uncore PMU with a logical core. This relationship is recorded in the
cpumask
field.This PR makes lo2s respect this
cpumask
field, only opening the PMU events on the cores recorded incpumask
.Note that this works as both
-E
and--userspace-metric-event
.This PR is marked DRAFT for these reasons:
--list-events
looks?Currently it prints something like this:
This PR does not address the second part of Issue #262, which is support for uncore events in process mode.
I think before we attempt to band-aid fix support for such a system-mode event in process mode we should have a discussion about a more general solution to combining system-mode and process mode measurements.