linux/tools/testing/kunit/configs/coverage_uml.config

# This config fragment enables coverage on UML, which is different from the
# normal gcov used in other arches (no debugfs).
# Example usage:
# ./tools/testing/kunit/kunit.py run \
#   --kunitconfig=tools/testing/kunit/configs/all_tests_uml.config \
#   --kunitconfig=tools/testing/kunit/configs/coverage_uml.config

CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
CONFIG_GCOV=y