Add kcov(4), a kernel code coverage tracing driver. It's used in conjunction
authoranton <anton@openbsd.org>
Sun, 19 Aug 2018 11:42:33 +0000 (11:42 +0000)
committeranton <anton@openbsd.org>
Sun, 19 Aug 2018 11:42:33 +0000 (11:42 +0000)
commitaf589a788f87bb883e79b26b36531d73da1037ef
tree449e32d37728e170a11a01ddbaa9c5b102744aac
parentd6a1c66e27e7ccd631cdb36db2e302d903493508
Add kcov(4), a kernel code coverage tracing driver. It's used in conjunction
with the syzkaller kernel fuzzer. So far, 8 distinct panics have been found and
fixed. This effort will continue.

kcov is limited to architectures using Clang as their default compiler and is
not enabled by default.

With help from mpi@, thanks!

ok kettenis@ mpi@ visa@
16 files changed:
etc/MAKEDEV.common
etc/etc.amd64/MAKEDEV.md
etc/etc.i386/MAKEDEV.md
share/man/man4/Makefile
share/man/man4/kcov.4 [new file with mode: 0644]
sys/arch/amd64/amd64/conf.c
sys/arch/amd64/conf/GENERIC
sys/arch/amd64/conf/Makefile.amd64
sys/arch/amd64/conf/files.amd64
sys/arch/i386/conf/GENERIC
sys/arch/i386/conf/Makefile.i386
sys/arch/i386/conf/files.i386
sys/arch/i386/i386/conf.c
sys/dev/kcov.c [new file with mode: 0644]
sys/kern/kern_exit.c
sys/sys/kcov.h [new file with mode: 0644]