Measuring What Matters: Introducing Hardware Performance Counters...
summary
Zephyr gains a portable pmu.h API and a working ARMv8-A PMUv3 backend that probes counters at runtime, self-calibrates CPU frequency by cross-checking timers, and keeps per-CPU state with IRQ-locked sequences for SMP safety. Real hardware benchmarks and two example apps report context-switch cost, IRQ latency, cache hits/misses, branch prediction stats, and memory bandwidth with near-zero overhead. A PR adds PC sampling and a perf stat style command (under discussion) to bridge Zephyr and Linux perf workflows.
AI-written summary · about
chapters (10)
- 0:00Introduction and speaker background
- 1:43Problem and PMU overview
- 4:33Limitations of traditional checkpoints
- 6:17What is PMU and its benefits
- 8:21PMU challenges and pmu.h API
- 9:50PMU driver implementation details
- 11:13Use cases for PMUs
- 13:18Bridging Linux perf to Zephyr
- 17:11Takeaways and next steps
- 18:16Q&A session
