As implemented in https://github.com/djselbeck/rapl-read-ryzen/ Notice that you need to do `sudo modprobe msr`