KCOV exposes kernel code coverage information in a form suitable for coverage-guided fuzzing. This debug feature can be enabled to add support for kernel fuzzing (with tools such as syzkaller).
Signed-off-by: Ovidiu Panait <ovidiu.pan...@windriver.com> --- cfg/debug/kcov/debug-kcov.cfg | 4 ++++ cfg/debug/kcov/debug-kcov.scc | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 cfg/debug/kcov/debug-kcov.cfg create mode 100644 cfg/debug/kcov/debug-kcov.scc diff --git a/cfg/debug/kcov/debug-kcov.cfg b/cfg/debug/kcov/debug-kcov.cfg new file mode 100644 index 00000000..9cdd37ce --- /dev/null +++ b/cfg/debug/kcov/debug-kcov.cfg @@ -0,0 +1,4 @@ +# SPDX-License-Identifier: MIT +CONFIG_KCOV=y +CONFIG_KCOV_ENABLE_COMPARISONS=y +CONFIG_KCOV_INSTRUMENT_ALL=y diff --git a/cfg/debug/kcov/debug-kcov.scc b/cfg/debug/kcov/debug-kcov.scc new file mode 100644 index 00000000..325c6f99 --- /dev/null +++ b/cfg/debug/kcov/debug-kcov.scc @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: MIT +define KFEATURE_DESCRIPTION "Enable kernel code coverage support" +define KFEATURE_COMPATIBILITY all + +kconf non-hardware debug-kcov.cfg -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#10731): https://lists.yoctoproject.org/g/linux-yocto/message/10731 Mute This Topic: https://lists.yoctoproject.org/mt/87609326/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-