build(deps): bump github.com/intel/goresctrl from 0.3.0 to 0.5.0
Bumps [github.com/intel/goresctrl](https://github.com/intel/goresctrl) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/intel/goresctrl/releases) - [Commits](https://github.com/intel/goresctrl/compare/v0.3.0...v0.5.0) --- updated-dependencies: - dependency-name: github.com/intel/goresctrl dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
7
vendor/github.com/intel/goresctrl/pkg/utils/msr.go
generated
vendored
7
vendor/github.com/intel/goresctrl/pkg/utils/msr.go
generated
vendored
@@ -20,12 +20,13 @@ import (
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
goresctrlpath "github.com/intel/goresctrl/pkg/path"
|
||||
)
|
||||
|
||||
func ReadMSR(cpu ID, msr int64) (uint64, error) {
|
||||
str := fmt.Sprintf("/dev/cpu/%d/msr", cpu)
|
||||
|
||||
file, err := os.Open(str)
|
||||
path := goresctrlpath.Path("dev/cpu", fmt.Sprintf("%d", cpu), "msr")
|
||||
file, err := os.Open(path)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user