coreboot-kgpe-d16/util/msrtool
Patrick Georgi 6b5bc77c9b treewide: Remove "this file is part of" lines
Stefan thinks they don't add value.

Command used:
sed -i -e '/file is part of /d' $(git grep "file is part of " |egrep ":( */\*.*\*/\$|#|;#|-- | *\* )" | cut -d: -f1 |grep -v crossgcc |grep -v gcov | grep -v /elf.h |grep -v nvramtool)

The exceptions are for:
 - crossgcc (patch file)
 - gcov (imported from gcc)
 - elf.h (imported from GNU's libc)
 - nvramtool (more complicated header)

The removed lines are:
-       fmt.Fprintln(f, "/* This file is part of the coreboot project. */")
-# This file is part of a set of unofficial pre-commit hooks available
-/* This file is part of coreboot */
-# This file is part of msrtool.
-/* This file is part of msrtool. */
- * This file is part of ncurses, designed to be appended after curses.h.in
-/* This file is part of pgtblgen. */
- * This file is part of the coreboot project.
- /* This file is part of the coreboot project. */
-#  This file is part of the coreboot project.
-# This file is part of the coreboot project.
-## This file is part of the coreboot project.
--- This file is part of the coreboot project.
-/* This file is part of the coreboot project */
-/* This file is part of the coreboot project. */
-;## This file is part of the coreboot project.
-# This file is part of the coreboot project. It originated in the
- * This file is part of the coreinfo project.
-## This file is part of the coreinfo project.
- * This file is part of the depthcharge project.
-/* This file is part of the depthcharge project. */
-/* This file is part of the ectool project. */
- * This file is part of the GNU C Library.
- * This file is part of the libpayload project.
-## This file is part of the libpayload project.
-/* This file is part of the Linux kernel. */
-## This file is part of the superiotool project.
-/* This file is part of the superiotool project */
-/* This file is part of uio_usbdebug */

Change-Id: I82d872b3b337388c93d5f5bf704e9ee9e53ab3a9
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41194
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-05-11 17:11:40 +00:00
..
COPYING
Makefile.in treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
README msrtool/README: Remove trailing spaces 2016-07-28 01:08:47 +02:00
TODO
configure treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
cs5536.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
darwin.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
description.md util: Add description.md to each util 2018-07-26 13:26:50 +00:00
freebsd.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
geodegx2.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
geodelx.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
intel_atom.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
intel_core1.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
intel_core2_early.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
intel_core2_later.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
intel_nehalem.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
intel_pentium3.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
intel_pentium3_early.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
intel_pentium4_early.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
intel_pentium4_later.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
intel_pentium_d.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
k8.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
linux.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
msrtool.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
msrtool.h treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
msrutils.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
sys.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
via_c7.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +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}