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
Unknown Object (File)
Tue, Aug 11, 9:22 PM
Unknown Object (File)
Tue, Aug 11, 11:59 AM
Unknown Object (File)
Sat, Aug 8, 10:13 PM
Unknown Object (File)
Sat, Aug 8, 7:38 PM
Unknown Object (File)
Sat, Aug 8, 3:45 PM
Unknown Object (File)
Fri, Aug 7, 4:56 AM
Unknown Object (File)
Wed, Aug 5, 4:54 PM
Unknown Object (File)
Mon, Aug 3, 8:18 AM

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.