3 ms·
But doesn't the kernel module approach yield better performance and therefore more accurate data?
by jamesdwilson 4y ago
But doesn't the kernel module approach yield better performance and therefore more accurate data?
- amluto 4y agoMaybe, although you can use RDPMC to read quite a few performance counters from user mode after enabling them with perf_event_open. But using perf_event_open interoperates with the rest of the system, whereas a random kernel module is likely to interfere with other perf users.
- jamesdwilson 4y agoBut without the module, it wouldn't be able to get real-time statistics for individual cores or logical processors, specific data from the kernel's performance counters, or some system-level statistics