Performance is key in any compute environment, and few utilities have as rich of a history in measuring performance as the perf tool in Linux. Here at Ampere, as we measure, predict, and model performance we often rely on tools such as perf to expose many aspects of system performance through perf events. Some of these events are vendor specific to the Ampere eMAG platform.
To enable developers to leverage these perf events on an eMAG system, Ampere has submitted patches to expose them in the upstream Kernel (tools/perf); these updates are expected to be available in the 4.19 release. On top of exposing functionality, these patches cover documentation of events both within the perf tool itself as well as through Ampere’s own developer site.
These contributions to the kernel (tools/perf) can be seen in these patches:
- perf vendor events arm64: Enable JSON events for eMAG
- perf vendor events arm64: Revise core JSON events for eMAG
Expanded descriptions to these events can be found in our eMAG Perf Event Guide located on our developer portal.
The 4.19 kernel release is expected to contain these patches.
Patching Tools/Perf to Support eMAG Perf Event Counters
We’ve hosted a quick how-to guide on patching the perf tool from the 4.18.y kernel with these changes. See the How To: Patch Tools/Perf to Enable Ampere Vendor Counters document for more details.
Written by: Travis Lazar
Get in contact with us:
On the forums: https://developer.amperecomputing.com/community/