summaryrefslogtreecommitdiff
path: root/kernel/gcov/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/gcov/Kconfig')
-rw-r--r--kernel/gcov/Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/gcov/Kconfig b/kernel/gcov/Kconfig
index 3110c77230c7..04f4ebdc3cf5 100644
--- a/kernel/gcov/Kconfig
+++ b/kernel/gcov/Kconfig
@@ -4,7 +4,8 @@ menu "GCOV-based kernel profiling"
config GCOV_KERNEL
bool "Enable gcov-based kernel profiling"
depends on DEBUG_FS
- select CONSTRUCTORS if !UML
+ depends on !ARCH_WANTS_NO_INSTR || CC_HAS_NO_PROFILE_FN_ATTR
+ select CONSTRUCTORS
default n
help
This option enables gcov-based code profiling (e.g. for code coverage