Kconfig 5.1 KB

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