Page MenuHomeFreeBSD

Fix HWPMC interrupt handling in Counting Mode
ClosedPublic

Authored by mw_semihalf.com on May 25 2017, 3:31 PM.
Tags
Referenced Files
F147453008: D10910.id29321.diff
Wed, Mar 11, 3:43 AM
F147444926: D10910.diff
Wed, Mar 11, 2:01 AM
F147417755: D10910.id28800.diff
Tue, Mar 10, 7:55 PM
F147397832: D10910.id29563.diff
Tue, Mar 10, 3:52 PM
Unknown Object (File)
Sun, Mar 8, 2:31 AM
Unknown Object (File)
Mon, Feb 9, 4:02 PM
Unknown Object (File)
Mon, Feb 9, 3:46 PM
Unknown Object (File)
Feb 8 2026, 11:49 PM

Details

Summary
  • Fix support for Cycle Counter (evsel == 0xFF)
  • Stop and mask interrupts from all counters on init and finish

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

The 0xff should probably a #define somewhere but that's unrelated. I think we've done something similar for the timer code in the past; not sure in which review or tree that ended up.

Replace magic number with macro, as pointed by @bz

This revision was automatically updated to reflect the committed changes.