Page MenuHomeFreeBSD

hwpmc: add error for HWPMC_DEBUG without KTR
ClosedPublic

Authored by mhorne on Jun 14 2023, 5:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 21, 9:40 AM
Unknown Object (File)
Sun, May 17, 10:56 PM
Unknown Object (File)
Wed, May 13, 9:41 PM
Unknown Object (File)
Wed, May 13, 9:41 PM
Unknown Object (File)
Wed, May 13, 9:32 PM
Unknown Object (File)
Tue, Apr 28, 8:12 PM
Unknown Object (File)
Tue, Apr 28, 8:07 PM
Unknown Object (File)
Mon, Apr 27, 6:57 PM
Subscribers

Details

Summary

The option is a no-op otherwise, but this is not necessarily obvious.
Failing the compile gives the user a hint.

Diff Detail

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

Event Timeline

It might be worth putting a comment in the src as well mentioning that HWPMC_DEBUG alone will compile but have no effect.

This revision is now accepted and ready to land.Jun 14 2023, 8:14 PM
This revision was automatically updated to reflect the committed changes.