Kconfig 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. menu "GCOV-based kernel profiling"
  2. config GCOV_KERNEL
  3. bool "Enable gcov-based kernel profiling"
  4. depends on DEBUG_FS
  5. select CONSTRUCTORS if !UML
  6. default n
  7. ---help---
  8. This option enables gcov-based code profiling (e.g. for code coverage
  9. measurements).
  10. If unsure, say N.
  11. Additionally specify CONFIG_GCOV_PROFILE_ALL=y to get profiling data
  12. for the entire kernel. To enable profiling for specific files or
  13. directories, add a line similar to the following to the respective
  14. Makefile:
  15. For a single file (e.g. main.o):
  16. GCOV_PROFILE_main.o := y
  17. For all files in one directory:
  18. GCOV_PROFILE := y
  19. To exclude files from being profiled even when CONFIG_GCOV_PROFILE_ALL
  20. is specified, use:
  21. GCOV_PROFILE_main.o := n
  22. and:
  23. GCOV_PROFILE := n
  24. Note that the debugfs filesystem has to be mounted to access
  25. profiling data.
  26. config ARCH_HAS_GCOV_PROFILE_ALL
  27. def_bool n
  28. config GCOV_PROFILE_ALL
  29. bool "Profile entire Kernel"
  30. depends on !COMPILE_TEST
  31. depends on GCOV_KERNEL
  32. depends on ARCH_HAS_GCOV_PROFILE_ALL
  33. default n
  34. ---help---
  35. This options activates profiling for the entire kernel.
  36. If unsure, say N.
  37. Note that a kernel compiled with profiling flags will be significantly
  38. larger and run slower. Also be sure to exclude files from profiling
  39. which are not linked to the kernel image to prevent linker errors.
  40. choice
  41. prompt "Specify GCOV format"
  42. depends on GCOV_KERNEL
  43. default GCOV_FORMAT_CLANG
  44. ---help---
  45. The gcov format is usually determined by the GCC version, and the
  46. default is chosen according to your GCC version. However, there are
  47. exceptions where format changes are integrated in lower-version GCCs.
  48. In such a case, change this option to adjust the format used in the
  49. kernel accordingly.
  50. config GCOV_FORMAT_3_4
  51. bool "GCC 3.4 format"
  52. depends on GCC_VERSION < 40700
  53. ---help---
  54. Select this option to use the format defined by GCC 3.4.
  55. config GCOV_FORMAT_4_7
  56. bool "GCC 4.7 format"
  57. ---help---
  58. Select this option to use the format defined by GCC 4.7.
  59. config GCOV_FORMAT_CLANG
  60. bool "Clang format"
  61. ---help---
  62. Select this option to use the format defined by Clang.
  63. endchoice
  64. endmenu