Kconfig 739 B

1234567891011121314151617181920212223
  1. #
  2. # Architectures that offer an FTRACE implementation should select HAVE_FTRACE:
  3. #
  4. config HAVE_FTRACE
  5. bool
  6. config TRACING
  7. bool
  8. select DEBUG_FS
  9. config FTRACE
  10. bool "Kernel Function Tracer"
  11. depends on DEBUG_KERNEL && HAVE_FTRACE
  12. select FRAME_POINTER
  13. select TRACING
  14. help
  15. Enable the kernel to trace every kernel function. This is done
  16. by using a compiler feature to insert a small, 5-byte No-Operation
  17. instruction to the beginning of every kernel function, which NOP
  18. sequence is then dynamically patched into a tracer call when
  19. tracing is enabled by the administrator. If it's runtime disabled
  20. (the bootup default), then the overhead of the instructions is very
  21. small and not measurable even in micro-benchmarks.