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
F102426262: D40544.id123241.diff
Tue, Nov 12, 2:56 AM
Unknown Object (File)
Sun, Nov 10, 12:05 PM
Unknown Object (File)
Thu, Oct 31, 1:19 AM
Unknown Object (File)
Sep 27 2024, 1:42 AM
Unknown Object (File)
Sep 26 2024, 12:00 PM
Unknown Object (File)
Sep 23 2024, 9:02 PM
Unknown Object (File)
Sep 19 2024, 3:36 PM
Unknown Object (File)
Sep 19 2024, 3:12 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 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.