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
F148897941: D40544.diff
Fri, Mar 20, 8:54 PM
Unknown Object (File)
Thu, Mar 19, 6:05 PM
Unknown Object (File)
Sun, Mar 15, 2:49 AM
Unknown Object (File)
Sat, Mar 14, 7:16 AM
Unknown Object (File)
Fri, Mar 13, 5:15 PM
Unknown Object (File)
Tue, Mar 10, 10:05 AM
Unknown Object (File)
Mon, Mar 9, 10:26 AM
Unknown Object (File)
Sun, Mar 8, 2:44 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 Passed
Unit
No Test Coverage
Build Status
Buildable 52057
Build 48948: arc lint + arc unit

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.