Page MenuHomeFreeBSD

Update hwpmc on armv7 to handle overflow better
ClosedPublic

Authored by andrew on Jan 5 2021, 10:58 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 13, 9:00 PM
Unknown Object (File)
Fri, May 10, 2:13 PM
Unknown Object (File)
Thu, May 9, 8:59 AM
Unknown Object (File)
Thu, May 9, 8:59 AM
Unknown Object (File)
Thu, May 9, 8:59 AM
Unknown Object (File)
Thu, May 9, 8:59 AM
Unknown Object (File)
Sat, May 4, 5:20 PM
Unknown Object (File)
Sat, May 4, 9:56 AM
Subscribers
None

Details

Summary

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

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 35941
Build 32830: arc lint + arc unit

Event Timeline

andrew created this revision.

Set the overflow when restoring register values. Start is just to start the counters counting.

This revision was not accepted when it landed; it landed in state Needs Review.Jan 8 2021, 2:30 PM
This revision was automatically updated to reflect the committed changes.