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)
Mar 7 2024, 12:17 PM
Unknown Object (File)
Feb 12 2024, 7:24 PM
Unknown Object (File)
Feb 12 2024, 7:24 PM
Unknown Object (File)
Feb 12 2024, 7:24 PM
Unknown Object (File)
Feb 12 2024, 7:24 PM
Unknown Object (File)
Feb 12 2024, 1:51 PM
Unknown Object (File)
Jan 27 2024, 2:26 PM
Unknown Object (File)
Dec 23 2023, 4:36 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 35940
Build 32829: 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.