HomeFreeBSD

arm64: Fix finding the pmc event ID

Description

arm64: Fix finding the pmc event ID

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.

Reviewed by: gnn, ray
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D29600

(cherry picked from commit 24b2f4ea49229618c5608846acfc10be2eb0d567)

Details

Provenance
andrewAuthored on Apr 1 2021, 2:38 PM
mhorneCommitted on Jul 29 2021, 3:00 PM
Reviewer
gnn
Differential Revision
D29600: arm64: Fix finding the pmc event ID
Parents
rG90ffac35b778: eli: Zero pad bytes that arise when certain auth algorithms are used
Branches
Unknown
Tags
Unknown