Page MenuHomeFreeBSD

arm64: Fix finding the pmc event ID
ClosedPublic

Authored by andrew on Apr 6 2021, 8:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 3, 9:38 PM
Unknown Object (File)
Fri, Oct 31, 1:23 AM
Unknown Object (File)
Thu, Oct 30, 12:36 PM
Unknown Object (File)
Wed, Oct 29, 8:24 AM
Unknown Object (File)
Wed, Oct 29, 8:07 AM
Unknown Object (File)
Fri, Oct 17, 7:42 AM
Unknown Object (File)
Mon, Oct 13, 5:10 PM
Unknown Object (File)
Mon, Oct 13, 5:10 PM
Subscribers

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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable