Page MenuHomeFreeBSD

arm64: Fix finding the pmc event ID
ClosedPublic

Authored by andrew on Apr 6 2021, 8:44 AM.

Details

Summary

The lower pmc event bits were masked off to find the PMC event ID.
The doesn't work when there are more events. Switch it to use the
offser relative to the first event while also checking the ID is
in the expected range.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.