The author is probably concerned about the overhead of using N system calls to read N MSRs.
It would be cool if eBPF could read MSRs; then this kind of monitoring could be done though perf tracing.
It would be cool if eBPF could read MSRs; then this kind of monitoring could be done though perf tracing.
eBPF can read the relevant PMCs as of Linux 4.9. eg, the llcstat tool in bcc does this. (It was something I pushed for, and Alexei delivered)
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.
So talking about what 4.9 kernel can bring is interesting, but not everybody runs this version of kernel.