Commit 64f96057 authored by Len Brown's avatar Len Brown
Browse files

tools/power turbostat.8: Update example



Update the added-counters example to print counters in decimal
rather than hex -- now that it is working...

Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 885e8227
Loading
Loading
Loading
Loading
+10 −11
Original line number Diff line number Diff line
@@ -410,25 +410,24 @@ CPU pCPU%c1 CPU%c1
.fi

.SH ADD PERF COUNTER EXAMPLE #2 (using virtual cpu device)
Here we run on hybrid, Raptor Lake platform.
We limit turbostat to show output for just cpu0 (pcore) and cpu12 (ecore).
Here we run on hybrid, Meteor Lake platform.
We limit turbostat to show output for just cpu0 (pcore) and cpu4 (ecore).
We add a counter showing number of L3 cache misses, using virtual "cpu" device,
labeling it with the column header, "VCMISS".
We add a counter showing number of L3 cache misses, using virtual "cpu_core" device,
labeling it with the column header, "PCMISS". This will fail on ecore cpu12.
labeling it with the column header, "PCMISS". This will fail on ecore cpu4.
We add a counter showing number of L3 cache misses, using virtual "cpu_atom" device,
labeling it with the column header, "ECMISS". This will fail on pcore cpu0.
We display it only once, after the conclusion of 0.1 second sleep.
.nf
sudo ./turbostat --quiet --cpu 0,12 --show CPU --add perf/cpu/cache-misses,cpu,delta,raw,VCMISS --add perf/cpu_core/cache-misses,cpu,delta,raw,PCMISS --add perf/cpu_atom/cache-misses,cpu,delta,raw,ECMISS sleep .1
sudo ./turbostat --quiet --cpu 0,4 --show CPU --add perf/cpu/cache-misses,cpu,delta,VCMISS --add perf/cpu_core/cache-misses,cpu,delta,PCMISS --add perf/cpu_atom/cache-misses,cpu,delta,ECMISS sleep 5
turbostat: added_perf_counters_init_: perf/cpu_atom/cache-misses: failed to open counter on cpu0
turbostat: added_perf_counters_init_: perf/cpu_core/cache-misses: failed to open counter on cpu12
0.104630 sec
turbostat: added_perf_counters_init_: perf/cpu_core/cache-misses: failed to open counter on cpu4
5.001207 sec
CPU	ECMISS		PCMISS		VCMISS
-       0x0000000000000000      0x0000000000000000      0x0000000000000000
0       0x0000000000000000      0x0000000000007951      0x0000000000007796
12      0x000000000001137a      0x0000000000000000      0x0000000000011392

-	41586506	46291219	87877749
4	83173012	0		83173040
0	0		92582439	92582458
.fi

.SH ADD PMT COUNTER EXAMPLE