]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Extract the coverage sanitizer KPI to a new file.
authorAndrew Turner <andrew@FreeBSD.org>
Tue, 29 Jan 2019 11:04:17 +0000 (11:04 +0000)
committerAndrew Turner <andrew@FreeBSD.org>
Tue, 29 Jan 2019 11:04:17 +0000 (11:04 +0000)
commit524553f56d0b89c689754f1e0a51205bbbcf5071
tree7f2972c2c06429d2b143041372219e244fbb9ecd
parenta56136a1ba97e9b7cbe914f5d9549c852620640e
Extract the coverage sanitizer KPI to a new file.

This will allow multiple consumers of the coverage data to be compiled
into the kernel together. The only requirement is only one can be
registered at a given point in time, however it is expected they will
only register when the coverage data is needed.

A new kernel conflig option COVERAGE is added. This will allow kcov to
become a module that can be loaded as needed, or compiled into the
kernel.

While here clean up the #include style a little.

Reviewed by: kib
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D18955
sys/amd64/conf/GENERIC
sys/amd64/conf/GENERIC-NODEBUG
sys/arm64/conf/GENERIC
sys/arm64/conf/GENERIC-NODEBUG
sys/conf/files
sys/conf/kern.pre.mk
sys/conf/options
sys/kern/kern_kcov.c
sys/kern/subr_coverage.c [new file with mode: 0644]
sys/sys/coverage.h [new file with mode: 0644]
sys/sys/kcov.h