1 menu "GCOV-based kernel profiling"
4 bool "Enable gcov-based kernel profiling"
5 depends on DEBUG_FS && CONSTRUCTORS
8 This option enables gcov-based code profiling (e.g. for code coverage
13 Additionally specify CONFIG_GCOV_PROFILE_ALL=y to get profiling data
14 for the entire kernel. To enable profiling for specific files or
15 directories, add a line similar to the following to the respective
18 For a single file (e.g. main.o):
19 GCOV_PROFILE_main.o := y
21 For all files in one directory:
24 To exclude files from being profiled even when CONFIG_GCOV_PROFILE_ALL
27 GCOV_PROFILE_main.o := n
31 Note that the debugfs filesystem has to be mounted to access
34 config GCOV_PROFILE_ALL
35 bool "Profile entire Kernel"
36 depends on GCOV_KERNEL
37 depends on S390 || X86
40 This options activates profiling for the entire kernel.
44 Note that a kernel compiled with profiling flags will be significantly
45 larger and run slower. Also be sure to exclude files from profiling
46 which are not linked to the kernel image to prevent linker errors.