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
F156952313: D10910.id28800.diff
Sun, May 17, 2:50 PM
F156947303: D10910.id29563.diff
Sun, May 17, 1:53 PM
Unknown Object (File)
Sat, May 16, 10:41 PM
Unknown Object (File)
Sat, May 16, 9:41 PM
Unknown Object (File)
Thu, May 14, 3:51 AM
Unknown Object (File)
Wed, May 13, 8:43 PM
Unknown Object (File)
Wed, May 6, 11:21 PM
Unknown Object (File)
Wed, May 6, 11:11 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.