The DSP subsystem has the PMU (Performance Monitoring Unit) with counters to track hardware events (called PMU events). The HAP PMU framework exposes a set of APIs to read these PMU counters configured with specified PMU events. PMU events are Hexagon DSP architecture specific and the most common PMU events are briefly described in the Hexagon DSP architecture documentation. The itrace library's header file itrace_dsp_events_pmu.h
provides a complete list of all available public PMU events alongside their descriptions.
NOTE:
The HAP PMU APIs are not accessible from unsigned PD.
SM8250 and beyond
Header file: HAP_user_pmu.h