Kconfig 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #
  2. # Architectures that offer an FTRACE implementation should select HAVE_FTRACE:
  3. #
  4. config HAVE_FTRACE
  5. bool
  6. config TRACER_MAX_TRACE
  7. bool
  8. config TRACING
  9. bool
  10. select DEBUG_FS
  11. config FTRACE
  12. bool "Kernel Function Tracer"
  13. depends on DEBUG_KERNEL && HAVE_FTRACE
  14. select FRAME_POINTER
  15. select TRACING
  16. select CONTEXT_SWITCH_TRACER
  17. help
  18. Enable the kernel to trace every kernel function. This is done
  19. by using a compiler feature to insert a small, 5-byte No-Operation
  20. instruction to the beginning of every kernel function, which NOP
  21. sequence is then dynamically patched into a tracer call when
  22. tracing is enabled by the administrator. If it's runtime disabled
  23. (the bootup default), then the overhead of the instructions is very
  24. small and not measurable even in micro-benchmarks.
  25. config IRQSOFF_TRACER
  26. bool "Interrupts-off Latency Tracer"
  27. default n
  28. depends on TRACE_IRQFLAGS_SUPPORT
  29. depends on GENERIC_TIME
  30. select TRACE_IRQFLAGS
  31. select TRACING
  32. select TRACER_MAX_TRACE
  33. help
  34. This option measures the time spent in irqs-off critical
  35. sections, with microsecond accuracy.
  36. The default measurement method is a maximum search, which is
  37. disabled by default and can be runtime (re-)started
  38. via:
  39. echo 0 > /debugfs/tracing/tracing_max_latency
  40. config SCHED_TRACER
  41. bool "Scheduling Latency Tracer"
  42. depends on DEBUG_KERNEL
  43. select TRACING
  44. select CONTEXT_SWITCH_TRACER
  45. select TRACER_MAX_TRACE
  46. help
  47. This tracer tracks the latency of the highest priority task
  48. to be scheduled in, starting from the point it has woken up.
  49. config CONTEXT_SWITCH_TRACER
  50. bool "Trace process context switches"
  51. depends on DEBUG_KERNEL
  52. select TRACING
  53. select MARKERS
  54. help
  55. This tracer gets called from the context switch and records
  56. all switching of tasks.