This replaces GPLv2-or-later and GPLv2-only long form text with the short SPDX identifiers. Commands used: perl -i -p0e 's|/\*[*\n\t ]*This program is free software[:;].*you.*can.*redistribute.*it.*and/or.*modify.*it.*under.*the.*terms.*of.*the.*GNU.*General.*Public.*License.*as.*published.*by.*the.*Free.*Software.*Foundation[;,].*version.*2.*of.*the.*License.*or.*(at.*your.*option).*any.*later.*version.+This.*program.*is.*distributed.*in.*the.*hope.*that.*it.*will.*be.*useful,.*but.*;.*without.*even.*the.*implied.*warranty.*of.*MERCHANTABILITY.*or.*FITNESS.*FOR.*A.*PARTICULAR.*PURPOSE..*.*See.*the.*GNU.*General.*Public.*License for more details.[\n\t ]*\*/|/* SPDX-License-Identifier: GPL-2.0-or-later */|s' $(cat filelist) perl -i -p0e 's|/\*[*\n\t ]*This program is free software[:;].*you.*can.*redistribute.*it.*and/or.*modify.*it.*under.*the.*terms.*of.*the.*GNU.*General.*Public.*License.*as.*published.*by.*the.*Free.*Software.*Foundation[;,].*version.*2.+This.*program.*is.*distributed.*in.*the.*hope.*that.*it.*will.*be.*useful,.*but.*;.*without.*even.*the.*implied.*warranty.*of.*MERCHANTABILITY.*or.*FITNESS.*FOR.*A.*PARTICULAR.*PURPOSE..*.*See.*the.*GNU.*General.*Public.*License for more details.[\n\t ]*\*/|/* SPDX-License-Identifier: GPL-2.0-only */|s' $(cat filelist) perl -i -p0e 's|/\*[*\n\t ]*This program is free software[:;].*you.*can.*redistribute.*it.*and/or.*modify.*it.*under.*the.*terms.*of.*the.*GNU.*General.*Public.*License.*version.*2.*as.*published.*by.*the.*Free.*Software.*Foundation[.;,].+This.*program.*is.*distributed.*in.*the.*hope.*that.*it.*will.*be.*useful,.*but.*;.*without.*even.*the.*implied.*warranty.*of.*MERCHANTABILITY.*or.*FITNESS.*FOR.*A.*PARTICULAR.*PURPOSE..*.*See.*the.*GNU.*General.*Public.*License for more details.[\n\t ]*\*/|/* SPDX-License-Identifier: GPL-2.0-only */|s' $(cat filelist) perl -i -p0e 's|/\*[*\n\t ]*This software is licensed under.*the.*terms.*of.*the.*GNU.*General.*Public.*License.*version.*2.*as.*published.*by.*the.*Free.*Software.*Foundation,.+This.*program.*is.*distributed.*in.*the.*hope.*that.*it.*will.*be.*useful,.*but.*;.*without.*even.*the.*implied.*warranty.*of.*MERCHANTABILITY.*or.*FITNESS.*FOR.*A.*PARTICULAR.*PURPOSE..*.*See.*the.*GNU.*General.*Public.*License for more details.[\n\t ]*\*/|/* SPDX-License-Identifier: GPL-2.0-only */|s' $(cat filelist) Change-Id: I7a746088a35633c11fc7ebe86006e96458a1abf8 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41066 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: David Hendricks <david.hendricks@gmail.com> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> |
||
|---|---|---|
| .. | ||
| configure | ||
| COPYING | ||
| cs5536.c | ||
| darwin.c | ||
| description.md | ||
| freebsd.c | ||
| geodegx2.c | ||
| geodelx.c | ||
| intel_atom.c | ||
| intel_core1.c | ||
| intel_core2_early.c | ||
| intel_core2_later.c | ||
| intel_nehalem.c | ||
| intel_pentium3.c | ||
| intel_pentium3_early.c | ||
| intel_pentium4_early.c | ||
| intel_pentium4_later.c | ||
| intel_pentium_d.c | ||
| k8.c | ||
| linux.c | ||
| Makefile.in | ||
| msrtool.c | ||
| msrtool.h | ||
| msrutils.c | ||
| README | ||
| sys.c | ||
| TODO | ||
| via_c7.c | ||
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}