@hrw Depending on the circumstances, lscpu might not be possible.
I just committed support for pmda-denki to use /dev/cpu/*/msr registers as source for power consumption metrics. I need to detect the cpu type (using /proc/cpuinfo right now) to understand which MSR are available.
Using plain directories/files for cpu detection allows me to implement a fake directory option where I can also i.e. on aarch64 make MSR's appear, for QE scripts and verification.
github.com/performancecopilot/