HomeFreeBSD

hwpmc: add error for HWPMC_DEBUG without KTR

Description

hwpmc: add error for HWPMC_DEBUG without KTR

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

Reviewed by: jkoshy, emaste
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D40544

Details

Provenance
mhorneAuthored on Jun 16 2023, 4:38 PM
Reviewer
jkoshy
Differential Revision
D40544: hwpmc: add error for HWPMC_DEBUG without KTR
Parents
rG3977781b987e: pmc: clarify and strengthen statements about API/ABI
Branches
Unknown
Tags
Unknown