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 can be found in DSP architecture documentation.
NOTE: aDSP and cDSP DCVS relies on a set of PMU events to monitor DSP statistics and make necessary decisions. Using these HAP APIs to register PMU events results in DCVS no longer being able to track these events. This might lead DCVS to making incorrect decisions.
The HAP PMU APIs are not accessible from unsigned PD.
SM8250 and beyond
Header file: HAP_user_pmu.h