diff options
| author | Like Xu <[email protected]> | 2022-05-18 21:25:11 +0800 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2022-06-08 04:49:03 -0400 |
| commit | 08dca7a8e73abfeb3a998714272d1d1c974b0190 (patch) | |
| tree | 6ba8ca23d18dff539be88b5044138a8cdb62b968 /tools/perf/scripts/python/flamegraph.py | |
| parent | dc852ff5bb419195c7d64cfcbe26f747490fca14 (diff) | |
KVM: x86/pmu: Replace pmc_perf_hw_id() with perf_get_hw_event_config()
With the help of perf_get_hw_event_config(), KVM could query the correct
EVENTSEL_{EVENT, UMASK} pair of a kernel-generic hw event directly from
the different *_perfmon_event_map[] by the kernel's pre-defined perf_hw_id.
Also extend the bit range of the comparison field to
AMD64_RAW_EVENT_MASK_NB to prevent AMD from
defining EventSelect[11:8] into perfmon_event_map[] one day.
Signed-off-by: Like Xu <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions