Home
last modified time | relevance | path

Searched refs:kcov (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.4/kernel/
Dkcov.c42 struct kcov { struct
230 static void kcov_get(struct kcov *kcov) in kcov_get() argument
232 refcount_inc(&kcov->refcount); in kcov_get()
235 static void kcov_put(struct kcov *kcov) in kcov_put() argument
237 if (refcount_dec_and_test(&kcov->refcount)) { in kcov_put()
238 vfree(kcov->area); in kcov_put()
239 kfree(kcov); in kcov_put()
249 t->kcov = NULL; in kcov_task_init()
254 struct kcov *kcov; in kcov_task_exit() local
256 kcov = t->kcov; in kcov_task_exit()
[all …]
DMakefile82 obj-$(CONFIG_KCOV) += kcov.o
/Linux-v5.4/scripts/
DMakefile.kcov4 kcov-flags-$(CONFIG_CC_HAS_SANCOV_TRACE_PC) += -fsanitize-coverage=trace-pc
5 kcov-flags-$(CONFIG_KCOV_ENABLE_COMPARISONS) += -fsanitize-coverage=trace-cmp
6 kcov-flags-$(CONFIG_GCC_PLUGIN_SANCOV) += -fplugin=$(objtree)/scripts/gcc-plugins/sancov_plugin.so
8 export CFLAGS_KCOV := $(kcov-flags-y)
/Linux-v5.4/Documentation/dev-tools/
Dkcov.rst1 kcov: code coverage for fuzzing
4 kcov exposes kernel code coverage information in a form suitable for coverage-
6 exported via the "kcov" debugfs file. Coverage collection is enabled on a task
9 Note that kcov does not aim to collect as much coverage as possible. It aims
15 kcov is also able to collect comparison operands from the instrumented code
38 program using kcov:
69 fd = open("/sys/kernel/debug/kcov", O_RDWR);
122 it needs to open /sys/kernel/debug/kcov in each thread separately.
125 That is, a parent process opens /sys/kernel/debug/kcov, enables trace mode,
157 fd = open("/sys/kernel/debug/kcov", O_RDWR);
[all …]
Dindex.rst19 kcov
/Linux-v5.4/include/linux/
Dsched.h1216 struct kcov *kcov; member
/Linux-v5.4/
DMakefile718 include scripts/Makefile.kcov
/Linux-v5.4/lib/
DKconfig.debug785 For more details, see Documentation/dev-tools/kcov.rst.