Kconfig 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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
  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 && EXPERIMENTAL) || 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. endmenu