NetBSD/share/mk
kamil 0fe7e51662 Add KCOV - kernel code coverage tracing device
The KCOV driver implements collection of code coverage inside the kernel.
It can be enabled on a per process basis from userland, allowing the kernel
program counter to be collected during syscalls triggered by the same
process.

The device is oriented towards kernel fuzzers, in particular syzkaller.

Currently the only supported coverage type is -fsanitize-coverage=trace-pc.

The KCOV driver was initially developed in Linux. A driver based on the
same concept was then implemented in FreeBSD and OpenBSD.

Documentation is borrowed from OpenBSD and ATF tests from FreeBSD.

This patch has been prepared by Siddharth Muralee, improved by <maxv>
and polished by myself before importing into the mainline tree.

All ATF tests pass.
2019-02-23 03:10:05 +00:00
..
bsd.buildinstall.mk Move the build_install logic from lib/Makefile into share/mk and re-use 2012-11-15 23:51:53 +00:00
bsd.clang-analyze.mk Make it easier to specify the list of checkers to enable for the static 2012-04-04 10:37:18 +00:00
bsd.clean.mk On second thoughts, don't run "rm -rf" in bsd.clean.mk. Instead, 2012-11-19 16:04:54 +00:00
bsd.dep.mk Most of the mv operations are to move temporary files to their final place. 2019-01-21 21:11:54 +00:00
bsd.doc.mk Remove CreationDate from the header of output postscript. Also, feed -n 2015-08-04 08:36:14 +00:00
bsd.endian.mk Add RISCV-V support. 2014-09-19 17:45:42 +00:00
bsd.files.mk Fix dependency handling of UUDECODE_FILES (e.g. libexec/ld.aout_so on i386). 2013-04-06 15:39:19 +00:00
bsd.gcc.mk Drop checks for EXTERNAL_TOOLCHAIN for crt*.o. We've been using our own 2018-05-09 13:18:53 +00:00
bsd.host.mk add DTRACE_OPTS and HOST_DTRACE_OPTS to allow disabling various optimizations 2018-02-25 18:53:23 +00:00
bsd.hostinit.mk Create a new bsd.hostinit.mk file and put the build definitions for all host 2018-05-01 19:59:42 +00:00
bsd.hostlib.mk include bsd.hostinit.mk instead of bsd.init.mk 2018-05-04 14:50:40 +00:00
bsd.hostprog.mk Most of the mv operations are to move temporary files to their final place. 2019-01-21 21:11:54 +00:00
bsd.inc.mk Remove extra -c. -c has been the default behavior since 2003, and 2018-12-26 22:57:22 +00:00
bsd.info.mk Most of the mv operations are to move temporary files to their final place. 2019-01-21 21:11:54 +00:00
bsd.init.mk
bsd.ioconf.mk Add a new build make variable, CONFIGOPTS, which is passed to config(1) 2014-11-30 15:53:29 +00:00
bsd.kernobj.mk update to xorg-server 1.10.6. 2013-06-03 07:39:07 +00:00
bsd.kinc.mk Remove extra -c. -c has been the default behavior since 2003, and 2018-12-26 22:57:22 +00:00
bsd.klinks.mk remove multiple copies of the same logic. 2017-12-06 02:06:45 +00:00
bsd.kmodule.mk Most of the mv operations are to move temporary files to their final place. 2019-01-21 21:11:54 +00:00
bsd.lib.mk Most of the mv operations are to move temporary files to their final place. 2019-01-21 21:11:54 +00:00
bsd.links.mk
bsd.lua.mk Introduce MKSTRIPSYM build option 2017-04-20 09:29:10 +00:00
bsd.man.mk Most of the mv operations are to move temporary files to their final place. 2019-01-21 21:11:54 +00:00
bsd.nls.mk Move all "clean" and "cleandir" processing to a new bsd.clean.mk 2011-09-10 16:57:35 +00:00
bsd.obj.mk Prevent 'make obj' creating an objdir inside an objdir. This happens the 2018-05-19 14:11:30 +00:00
bsd.own.mk Use GCC 7 on riscv, it is not supported on 6. 2019-02-09 21:05:48 +00:00
bsd.prog.mk Most of the mv operations are to move temporary files to their final place. 2019-01-21 21:11:54 +00:00
bsd.README document the elf2foo tools. 2019-01-01 19:06:38 +00:00
bsd.rpc.mk centralize the rpcgen flags and set for BSD output 2013-12-15 00:28:45 +00:00
bsd.shlib.mk Revert last, it breaks the tricks xsrc uses. 2012-08-23 21:21:14 +00:00
bsd.subdir.mk use SUBDIR.roff suggested by uwe@ 2018-06-10 17:55:11 +00:00
bsd.sys.mk Add KCOV - kernel code coverage tracing device 2019-02-23 03:10:05 +00:00
bsd.syscall.mk - Add a new bsd.host.mk that contains all the HOST_ variables extracted from 2014-01-16 01:19:46 +00:00
bsd.test.mk Most of the mv operations are to move temporary files to their final place. 2019-01-21 21:11:54 +00:00
bsd.x11.mk Most of the mv operations are to move temporary files to their final place. 2019-01-21 21:11:54 +00:00
Makefile install bsd.hostinit.mk 2018-05-28 13:21:50 +00:00
sys.mk Most of the mv operations are to move temporary files to their final place. 2019-01-21 21:11:54 +00:00