Kconfig 992 B

12345678910111213141516171819202122232425262728293031323334
  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. select CONTEXT_SWITCH_TRACER
  15. help
  16. Enable the kernel to trace every kernel function. This is done
  17. by using a compiler feature to insert a small, 5-byte No-Operation
  18. instruction to the beginning of every kernel function, which NOP
  19. sequence is then dynamically patched into a tracer call when
  20. tracing is enabled by the administrator. If it's runtime disabled
  21. (the bootup default), then the overhead of the instructions is very
  22. small and not measurable even in micro-benchmarks.
  23. config CONTEXT_SWITCH_TRACER
  24. bool "Trace process context switches"
  25. depends on DEBUG_KERNEL
  26. select TRACING
  27. select MARKERS
  28. help
  29. This tracer gets called from the context switch and records
  30. all switching of tasks.