Skip to content

Commit 10bbe75

Browse files
committed
Merge branch 'turbostat' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux
Pull turbostat updates from Len Brown. * 'turbostat' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux: tools/power turbostat: remove obsolete -M, -m, -C, -c options tools/power turbostat: Make extensible via the --add parameter tools/power turbostat: Denverton uses a 25 MHz crystal, not 19.2 MHz tools/power turbostat: line up headers when -M is used tools/power turbostat: fix SKX PKG_CSTATE_LIMIT decoding tools/power turbostat: Support Knights Mill (KNM) tools/power turbostat: Display HWP OOB status tools/power turbostat: fix Denverton BCLK tools/power turbostat: use intel-family.h model strings tools/power/turbostat: Add Denverton RAPL support tools/power/turbostat: Add Denverton support tools/power/turbostat: split core MSR support into status + limit tools/power turbostat: fix error case overflow read of slm_freq_table[] tools/power turbostat: Allocate correct amount of fd and irq entries tools/power turbostat: switch to tab delimited output tools/power turbostat: Gracefully handle ACPI S3 tools/power turbostat: tidy up output on Joule counter overflow
2 parents 6290602 + 6886fee commit 10bbe75

File tree

3 files changed

+673
-371
lines changed

3 files changed

+673
-371
lines changed

tools/power/x86/turbostat/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ endif
1010
turbostat : turbostat.c
1111
CFLAGS += -Wall
1212
CFLAGS += -DMSRHEADER='"../../../../arch/x86/include/asm/msr-index.h"'
13+
CFLAGS += -DINTEL_FAMILY_HEADER='"../../../../arch/x86/include/asm/intel-family.h"'
1314

1415
%: %.c
1516
@mkdir -p $(BUILD_OUTPUT)

tools/power/x86/turbostat/turbostat.8

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,27 @@ Some information is not available on older processors.
2525
.SS Options
2626
Options can be specified with a single or double '-', and only as much of the option
2727
name as necessary to disambiguate it from others is necessary. Note that options are case-sensitive.
28-
\fB--Counter MSR#\fP shows the delta of the specified 64-bit MSR counter.
2928
.PP
30-
\fB--counter MSR#\fP shows the delta of the specified 32-bit MSR counter.
29+
\fB--add attributes\fP add column with counter having specified 'attributes'. The 'location' attribute is required, all others are optional.
30+
.nf
31+
location: {\fBmsrDDD\fP | \fBmsr0xXXX\fP}
32+
msrDDD is a decimal offset, eg. msr16
33+
msr0xXXX is a hex offset, eg. msr0x10
34+
35+
scope: {\fBcpu\fP | \fBcore\fP | \fBpackage\fP}
36+
sample and print the counter for every cpu, core, or package.
37+
default: cpu
38+
39+
size: {\fBu32\fP | \fBu64\fP }
40+
MSRs are read as 64-bits, u32 truncates the displayed value to 32-bits.
41+
default: u64
42+
43+
format: {\fBraw\fP | \fBdelta\fP | \fBpercent\fP}
44+
'raw' shows the MSR contents in hex.
45+
'delta' shows the difference in values during the measurement interval.
46+
'percent' shows the delta as a percentage of the cycles elapsed.
47+
default: delta
48+
.fi
3149
.PP
3250
\fB--Dump\fP displays the raw counter values.
3351
.PP
@@ -43,10 +61,6 @@ The file is truncated if it already exists, and it is created if it does not exi
4361
.PP
4462
\fB--Joules\fP displays energy in Joules, rather than dividing Joules by time to print power in Watts.
4563
.PP
46-
\fB--MSR MSR#\fP shows the specified 64-bit MSR value.
47-
.PP
48-
\fB--msr MSR#\fP shows the specified 32-bit MSR value.
49-
.PP
5064
\fB--Package\fP limits output to the system summary plus the 1st thread in each Package.
5165
.PP
5266
\fB--processor\fP limits output to the system summary plus the 1st thread in each processor of each package. Ie. it skips hyper-threaded siblings.

0 commit comments

Comments
 (0)