diff options
author | Kan Liang <[email protected]> | 2024-06-26 07:35:38 -0700 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2024-07-04 16:00:39 +0200 |
commit | e8fb5d6e765838e913253ef7c9b6fd8ec76c8d53 (patch) | |
tree | 4e1e0ad4b0b080baf0a449cf4ac86f95cf044ce0 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 608f6976c309793ceea37292c54b057dab091944 (diff) |
perf/x86: Add config_mask to represent EVENTSEL bitmask
Different vendors may support different fields in EVENTSEL MSR, such as
Intel would introduce new fields umask2 and eq bits in EVENTSEL MSR
since Perfmon version 6. However, a fixed mask X86_RAW_EVENT_MASK is
used to filter the attr.config.
Introduce a new config_mask to record the real supported EVENTSEL
bitmask.
Only apply it to the existing code now. No functional change.
Co-developed-by: Dapeng Mi <[email protected]>
Signed-off-by: Dapeng Mi <[email protected]>
Signed-off-by: Kan Liang <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Andi Kleen <[email protected]>
Reviewed-by: Ian Rogers <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions