Documentation ¶
Overview ¶
msr lets you read and write an msr for one or more cores. The cores are specified via a filepath.Glob string. The string should be for core number only, with no surrounding paths, e.g. you use 0 for core 0, not /dev/cpu/0/msr. To specify all cores, use '*' To specify all cores with two digits, use '??' To specify all odd cores, use '*[13579]' To specify, e.g., all the even cores, use '*[02468]'. Usage: msr r glob 32-bit-msr-number msr w glob 32-bit-msr-number 64-bit-value For each MSR operation msr will print an error if any. If your kernel does not have MSRs for any reason, this will fail due to file access. But it's quite possible that non-x86 architectures might someday implement MSRs, which on (e.g.) PPC might have a slightly different name (DICR) but would implement the same kinds of functions.
This file contains support functions for msr access for Linux.