coreboot-kgpe-d16/util/msrtool
Tom Hiller 8ba9e8cf63 util: Add description.md to each util
Descriptions are taken from the files themselves or READMEs. Description
followed by a space with the language in marked up as code.

Change-Id: I5f91e85d1034736289aedf27de00df00db3ff19c
Signed-off-by: Tom Hiller <thrilleratplay@gmail.com>
Reviewed-on: https://review.coreboot.org/27563
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
2018-07-26 13:26:50 +00:00
..
COPYING
Makefile.in util/msrtool: Add Pentium D support 2018-06-04 02:30:03 +00:00
README
TODO
configure
cs5536.c
darwin.c
description.md util: Add description.md to each util 2018-07-26 13:26:50 +00:00
freebsd.c
geodegx2.c
geodelx.c
intel_atom.c util/msrtool: Fix swapped IA32_MC3_x and IA32_MC4_x 2018-05-15 03:56:51 +00:00
intel_core1.c util/msrtool: Fix swapped IA32_MC3_x and IA32_MC4_x 2018-05-15 03:56:51 +00:00
intel_core2_early.c util/msrtool: Fix swapped IA32_MC3_x and IA32_MC4_x 2018-05-15 03:56:51 +00:00
intel_core2_later.c util/msrtool: Fix swapped IA32_MC3_x and IA32_MC4_x 2018-05-15 03:56:51 +00:00
intel_nehalem.c util/msrtool: Fix swapped IA32_MC3_x and IA32_MC4_x 2018-05-15 03:56:51 +00:00
intel_pentium3.c util/msrtool: Fix swapped IA32_MC3_x and IA32_MC4_x 2018-05-15 03:56:51 +00:00
intel_pentium3_early.c util/msrtool: Fix swapped IA32_MC3_x and IA32_MC4_x 2018-05-15 03:56:51 +00:00
intel_pentium4_early.c
intel_pentium4_later.c
intel_pentium_d.c util/msrtool: Add Pentium D support 2018-06-04 02:30:03 +00:00
k8.c util/msrtool: Check for VENDOR_AMD for K8 probe 2018-05-15 03:57:13 +00:00
linux.c
msrtool.c util/msrtool: Add Pentium D support 2018-06-04 02:30:03 +00:00
msrtool.h util/msrtool: Add Pentium D support 2018-06-04 02:30:03 +00:00
msrutils.c msrtool: add support for printing string values 2018-05-13 10:07:23 +00:00
sys.c msrtool: use a bit more clever cpuid vendor match 2018-05-15 03:55:19 +00:00
via_c7.c msrtool: add VIA C7 2018-05-15 11:14:10 +00:00

README

You need to be ROOT or use SUDO to execute MSRTOOL.

Note that you need /dev/cpu/*/msr available to run msrtool in Linux.


syntax: msrtool [-hvqrkl] [-c cpu] [-m system] [-t target ...]
         [-i addr=hi[:]lo] | [-s file] | [-d [:]file] | addr...
  -h     show this help text
  -v     be verbose
  -q     be quiet (overrides -v)
  -r     include [Reserved] values
  -k     list all known systems and targets
  -l     list MSRs and bit fields for current target(s) (-kl for ALL targets!)
  -c     access MSRs on the specified CPU, default=0
  -m     force a system, e.g: -m linux
  -t     force a target, can be used multiple times, e.g: -t geodelx -t cs5536
  -i     immediate mode
         decode hex addr=hi:lo for the target without reading hw value
         e.g: -i 4c00000f=f2f100ff56960004
  -s     stream mode
         read one MSR address per line and append current hw value to the line
         use the filename - for stdin/stdout
         using -l -s ignores input and will output all MSRs with values
  -d     diff mode
         read one address and value per line and compare with current hw value,
         printing differences to stdout. use the filename - to read from stdin
         use :file or :- to reverse diff, normally hw values are considered new
  addr.. direct mode, read and decode values for the given MSR address(es)


Examples:

msrtool 0x20000018

./msrtool 0x200000{18,19,1a,1b,1c,1d} 0x4c0000{0f,14}