msr

command
v6.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL