]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add `kern.features.witness`
authorEnji Cooper <ngie@FreeBSD.org>
Wed, 24 Jun 2020 18:51:01 +0000 (18:51 +0000)
committerEnji Cooper <ngie@FreeBSD.org>
Wed, 24 Jun 2020 18:51:01 +0000 (18:51 +0000)
commitd6701b6c8ccf35c66d357fe02494d0f60ee62f4e
tree01baa4f533a775814ba340582ace15c70b6d9d6b
parente59d5d14d7e3554b45432c29a8f73df447997770
Add `kern.features.witness`

Adding `kern.features.witness` helps expose whether or not the kernel has
`options WITNESS` enabled, so the `feature_present(3)` API can be used
to query whether or not witness(9) is built into the kernel.

This support is helpful with userspace applications (generally speaking,
tests), as it can be queried to determine whether or not tests related
to WITNESS should be run.

MFC after: 1 week
Reviewed by: cem, darrick.freebsd_gmail.com
Differential Revision: https://reviews.freebsd.org/D25302
Sponsored by: DellEMC Isilon
sys/kern/subr_witness.c