2017-03-21 23:07:37 -04:00
|
|
|
menu "Application Level Tracing"
|
|
|
|
|
2019-09-13 08:49:11 -04:00
|
|
|
choice APPTRACE_DESTINATION
|
2018-12-06 09:08:18 -05:00
|
|
|
prompt "Data Destination"
|
2019-09-13 08:49:11 -04:00
|
|
|
default APPTRACE_DEST_NONE
|
2018-12-06 09:08:18 -05:00
|
|
|
help
|
2020-12-21 12:17:42 -05:00
|
|
|
Select destination for application trace: JTAG or none (to disable).
|
2018-12-06 09:08:18 -05:00
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_DEST_JTAG
|
|
|
|
bool "JTAG"
|
|
|
|
select APPTRACE_DEST_TRAX if IDF_TARGET_ARCH_XTENSA
|
|
|
|
select APPTRACE_MEMBUFS_APPTRACE_PROTO_ENABLE
|
2019-09-13 08:49:11 -04:00
|
|
|
select APPTRACE_ENABLE
|
2020-12-21 12:17:42 -05:00
|
|
|
|
2019-09-13 08:49:11 -04:00
|
|
|
config APPTRACE_DEST_NONE
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "None"
|
|
|
|
endchoice
|
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_DEST_TRAX
|
2018-12-06 09:08:18 -05:00
|
|
|
bool
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on IDF_TARGET_ARCH_XTENSA && !ESP32_TRAX && !ESP32S2_TRAX
|
2019-04-30 06:51:55 -04:00
|
|
|
select ESP32_MEMMAP_TRACEMEM
|
2019-07-24 13:20:11 -04:00
|
|
|
select ESP32S2_MEMMAP_TRACEMEM
|
2019-04-30 06:51:55 -04:00
|
|
|
select ESP32_MEMMAP_TRACEMEM_TWOBANKS
|
2019-07-24 13:20:11 -04:00
|
|
|
select ESP32S2_MEMMAP_TRACEMEM_TWOBANKS
|
2018-12-06 09:08:18 -05:00
|
|
|
default n
|
2020-12-21 12:17:42 -05:00
|
|
|
help
|
|
|
|
Enables/disable TRAX tracing HW.
|
|
|
|
|
|
|
|
config APPTRACE_MEMBUFS_APPTRACE_PROTO_ENABLE
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enables/disable swapping memory buffers tracing protocol.
|
|
|
|
|
|
|
|
config APPTRACE_ENABLE
|
|
|
|
bool
|
|
|
|
default n
|
2018-12-06 09:08:18 -05:00
|
|
|
help
|
|
|
|
Enables/disable application tracing module.
|
|
|
|
|
2019-09-13 08:49:11 -04:00
|
|
|
config APPTRACE_LOCK_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
bool
|
2020-12-21 12:17:42 -05:00
|
|
|
default !APPTRACE_SV_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
help
|
|
|
|
Enables/disable application tracing module internal sync lock.
|
|
|
|
|
2019-09-13 08:49:11 -04:00
|
|
|
config APPTRACE_ONPANIC_HOST_FLUSH_TMO
|
2018-12-06 09:08:18 -05:00
|
|
|
int "Timeout for flushing last trace data to host on panic"
|
2019-09-13 08:49:11 -04:00
|
|
|
depends on APPTRACE_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
range -1 5000
|
|
|
|
default -1
|
|
|
|
help
|
|
|
|
Timeout for flushing last trace data to host in case of panic. In ms.
|
|
|
|
Use -1 to disable timeout and wait forever.
|
|
|
|
|
2019-09-13 08:49:11 -04:00
|
|
|
config APPTRACE_POSTMORTEM_FLUSH_THRESH
|
2018-12-06 09:08:18 -05:00
|
|
|
int "Threshold for flushing last trace data to host on panic"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on APPTRACE_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
range 0 16384
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
Threshold for flushing last trace data to host on panic in post-mortem mode.
|
|
|
|
This is minimal amount of data needed to perform flush. In bytes.
|
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_BUF_SIZE
|
|
|
|
int "Size of the apptrace buffer"
|
|
|
|
depends on APPTRACE_MEMBUFS_APPTRACE_PROTO_ENABLE && !APPTRACE_DEST_TRAX
|
|
|
|
default 16384
|
|
|
|
help
|
|
|
|
Size of the memory buffer for trace datats in bytes.
|
|
|
|
|
2019-09-13 08:49:11 -04:00
|
|
|
config APPTRACE_PENDING_DATA_SIZE_MAX
|
2018-12-06 09:08:18 -05:00
|
|
|
int "Size of the pending data buffer"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on APPTRACE_MEMBUFS_APPTRACE_PROTO_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
default 0
|
|
|
|
help
|
|
|
|
Size of the buffer for events in bytes. It is useful for buffering events from
|
|
|
|
the time critical code (scheduler, ISRs etc). If this parameter is 0 then
|
|
|
|
events will be discarded when main HW buffer is full.
|
|
|
|
|
|
|
|
menu "FreeRTOS SystemView Tracing"
|
2019-09-13 08:49:11 -04:00
|
|
|
depends on APPTRACE_ENABLE
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "SystemView Tracing Enable"
|
2019-09-13 08:49:11 -04:00
|
|
|
depends on APPTRACE_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
default n
|
|
|
|
help
|
|
|
|
Enables supporrt for SEGGER SystemView tracing functionality.
|
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
choice APPTRACE_SV_TS_SOURCE
|
2018-12-06 09:08:18 -05:00
|
|
|
prompt "Timer to use as timestamp source"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on APPTRACE_SV_ENABLE
|
|
|
|
default APPTRACE_SV_TS_SOURCE_CCOUNT if FREERTOS_UNICORE && !PM_ENABLE && !IDF_TARGET_ESP32C3
|
|
|
|
default APPTRACE_SV_TS_SOURCE_TIMER_00 if !FREERTOS_UNICORE && !PM_ENABLE && !IDF_TARGET_ESP32C3
|
|
|
|
default APPTRACE_SV_TS_SOURCE_ESP_TIMER if PM_ENABLE || IDF_TARGET_ESP32C3
|
2018-12-06 09:08:18 -05:00
|
|
|
help
|
|
|
|
SystemView needs to use a hardware timer as the source of timestamps
|
|
|
|
when tracing. This option selects the timer for it.
|
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_TS_SOURCE_CCOUNT
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "CPU cycle counter (CCOUNT)"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on FREERTOS_UNICORE && !PM_ENABLE && !IDF_TARGET_ESP32C3
|
2018-12-06 09:08:18 -05:00
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_TS_SOURCE_TIMER_00
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "Timer 0, Group 0"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on !PM_ENABLE && !IDF_TARGET_ESP32C3
|
2018-12-06 09:08:18 -05:00
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_TS_SOURCE_TIMER_01
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "Timer 1, Group 0"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on !PM_ENABLE && !IDF_TARGET_ESP32C3
|
2018-12-06 09:08:18 -05:00
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_TS_SOURCE_TIMER_10
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "Timer 0, Group 1"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on !PM_ENABLE && !IDF_TARGET_ESP32C3
|
2018-12-06 09:08:18 -05:00
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_TS_SOURCE_TIMER_11
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "Timer 1, Group 1"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on !PM_ENABLE && !IDF_TARGET_ESP32C3
|
2018-12-06 09:08:18 -05:00
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_TS_SOURCE_ESP_TIMER
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "esp_timer high resolution timer"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_MAX_TASKS
|
2019-02-05 07:48:24 -05:00
|
|
|
int "Maximum supported tasks"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on APPTRACE_SV_ENABLE
|
2019-02-05 07:48:24 -05:00
|
|
|
range 1 64
|
|
|
|
default 16
|
|
|
|
help
|
|
|
|
Configures maximum supported tasks in sysview debug
|
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_BUF_WAIT_TMO
|
2018-12-12 12:35:17 -05:00
|
|
|
int "Trace buffer wait timeout"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on APPTRACE_SV_ENABLE
|
2018-12-12 12:35:17 -05:00
|
|
|
default 500
|
|
|
|
help
|
|
|
|
Configures timeout (in us) to wait for free space in trace buffer.
|
|
|
|
Set to -1 to wait forever and avoid lost events.
|
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_EVT_OVERFLOW_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "Trace Buffer Overflow Event"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on APPTRACE_SV_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enables "Trace Buffer Overflow" event.
|
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_EVT_ISR_ENTER_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "ISR Enter Event"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on APPTRACE_SV_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enables "ISR Enter" event.
|
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_EVT_ISR_EXIT_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "ISR Exit Event"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on APPTRACE_SV_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enables "ISR Exit" event.
|
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_EVT_ISR_TO_SCHED_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "ISR Exit to Scheduler Event"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on APPTRACE_SV_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enables "ISR to Scheduler" event.
|
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_EVT_TASK_START_EXEC_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "Task Start Execution Event"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on APPTRACE_SV_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enables "Task Start Execution" event.
|
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_EVT_TASK_STOP_EXEC_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "Task Stop Execution Event"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on APPTRACE_SV_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enables "Task Stop Execution" event.
|
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_EVT_TASK_START_READY_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "Task Start Ready State Event"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on APPTRACE_SV_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enables "Task Start Ready State" event.
|
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_EVT_TASK_STOP_READY_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "Task Stop Ready State Event"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on APPTRACE_SV_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enables "Task Stop Ready State" event.
|
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_EVT_TASK_CREATE_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "Task Create Event"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on APPTRACE_SV_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enables "Task Create" event.
|
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_EVT_TASK_TERMINATE_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "Task Terminate Event"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on APPTRACE_SV_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enables "Task Terminate" event.
|
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_EVT_IDLE_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "System Idle Event"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on APPTRACE_SV_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enables "System Idle" event.
|
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_EVT_TIMER_ENTER_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "Timer Enter Event"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on APPTRACE_SV_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enables "Timer Enter" event.
|
|
|
|
|
2020-12-21 12:17:42 -05:00
|
|
|
config APPTRACE_SV_EVT_TIMER_EXIT_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "Timer Exit Event"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on APPTRACE_SV_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
default y
|
|
|
|
help
|
|
|
|
Enables "Timer Exit" event.
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
2019-09-13 08:49:11 -04:00
|
|
|
config APPTRACE_GCOV_ENABLE
|
2018-12-06 09:08:18 -05:00
|
|
|
bool "GCOV to Host Enable"
|
2020-12-21 12:17:42 -05:00
|
|
|
depends on APPTRACE_ENABLE && !APPTRACE_SV_ENABLE
|
2019-09-13 08:49:11 -04:00
|
|
|
select ESP_DEBUG_STUBS_ENABLE
|
|
|
|
default n
|
2018-12-06 09:08:18 -05:00
|
|
|
help
|
|
|
|
Enables support for GCOV data transfer to host.
|
2018-02-15 12:09:03 -05:00
|
|
|
|
2017-03-21 23:07:37 -04:00
|
|
|
endmenu
|