Kconfig 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. menu "GCOV-based kernel profiling"
  2. config GCOV_KERNEL
  3. bool "Enable gcov-based kernel profiling"
  4. depends on DEBUG_FS && CONSTRUCTORS
  5. default n
  6. ---help---
  7. This option enables gcov-based code profiling (e.g. for code coverage
  8. measurements).
  9. If unsure, say N.
  10. Additionally specify CONFIG_GCOV_PROFILE_ALL=y to get profiling data
  11. for the entire kernel. To enable profiling for specific files or
  12. directories, add a line similar to the following to the respective
  13. Makefile:
  14. For a single file (e.g. main.o):
  15. GCOV_PROFILE_main.o := y
  16. For all files in one directory:
  17. GCOV_PROFILE := y
  18. To exclude files from being profiled even when CONFIG_GCOV_PROFILE_ALL
  19. is specified, use:
  20. GCOV_PROFILE_main.o := n
  21. and:
  22. GCOV_PROFILE := n
  23. Note that the debugfs filesystem has to be mounted to access
  24. profiling data.
  25. config GCOV_PROFILE_ALL
  26. bool "Profile entire Kernel"
  27. depends on GCOV_KERNEL
  28. depends on S390 || X86 || (PPC && EXPERIMENTAL)
  29. default n
  30. ---help---
  31. This options activates profiling for the entire kernel.
  32. If unsure, say N.
  33. Note that a kernel compiled with profiling flags will be significantly
  34. larger and run slower. Also be sure to exclude files from profiling
  35. which are not linked to the kernel image to prevent linker errors.
  36. endmenu