3 ms·
You already know this, but for completeness you can't RDMSR from userspace, so to read MSRs you can use the msr kernel module which requires 2 system calls per
by wmf 10y ago
You already know this, but for completeness you can't RDMSR from userspace, so to read MSRs you can use the msr kernel module which requires 2 system calls per MSR (which is what i7z does) or you can write your own kernel module which requires fewer system calls. Clearly a lot of people in this thread disagree with the author's decision.
Can eBPF read non-PMC registers like IA32_PERF_STATUS? I'm not getting much by googling.
Thanks for all your work on this topic; it's really educational.