WSL2-Linux-Kernel/tools/power/cpupower/man
Thomas Renninger c2294c1496 cpupower: Introduce powercap intel-rapl library and powercap-info command
Read out powercap zone information via:
cpupower powercap-info
and show the zone hierarchy to the user:

./cpupower powercap-info
Driver: intel-rapl
Powercap domain hierarchy:

Zone: package-0 (enabled)
Power consumption can be monitored in micro Watts

        Zone: core (disabled)
        Power consumption can be monitored in micro Watts

        Zone: uncore (disabled)
        Power consumption can be monitored in micro Watts

        Zone: dram (disabled)
        Power consumption can be monitored in micro Watts

There is a dummy -a option for powercap-info which can/should be used to
show more detailed info later. Like that other args can be added easily
later as well.

A enable/disable option via powercap-set subcommand is also an enhancement
for later.

Also not all RAPL domains are shown. The func walking through RAPL
subdomains is restricted and hardcoded to: "intel-rapl/intel-rapl:0"
On my system above powercap domains map to:
intel-rapl/intel-rapl:0
-> pack (age-0)
intel-rapl/intel-rapl:0/intel-rapl:0:0
-> core
intel-rapl/intel-rapl:0/intel-rapl:0:1
-> uncore

Missing ones on my system are:
intel-rapl-mmio/intel-rapl-mmio:0
-> pack (age-0)

intel-rapl/intel-rapl:1
-> psys

This could get enhanced in:
struct powercap_zone *powercap_init_zones()
and adopted to walk through all intel-rapl zones, but
also to other powercap drivers like dtpm
(Dynamic Thermal Power Management framework),
cmp with: drivers/powercap/dtpm_*

Signed-off-by: Thomas Renninger <trenn@suse.de>
CC: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2022-11-30 16:48:28 -07:00
..
cpupower-frequency-info.1 cpupower: Add "perf" option to print AMD P-State information 2022-02-23 17:46:21 -07:00
cpupower-frequency-set.1 Fix cpupower manpages "NAME" section 2016-04-28 16:02:29 +02:00
cpupower-idle-info.1 ACPI: Use valid link to the ACPI specification 2020-07-27 14:11:22 +02:00
cpupower-idle-set.1 tools: cpupower: fix typo in cpupower-idle-set(1) manpage 2022-01-24 09:07:11 -07:00
cpupower-info.1 cpupower: Remove mc and smt power aware scheduler info/settings 2014-05-17 00:36:37 +02:00
cpupower-monitor.1 cpupower: Replace HTTP links with HTTPS ones 2020-07-17 11:58:04 -06:00
cpupower-powercap-info.1 cpupower: Introduce powercap intel-rapl library and powercap-info command 2022-11-30 16:48:28 -07:00
cpupower-set.1 cpupower: Remove mc and smt power aware scheduler info/settings 2014-05-17 00:36:37 +02:00
cpupower.1 Correction to manpage of cpupower 2020-01-27 08:43:31 -07:00