diff options
| author | Sean Christopherson <[email protected]> | 2024-01-09 15:02:25 -0800 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2024-01-30 15:28:02 -0800 |
| commit | 7a277c22412cf72cf6376f21c6d826e8f4a44cc3 (patch) | |
| tree | d20f225cba67594d2ec3e3cfd698438d65805ee1 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
| parent | 61bb2ad795a72a7a75add3ffc257660fd6c7cfea (diff) | |
KVM: x86/pmu: Get eventsel for fixed counters from perf
Get the event selectors used to effectively request fixed counters for
perf events from perf itself instead of hardcoding them in KVM and hoping
that they match the underlying hardware. While fixed counters 0 and 1 use
architectural events, as of ffbe4ab0beda ("perf/x86/intel: Extend the
ref-cycles event to GP counters") fixed counter 2 (reference TSC cycles)
may use a software-defined pseudo-encoding or a real hardware-defined
encoding.
Reported-by: Kan Liang <[email protected]>
Closes: https://lkml.kernel.org/r/4281eee7-6423-4ec8-bb18-c6aeee1faf2c%40linux.intel.com
Reviewed-by: Kan Liang <[email protected]>
Tested-by: Dapeng Mi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions