diff options
author | Sandipan Das <[email protected]> | 2023-10-05 10:53:13 +0530 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2023-10-09 16:12:24 +0200 |
commit | 7ef0343855dc23a979a53b3143540f93f3e5bef8 (patch) | |
tree | 5990c6b7081bc48851695b575801dbd2354a5dd6 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 07888daa056e809de0b6b234116b575c11f9f99d (diff) |
perf/x86/amd/uncore: Use rdmsr if rdpmc is unavailable
Not all uncore PMUs may support the use of the RDPMC instruction for
reading counters. In such cases, read the count from the corresponding
PERF_CTR register using the RDMSR instruction.
Signed-off-by: Sandipan Das <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lore.kernel.org/r/e9d994e32a3fcb39fa59fcf43ab4260d11aba097.1696425185.git.sandipan.das@amd.com
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions