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
F163424839: D27969.id81880.diff
Thu, Jul 23, 2:34 AM
F163409250: D27969.id81665.diff
Wed, Jul 22, 11:18 PM
Unknown Object (File)
Tue, Jul 21, 10:38 PM
Unknown Object (File)
Mon, Jul 20, 12:58 PM
Unknown Object (File)
Tue, Jul 14, 10:43 AM
Unknown Object (File)
Sun, Jul 12, 8:09 PM
Unknown Object (File)
Sat, Jul 4, 12:56 PM
Unknown Object (File)
Jun 5 2026, 7:49 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

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.