Implement code-level performance analysis using the PMUv3 plugin
Introduction
PMUv3 plugin features
Download and build the PMUv3 plugin
Instrument one section of code
Plot, visualize, and analyze the results
Instrument multiple sections of code
Next Steps
Implement code-level performance analysis using the PMUv3 plugin
Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
Run
cat /proc/sys/kernel/perf_user_access and check that it prints 1. If needed, run sudo sysctl kernel/perf_user_access=1 to enable user-space access.Run
sudo sysctl kernel/perf_user_access=1 again after a reboot. The setting doesn’t persist across restarts.Keep three parallel directories: the Linux kernel source tree, the PMUv3 plugin source, and a test application directory. If your layout differs, adjust your build to locate the plugin headers and libraries.
Initialize the bundle once, then give each section its own marker and index in the start and stop calls. The output labels the measurements by section.
Use the Python plotting program to inspect raw PMU events and metrics such as MPKI, stalls, and IPC. Check that your plots contain data for the instrumented regions.