Lightweight Instrumentation for Accurate Performance Monitoring in RTOSes

Discussions about the accuracy of Performance Monitoring Counters (PMCs) are common in forums. These hardware-implemented registers track specific events within a processor’s microarchitecture, providing metrics for performance tuning or monitoring unusual activity. However, the accuracy of these counters can be compromised by system noise, other applications, the operating system, and asynchronous hardware events, especially in complex benchmarks on Intel and…