aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorSandipan Das <[email protected]>2024-06-26 13:14:04 +0530
committerPeter Zijlstra <[email protected]>2024-07-04 16:00:41 +0200
commitf997e208b6c96858a2f6c0855debfbdb9b52f131 (patch)
treeb396418c2c00c5afb2fdd48190ae065a0e8b5447 /tools/testing/selftests/bpf/progs/test_autoload.c
parent149fd4712bcd492a031945f92e5ce19879f62311 (diff)
perf/x86/amd/uncore: Avoid PMU registration if counters are unavailable
X86_FEATURE_PERFCTR_NB and X86_FEATURE_PERFCTR_LLC are derived from CPUID leaf 0x80000001 ECX bits 24 and 28 respectively and denote the availability of DF and L3 counters. When these bits are not set, the corresponding PMUs have no counters and hence, should not be registered. Fixes: 07888daa056e ("perf/x86/amd/uncore: Move discovery and registration") Signed-off-by: Sandipan Das <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[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