mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
feat(esp_trace): add example to demonstrate external lib integration
This commit is contained in:
@@ -21,7 +21,13 @@ typedef struct esp_trace_transport esp_trace_transport_t;
|
||||
/**
|
||||
* @brief Encoder Virtual Table
|
||||
*
|
||||
* Defines the interface for trace encoders (libraries)
|
||||
* Defines the interface for trace encoders (libraries).
|
||||
*
|
||||
* @warning Runtime callbacks (write, flush, take_lock, give_lock, panic_handler)
|
||||
* must not call FreeRTOS / IDF APIs that themselves emit trace hooks
|
||||
* (e.g. vTaskDelay, xQueue*, xSemaphore*) — doing so re-enters the
|
||||
* tracing path and can deadlock on the encoder lock or crash in ISR
|
||||
* context.
|
||||
*/
|
||||
typedef struct {
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2025-2026 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -34,6 +34,11 @@ typedef enum {
|
||||
*
|
||||
* Defines the interface for trace transports.
|
||||
*
|
||||
* @warning Runtime callbacks (read, write, flush_nolock, panic_handler) must
|
||||
* not call FreeRTOS / IDF APIs that themselves emit trace hooks
|
||||
* (e.g. vTaskDelay, xQueue*, xSemaphore*) — they are invoked from
|
||||
* inside the encoder's lock and from ISR context, so re-entering
|
||||
* the tracing path can deadlock or assert.
|
||||
*/
|
||||
typedef struct {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user