Kconfig 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. menu "Application Level Tracing"
  2. choice ESP32_APPTRACE_DESTINATION
  3. prompt "Data Destination"
  4. default ESP32_APPTRACE_DEST_NONE
  5. help
  6. Select destination for application trace: trace memory or none (to disable).
  7. config ESP32_APPTRACE_DEST_TRAX
  8. bool "Trace memory"
  9. select ESP32_APPTRACE_ENABLE
  10. config ESP32_APPTRACE_DEST_NONE
  11. bool "None"
  12. endchoice
  13. config ESP32_APPTRACE_ENABLE
  14. bool
  15. depends on !ESP32_TRAX
  16. select MEMMAP_TRACEMEM
  17. select MEMMAP_TRACEMEM_TWOBANKS
  18. default n
  19. help
  20. Enables/disable application tracing module.
  21. config ESP32_APPTRACE_LOCK_ENABLE
  22. bool
  23. default !SYSVIEW_ENABLE
  24. help
  25. Enables/disable application tracing module internal sync lock.
  26. config ESP32_APPTRACE_ONPANIC_HOST_FLUSH_TMO
  27. int "Timeout for flushing last trace data to host on panic"
  28. depends on ESP32_APPTRACE_ENABLE
  29. range -1 5000
  30. default -1
  31. help
  32. Timeout for flushing last trace data to host in case of panic. In ms.
  33. Use -1 to disable timeout and wait forever.
  34. config ESP32_APPTRACE_POSTMORTEM_FLUSH_TRAX_THRESH
  35. int "Threshold for flushing last trace data to host on panic"
  36. depends on ESP32_APPTRACE_DEST_TRAX
  37. range 0 16384
  38. default 0
  39. help
  40. Threshold for flushing last trace data to host on panic in post-mortem mode.
  41. This is minimal amount of data needed to perform flush. In bytes.
  42. config ESP32_APPTRACE_PENDING_DATA_SIZE_MAX
  43. int "Size of the pending data buffer"
  44. depends on ESP32_APPTRACE_DEST_TRAX
  45. default 0
  46. help
  47. Size of the buffer for events in bytes. It is useful for buffering events from
  48. the time critical code (scheduler, ISRs etc). If this parameter is 0 then
  49. events will be discarded when main HW buffer is full.
  50. menu "FreeRTOS SystemView Tracing"
  51. config SYSVIEW_ENABLE
  52. bool "SystemView Tracing Enable"
  53. depends on ESP32_APPTRACE_ENABLE
  54. default n
  55. help
  56. Enables supporrt for SEGGER SystemView tracing functionality.
  57. choice SYSVIEW_TS_SOURCE
  58. prompt "ESP32 timer to use as SystemView timestamp source"
  59. depends on SYSVIEW_ENABLE
  60. default SYSVIEW_TS_SOURCE_TIMER_00
  61. help
  62. SystemView needs to use a hardware timer as the source of timestamps
  63. when tracing
  64. This option selects HW timer for it.
  65. config SYSVIEW_TS_SOURCE_TIMER_00
  66. bool "Timer 0, Group 0"
  67. help
  68. Select this to use timer 0 of group 0
  69. config SYSVIEW_TS_SOURCE_TIMER_01
  70. bool "Timer 1, Group 0"
  71. help
  72. Select this to use timer 1 of group 0
  73. config SYSVIEW_TS_SOURCE_TIMER_10
  74. bool "Timer 0, Group 1"
  75. help
  76. Select this to use timer 0 of group 1
  77. config SYSVIEW_TS_SOURCE_TIMER_11
  78. bool "Timer 1, Group 1"
  79. help
  80. Select this to use timer 1 of group 1
  81. endchoice
  82. config SYSVIEW_EVT_OVERFLOW_ENABLE
  83. bool "Trace Buffer Overflow Event"
  84. depends on SYSVIEW_ENABLE
  85. default y
  86. help
  87. Enables "Trace Buffer Overflow" event.
  88. config SYSVIEW_EVT_ISR_ENTER_ENABLE
  89. bool "ISR Enter Event"
  90. depends on SYSVIEW_ENABLE
  91. default y
  92. help
  93. Enables "ISR Enter" event.
  94. config SYSVIEW_EVT_ISR_EXIT_ENABLE
  95. bool "ISR Exit Event"
  96. depends on SYSVIEW_ENABLE
  97. default y
  98. help
  99. Enables "ISR Exit" event.
  100. config SYSVIEW_EVT_ISR_TO_SCHEDULER_ENABLE
  101. bool "ISR Exit to Scheduler Event"
  102. depends on SYSVIEW_ENABLE
  103. default y
  104. help
  105. Enables "ISR to Scheduler" event.
  106. config SYSVIEW_EVT_TASK_START_EXEC_ENABLE
  107. bool "Task Start Execution Event"
  108. depends on SYSVIEW_ENABLE
  109. default y
  110. help
  111. Enables "Task Start Execution" event.
  112. config SYSVIEW_EVT_TASK_STOP_EXEC_ENABLE
  113. bool "Task Stop Execution Event"
  114. depends on SYSVIEW_ENABLE
  115. default y
  116. help
  117. Enables "Task Stop Execution" event.
  118. config SYSVIEW_EVT_TASK_START_READY_ENABLE
  119. bool "Task Start Ready State Event"
  120. depends on SYSVIEW_ENABLE
  121. default y
  122. help
  123. Enables "Task Start Ready State" event.
  124. config SYSVIEW_EVT_TASK_STOP_READY_ENABLE
  125. bool "Task Stop Ready State Event"
  126. depends on SYSVIEW_ENABLE
  127. default y
  128. help
  129. Enables "Task Stop Ready State" event.
  130. config SYSVIEW_EVT_TASK_CREATE_ENABLE
  131. bool "Task Create Event"
  132. depends on SYSVIEW_ENABLE
  133. default y
  134. help
  135. Enables "Task Create" event.
  136. config SYSVIEW_EVT_TASK_TERMINATE_ENABLE
  137. bool "Task Terminate Event"
  138. depends on SYSVIEW_ENABLE
  139. default y
  140. help
  141. Enables "Task Terminate" event.
  142. config SYSVIEW_EVT_IDLE_ENABLE
  143. bool "System Idle Event"
  144. depends on SYSVIEW_ENABLE
  145. default y
  146. help
  147. Enables "System Idle" event.
  148. config SYSVIEW_EVT_TIMER_ENTER_ENABLE
  149. bool "Timer Enter Event"
  150. depends on SYSVIEW_ENABLE
  151. default y
  152. help
  153. Enables "Timer Enter" event.
  154. config SYSVIEW_EVT_TIMER_EXIT_ENABLE
  155. bool "Timer Exit Event"
  156. depends on SYSVIEW_ENABLE
  157. default y
  158. help
  159. Enables "Timer Exit" event.
  160. endmenu
  161. endmenu