Name Date Size #Lines LOC

..--

.gitignoreH A D25-Apr-202531 43

COPYINGH A D25-Apr-202517.6 KiB340281

Makefile.inH A D25-Apr-20251.1 KiB5031

READMEH A D25-Apr-20251.4 KiB3728

TODOH A D25-Apr-2025282 108

configureH A D25-Apr-20254.5 KiB180154

cs5536.cH A D25-Apr-202543.9 KiB1,3391,322

darwin.cH A D25-Apr-2025873 5743

description.mdH A D25-Apr-202542 21

freebsd.cH A D25-Apr-20251.4 KiB8870

geodegx2.cH A D25-Apr-202562.5 KiB1,6891,684

geodelx.cH A D25-Apr-202515.5 KiB441436

intel_atom.cH A D25-Apr-202534.7 KiB1,138949

intel_core1.cH A D25-Apr-20255.4 KiB206201

intel_core2_early.cH A D25-Apr-20255.8 KiB221216

intel_core2_later.cH A D25-Apr-202538.8 KiB1,2861,112

intel_nehalem.cH A D25-Apr-202568.5 KiB2,2721,954

intel_pentium3.cH A D25-Apr-20254.4 KiB169164

intel_pentium3_early.cH A D25-Apr-20256.3 KiB244239

intel_pentium4_early.cH A D25-Apr-202514.3 KiB554549

intel_pentium4_later.cH A D25-Apr-202518.1 KiB679653

intel_pentium_d.cH A D25-Apr-202514.2 KiB542537

k8.cH A D25-Apr-202510.9 KiB342324

linux.cH A D25-Apr-20251.5 KiB7566

msrtool.cH A D25-Apr-202512 KiB428393

msrtool.hH A D25-Apr-20256.9 KiB251172

msrutils.cH A D25-Apr-20259 KiB343283

sys.cH A D25-Apr-20251.6 KiB7456

via_c7.cH A D25-Apr-202513.2 KiB459438

README

1
2You need to be ROOT or use SUDO to execute MSRTOOL.
3
4Note that you need /dev/cpu/*/msr available to run msrtool in Linux.
5
6
7syntax: msrtool [-hvqrkl] [-c cpu] [-m system] [-t target ...]
8         [-i addr=hi[:]lo] | [-s file] | [-d [:]file] | addr...
9  -h     show this help text
10  -v     be verbose
11  -q     be quiet (overrides -v)
12  -r     include [Reserved] values
13  -k     list all known systems and targets
14  -l     list MSRs and bit fields for current target(s) (-kl for ALL targets!)
15  -c     access MSRs on the specified CPU, default=0
16  -m     force a system, e.g: -m linux
17  -t     force a target, can be used multiple times, e.g: -t geodelx -t cs5536
18  -i     immediate mode
19         decode hex addr=hi:lo for the target without reading hw value
20         e.g: -i 4c00000f=f2f100ff56960004
21  -s     stream mode
22         read one MSR address per line and append current hw value to the line
23         use the filename - for stdin/stdout
24         using -l -s ignores input and will output all MSRs with values
25  -d     diff mode
26         read one address and value per line and compare with current hw value,
27         printing differences to stdout. use the filename - to read from stdin
28         use :file or :- to reverse diff, normally hw values are considered new
29  addr.. direct mode, read and decode values for the given MSR address(es)
30
31
32Examples:
33
34msrtool 0x20000018
35
36./msrtool 0x200000{18,19,1a,1b,1c,1d} 0x4c0000{0f,14}
37