mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-30 05:58:22 +00:00
kcov: initial implementation
Implement a device (/dev/kcov) that exposes coverage info for the kernel. This will be especially useful for coverage-based fuzzing (e.g. syzkaller). Exclude a lot of functions which would crash/otherwise interfere in the coverage, including only processing coverage callbacks when not handling an irq.
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ DEFINE_KERNEL_ARGUMENT(rootfs, char *);
|
||||
DEFINE_KERNEL_ARGUMENT(initrd, bool);
|
||||
DEFINE_KERNEL_ARGUMENT(root_wait, bool);
|
||||
|
||||
void kernel_entry() {
|
||||
KCOV_DISABLED void kernel_entry() {
|
||||
cpu_set(&bsp_cpu);
|
||||
|
||||
#ifdef TERM_EARLY_INIT
|
||||
|
||||
Reference in New Issue
Block a user