diff options
author | Zhang Rui <rui.zhang@intel.com> | 2025-05-17 10:58:51 +0300 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2025-06-08 21:10:16 +0300 |
commit | 1ab2e19b4c52ee08700938d52024d85bd15c9721 (patch) | |
tree | 5e9a3fe29633be758b17e32438a99e479267fd18 /scripts/generate_rust_analyzer.py | |
parent | 3403e89f97ce71e473a5128ea389cb83bc27e7a9 (diff) | |
download | linux-1ab2e19b4c52ee08700938d52024d85bd15c9721.tar.xz |
tools/power turbostat: Introduce add_msr_counter()
probe_rapl_msr() is reused for probing RAPL MSR counters, cstate MSR
counters and MPERF/APERF/SMI MSR counters, thus its name is misleading.
Similar to add_perf_counter(), introduce add_msr_counter() to probe a
counter via MSR. Introduce wrapper function add_rapl_msr_counter() at
the same time to add extra check for Zero return value for specified
RAPL counters.
No functional change intended.
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions