HomeFreeBSD

Update hwpmc on armv7 to handle overflow better

Description

Update hwpmc on armv7 to handle overflow better

When testing hwpmc on arm64 we found the counter could overflow while
reading the event count. Handle this case in the armv7 code by also
checking if the overflow bit is set and incrementing the overflow
cound as needed.

Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D27969

Details

Provenance
andrewAuthored on Jan 4 2021, 1:50 PM
Differential Revision
D27969: Update hwpmc on armv7 to handle overflow better
Parents
rG8ddea0b12720: cache: just assign ni_resflags = NIRES_ABS
Branches
Unknown
Tags
Unknown