Kconfig 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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. depends on ESP32_APPTRACE_ENABLE
  52. config SYSVIEW_ENABLE
  53. bool "SystemView Tracing Enable"
  54. depends on ESP32_APPTRACE_ENABLE
  55. default n
  56. help
  57. Enables supporrt for SEGGER SystemView tracing functionality.
  58. choice SYSVIEW_TS_SOURCE
  59. prompt "Timer to use as timestamp source"
  60. depends on SYSVIEW_ENABLE
  61. default SYSVIEW_TS_SOURCE_CCOUNT if FREERTOS_UNICORE && !PM_ENABLE
  62. default SYSVIEW_TS_SOURCE_TIMER_00 if !FREERTOS_UNICORE && !PM_ENABLE
  63. default SYSVIEW_TS_SOURCE_ESP_TIMER if PM_ENABLE
  64. help
  65. SystemView needs to use a hardware timer as the source of timestamps
  66. when tracing. This option selects the timer for it.
  67. config SYSVIEW_TS_SOURCE_CCOUNT
  68. bool "CPU cycle counter (CCOUNT)"
  69. depends on FREERTOS_UNICORE && !PM_ENABLE
  70. config SYSVIEW_TS_SOURCE_TIMER_00
  71. bool "Timer 0, Group 0"
  72. depends on !PM_ENABLE
  73. config SYSVIEW_TS_SOURCE_TIMER_01
  74. bool "Timer 1, Group 0"
  75. depends on !PM_ENABLE
  76. config SYSVIEW_TS_SOURCE_TIMER_10
  77. bool "Timer 0, Group 1"
  78. depends on !PM_ENABLE
  79. config SYSVIEW_TS_SOURCE_TIMER_11
  80. bool "Timer 1, Group 1"
  81. depends on !PM_ENABLE
  82. config SYSVIEW_TS_SOURCE_ESP_TIMER
  83. bool "esp_timer high resolution timer"
  84. endchoice
  85. config SYSVIEW_EVT_OVERFLOW_ENABLE
  86. bool "Trace Buffer Overflow Event"
  87. depends on SYSVIEW_ENABLE
  88. default y
  89. help
  90. Enables "Trace Buffer Overflow" event.
  91. config SYSVIEW_EVT_ISR_ENTER_ENABLE
  92. bool "ISR Enter Event"
  93. depends on SYSVIEW_ENABLE
  94. default y
  95. help
  96. Enables "ISR Enter" event.
  97. config SYSVIEW_EVT_ISR_EXIT_ENABLE
  98. bool "ISR Exit Event"
  99. depends on SYSVIEW_ENABLE
  100. default y
  101. help
  102. Enables "ISR Exit" event.
  103. config SYSVIEW_EVT_ISR_TO_SCHEDULER_ENABLE
  104. bool "ISR Exit to Scheduler Event"
  105. depends on SYSVIEW_ENABLE
  106. default y
  107. help
  108. Enables "ISR to Scheduler" event.
  109. config SYSVIEW_EVT_TASK_START_EXEC_ENABLE
  110. bool "Task Start Execution Event"
  111. depends on SYSVIEW_ENABLE
  112. default y
  113. help
  114. Enables "Task Start Execution" event.
  115. config SYSVIEW_EVT_TASK_STOP_EXEC_ENABLE
  116. bool "Task Stop Execution Event"
  117. depends on SYSVIEW_ENABLE
  118. default y
  119. help
  120. Enables "Task Stop Execution" event.
  121. config SYSVIEW_EVT_TASK_START_READY_ENABLE
  122. bool "Task Start Ready State Event"
  123. depends on SYSVIEW_ENABLE
  124. default y
  125. help
  126. Enables "Task Start Ready State" event.
  127. config SYSVIEW_EVT_TASK_STOP_READY_ENABLE
  128. bool "Task Stop Ready State Event"
  129. depends on SYSVIEW_ENABLE
  130. default y
  131. help
  132. Enables "Task Stop Ready State" event.
  133. config SYSVIEW_EVT_TASK_CREATE_ENABLE
  134. bool "Task Create Event"
  135. depends on SYSVIEW_ENABLE
  136. default y
  137. help
  138. Enables "Task Create" event.
  139. config SYSVIEW_EVT_TASK_TERMINATE_ENABLE
  140. bool "Task Terminate Event"
  141. depends on SYSVIEW_ENABLE
  142. default y
  143. help
  144. Enables "Task Terminate" event.
  145. config SYSVIEW_EVT_IDLE_ENABLE
  146. bool "System Idle Event"
  147. depends on SYSVIEW_ENABLE
  148. default y
  149. help
  150. Enables "System Idle" event.
  151. config SYSVIEW_EVT_TIMER_ENTER_ENABLE
  152. bool "Timer Enter Event"
  153. depends on SYSVIEW_ENABLE
  154. default y
  155. help
  156. Enables "Timer Enter" event.
  157. config SYSVIEW_EVT_TIMER_EXIT_ENABLE
  158. bool "Timer Exit Event"
  159. depends on SYSVIEW_ENABLE
  160. default y
  161. help
  162. Enables "Timer Exit" event.
  163. endmenu
  164. config ESP32_GCOV_ENABLE
  165. bool "GCOV to Host Enable"
  166. depends on ESP32_DEBUG_STUBS_ENABLE && ESP32_APPTRACE_ENABLE && !SYSVIEW_ENABLE
  167. default y
  168. help
  169. Enables support for GCOV data transfer to host.
  170. endmenu