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
F114218222: D10910.id29563.diff
Wed, Apr 9, 8:23 AM
Unknown Object (File)
Sun, Apr 6, 5:47 AM
Unknown Object (File)
Mon, Mar 31, 8:17 AM
Unknown Object (File)
Tue, Mar 11, 3:17 AM
Unknown Object (File)
Mar 8 2025, 5:34 PM
Unknown Object (File)
Feb 21 2025, 10:28 PM
Unknown Object (File)
Feb 17 2025, 5:35 PM
Unknown Object (File)
Feb 3 2025, 7:38 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 Skipped
Unit
Tests Skipped

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.