change(esp_trace): skip unused timer reads on the per-event path

Lock take called esp_timer_get_time() before trying the spinlock, and the
C3 default timestamp went through esp_timer's tick-to-us conversion.
Try the lock first, and read systimer ticks directly.

(cherry picked from commit 4709507f3e)
This commit is contained in:
Erhan Kurubas
2026-08-20 13:28:38 +02:00
parent 1971a58caa
commit 08bc66dc08
5 changed files with 40 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ CONFIG_FREERTOS_HZ=1000
# Enable FreeRTOS SystemView Tracing by default
CONFIG_ESP_TRACE_ENABLE=y
CONFIG_ESP_TRACE_LIB_EXTERNAL=y
CONFIG_ESP_TRACE_TS_SOURCE_ESP_TIMER=y
CONFIG_ESP_TRACE_TS_SOURCE_SYSTIMER=y
CONFIG_SEGGER_SYSVIEW_EVT_OVERFLOW_ENABLE=y
CONFIG_SEGGER_SYSVIEW_EVT_ISR_ENTER_ENABLE=y
CONFIG_SEGGER_SYSVIEW_EVT_ISR_EXIT_ENABLE=y

View File

@@ -0,0 +1 @@
CONFIG_ESP_TRACE_TS_SOURCE_ESP_TIMER=y