diff options
author | Patryk Wlazlyn <patryk.wlazlyn@linux.intel.com> | 2024-07-09 14:46:20 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2024-07-09 15:38:13 +0200 |
commit | 9f50066b0dd47cff045ba6da37e6def52783ba55 (patch) | |
tree | c1732cd5bbd74a5074b522d1ad85e78ec69d57b8 /tools | |
parent | tools/power turbostat: Fix formatting in turbostat.8 (diff) | |
download | linux-9f50066b0dd47cff045ba6da37e6def52783ba55.tar.xz linux-9f50066b0dd47cff045ba6da37e6def52783ba55.zip |
tools/power turbostat: Add perf added counter example to turbostat.8
We had few lines about the feature, but without any complete examples.
Signed-off-by: Patryk Wlazlyn <patryk.wlazlyn@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/power/x86/turbostat/turbostat.8 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/power/x86/turbostat/turbostat.8 b/tools/power/x86/turbostat/turbostat.8 index 8a21e9b56071..71ae2d5159ad 100644 --- a/tools/power/x86/turbostat/turbostat.8 +++ b/tools/power/x86/turbostat/turbostat.8 @@ -336,6 +336,24 @@ CPU PRF_CTRL .fi +.SH ADD PERF COUNTER EXAMPLE +Here we limit turbostat to showing just the CPU number for cpu0 - cpu3. +We add a counter showing time spent in C1 core cstate, +labeling it with the column header, "pCPU%c1", and display it only once, +after the conclusion of 0.1 second sleep. +We also show CPU%c1 built-in counter that should show similar values. +.nf +sudo ./turbostat --quiet --cpu 0-3 --show CPU,CPU%c1 --add perf/cstate_core/c1-residency,cpu,delta,percent,pCPU%c1 sleep .1 +0.102448 sec +CPU pCPU%c1 CPU%c1 +- 34.89 34.89 +0 45.99 45.99 +1 45.94 45.94 +2 23.83 23.83 +3 23.84 23.84 + +.fi + .SH INPUT For interval-mode, turbostat will immediately end the current interval |