diff options
author | 2025-05-17 15:58:51 +0800 | |
---|---|---|
committer | 2025-06-08 14:10:16 -0400 | |
commit | 1ab2e19b4c52ee08700938d52024d85bd15c9721 (patch) | |
tree | 5e9a3fe29633be758b17e32438a99e479267fd18 /scripts/gdb/linux/utils.py | |
parent | tools/power turbostat: Remove add_msr_perf_counter_() (diff) | |
download | linux-rng-1ab2e19b4c52ee08700938d52024d85bd15c9721.tar.xz linux-rng-1ab2e19b4c52ee08700938d52024d85bd15c9721.zip |
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/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions