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, Nov 27, 10:06 AM
Unknown Object (File)
Nov 11 2025, 1:29 PM
Unknown Object (File)
Nov 4 2025, 4:28 PM
Unknown Object (File)
Nov 3 2025, 8:46 AM
Unknown Object (File)
Oct 29 2025, 10:36 AM
Unknown Object (File)
Oct 29 2025, 10:23 AM
Unknown Object (File)
Oct 29 2025, 10:22 AM
Unknown Object (File)
Oct 29 2025, 10:21 AM
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.