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
F164479876: D40544.diff
Sat, Aug 1, 7:33 AM
Unknown Object (File)
Thu, Jul 30, 12:46 PM
Unknown Object (File)
Tue, Jul 28, 1:34 PM
Unknown Object (File)
Sun, Jul 26, 11:51 PM
Unknown Object (File)
Sat, Jul 18, 8:13 AM
Unknown Object (File)
Fri, Jul 17, 9:25 AM
Unknown Object (File)
Thu, Jul 16, 7:29 PM
Unknown Object (File)
Tue, Jul 7, 4:15 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.