| menu "GCOV-based kernel profiling" |
| bool "Enable gcov-based kernel profiling" |
| depends on DEBUG_FS && CONSTRUCTORS |
| This option enables gcov-based code profiling (e.g. for code coverage |
| Additionally specify CONFIG_GCOV_PROFILE_ALL=y to get profiling data |
| for the entire kernel. To enable profiling for specific files or |
| directories, add a line similar to the following to the respective |
| For a single file (e.g. main.o): |
| For all files in one directory: |
| To exclude files from being profiled even when CONFIG_GCOV_PROFILE_ALL |
| Note that the debugfs filesystem has to be mounted to access |
| bool "Profile entire Kernel" |
| depends on S390 || X86 || (PPC && EXPERIMENTAL) || MICROBLAZE |
| This options activates profiling for the entire kernel. |
| Note that a kernel compiled with profiling flags will be significantly |
| larger and run slower. Also be sure to exclude files from profiling |
| which are not linked to the kernel image to prevent linker errors. |