Kconfig 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 GCOV_PROFILE_ALL
  27. bool "Profile entire Kernel"
  28. depends on GCOV_KERNEL
  29. depends on SUPERH || S390 || X86 || PPC || MICROBLAZE
  30. default n
  31. ---help---
  32. This options activates profiling for the entire kernel.
  33. If unsure, say N.
  34. Note that a kernel compiled with profiling flags will be significantly
  35. larger and run slower. Also be sure to exclude files from profiling
  36. which are not linked to the kernel image to prevent linker errors.
  37. choice
  38. prompt "Specify GCOV format"
  39. depends on GCOV_KERNEL
  40. default GCOV_FORMAT_AUTODETECT
  41. ---help---
  42. The gcov format is usually determined by the GCC version, but there are
  43. exceptions where format changes are integrated in lower-version GCCs.
  44. In such a case use this option to adjust the format used in the kernel
  45. accordingly.
  46. If unsure, choose "Autodetect".
  47. config GCOV_FORMAT_AUTODETECT
  48. bool "Autodetect"
  49. ---help---
  50. Select this option to use the format that corresponds to your GCC
  51. version.
  52. config GCOV_FORMAT_3_4
  53. bool "GCC 3.4 format"
  54. ---help---
  55. Select this option to use the format defined by GCC 3.4.
  56. config GCOV_FORMAT_4_7
  57. bool "GCC 4.7 format"
  58. ---help---
  59. Select this option to use the format defined by GCC 4.7.
  60. endchoice
  61. endmenu