Kconfig 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. #
  2. # Architectures that offer an FTRACE implementation should select HAVE_FTRACE:
  3. #
  4. config HAVE_FTRACE
  5. bool
  6. config HAVE_DYNAMIC_FTRACE
  7. bool
  8. config TRACER_MAX_TRACE
  9. bool
  10. config TRACING
  11. bool
  12. select DEBUG_FS
  13. select STACKTRACE
  14. select TRACEPOINTS
  15. config FTRACE
  16. bool "Kernel Function Tracer"
  17. depends on HAVE_FTRACE
  18. select FRAME_POINTER
  19. select TRACING
  20. select CONTEXT_SWITCH_TRACER
  21. help
  22. Enable the kernel to trace every kernel function. This is done
  23. by using a compiler feature to insert a small, 5-byte No-Operation
  24. instruction to the beginning of every kernel function, which NOP
  25. sequence is then dynamically patched into a tracer call when
  26. tracing is enabled by the administrator. If it's runtime disabled
  27. (the bootup default), then the overhead of the instructions is very
  28. small and not measurable even in micro-benchmarks.
  29. config IRQSOFF_TRACER
  30. bool "Interrupts-off Latency Tracer"
  31. default n
  32. depends on TRACE_IRQFLAGS_SUPPORT
  33. depends on GENERIC_TIME
  34. depends on HAVE_FTRACE
  35. select TRACE_IRQFLAGS
  36. select TRACING
  37. select TRACER_MAX_TRACE
  38. help
  39. This option measures the time spent in irqs-off critical
  40. sections, with microsecond accuracy.
  41. The default measurement method is a maximum search, which is
  42. disabled by default and can be runtime (re-)started
  43. via:
  44. echo 0 > /debugfs/tracing/tracing_max_latency
  45. (Note that kernel size and overhead increases with this option
  46. enabled. This option and the preempt-off timing option can be
  47. used together or separately.)
  48. config PREEMPT_TRACER
  49. bool "Preemption-off Latency Tracer"
  50. default n
  51. depends on GENERIC_TIME
  52. depends on PREEMPT
  53. depends on HAVE_FTRACE
  54. select TRACING
  55. select TRACER_MAX_TRACE
  56. help
  57. This option measures the time spent in preemption off critical
  58. sections, with microsecond accuracy.
  59. The default measurement method is a maximum search, which is
  60. disabled by default and can be runtime (re-)started
  61. via:
  62. echo 0 > /debugfs/tracing/tracing_max_latency
  63. (Note that kernel size and overhead increases with this option
  64. enabled. This option and the irqs-off timing option can be
  65. used together or separately.)
  66. config SYSPROF_TRACER
  67. bool "Sysprof Tracer"
  68. depends on X86
  69. select TRACING
  70. help
  71. This tracer provides the trace needed by the 'Sysprof' userspace
  72. tool.
  73. config SCHED_TRACER
  74. bool "Scheduling Latency Tracer"
  75. depends on HAVE_FTRACE
  76. select TRACING
  77. select CONTEXT_SWITCH_TRACER
  78. select TRACER_MAX_TRACE
  79. help
  80. This tracer tracks the latency of the highest priority task
  81. to be scheduled in, starting from the point it has woken up.
  82. config CONTEXT_SWITCH_TRACER
  83. bool "Trace process context switches"
  84. depends on HAVE_FTRACE
  85. select TRACING
  86. select MARKERS
  87. help
  88. This tracer gets called from the context switch and records
  89. all switching of tasks.
  90. config DYNAMIC_FTRACE
  91. bool "enable/disable ftrace tracepoints dynamically"
  92. depends on FTRACE
  93. depends on HAVE_DYNAMIC_FTRACE
  94. default y
  95. help
  96. This option will modify all the calls to ftrace dynamically
  97. (will patch them out of the binary image and replaces them
  98. with a No-Op instruction) as they are called. A table is
  99. created to dynamically enable them again.
  100. This way a CONFIG_FTRACE kernel is slightly larger, but otherwise
  101. has native performance as long as no tracing is active.
  102. The changes to the code are done by a kernel thread that
  103. wakes up once a second and checks to see if any ftrace calls
  104. were made. If so, it runs stop_machine (stops all CPUS)
  105. and modifies the code to jump over the call to ftrace.
  106. config FTRACE_SELFTEST
  107. bool
  108. config FTRACE_STARTUP_TEST
  109. bool "Perform a startup test on ftrace"
  110. depends on TRACING
  111. select FTRACE_SELFTEST
  112. help
  113. This option performs a series of startup tests on ftrace. On bootup
  114. a series of tests are made to verify that the tracer is
  115. functioning properly. It will do tests on all the configured
  116. tracers of ftrace.