OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | esp_sysview_target2host_hdr |
Macros | |
#define | ESP32_SYSVIEW_USER_BLOCK_CORE(_v_) (0) /* not used */ |
#define | ESP32_SYSVIEW_USER_BLOCK_HDR_SZ 2 |
#define | ESP32_SYSVIEW_USER_BLOCK_LEN(_v_) (_v_) |
#define | SYSVIEW_BLOCK_SIZE_OFFSET 0 |
#define | SYSVIEW_WR_SIZE_OFFSET 1 |
Functions | |
int | esp32_sysview_cmd_cleanup (struct esp32_apptrace_cmd_ctx *cmd_ctx) |
int | esp32_sysview_cmd_init (struct esp32_apptrace_cmd_ctx *cmd_ctx, struct command_invocation *cmd, int mode, bool mcore_format, const char **argv, int argc) |
static int | esp32_sysview_core_id_get (struct target *target, uint8_t *hdr_buf) |
int | esp32_sysview_process_data (struct esp32_apptrace_cmd_ctx *ctx, unsigned int core_id, uint8_t *data, uint32_t data_len) |
static int | esp32_sysview_process_packet (struct esp32_apptrace_cmd_ctx *ctx, unsigned int pkt_core_id, uint16_t event_id, uint32_t delta, uint32_t delta_len, uint32_t pkt_len, uint8_t *pkt_buf) |
static uint32_t | esp32_sysview_usr_block_len_get (struct target *target, uint8_t *hdr_buf, uint32_t *wr_len) |
static int | esp32_sysview_write_packet (struct esp32_sysview_cmd_data *cmd_data, int pkt_core_id, uint32_t pkt_len, uint8_t *pkt_buf, uint32_t delta_len, uint8_t *delta_buf) |
static uint16_t | esp_sysview_decode_plen (uint8_t **ptr) |
static uint32_t | esp_sysview_decode_u32 (uint8_t **ptr) |
static uint16_t | esp_sysview_get_predef_payload_len (uint16_t id, uint8_t *pkt) |
static uint16_t | esp_sysview_parse_packet (uint8_t *pkt_buf, uint32_t *pkt_len, unsigned int *pkt_core_id, uint32_t *delta, uint32_t *delta_len, bool clear_core_bit) |
static int | esp_sysview_trace_header_write (struct esp32_apptrace_cmd_ctx *ctx, bool mcore_format) |
static void | sysview_encode_u32 (uint8_t **dest, uint32_t val) |
#define ESP32_SYSVIEW_USER_BLOCK_CORE | ( | _v_ | ) | (0) /* not used */ |
Definition at line 18 of file esp32_sysview.c.
#define ESP32_SYSVIEW_USER_BLOCK_HDR_SZ 2 |
Definition at line 20 of file esp32_sysview.c.
#define ESP32_SYSVIEW_USER_BLOCK_LEN | ( | _v_ | ) | (_v_) |
Definition at line 19 of file esp32_sysview.c.
#define SYSVIEW_BLOCK_SIZE_OFFSET 0 |
Definition at line 26 of file esp32_sysview.c.
#define SYSVIEW_WR_SIZE_OFFSET 1 |
Definition at line 27 of file esp32_sysview.c.
int esp32_sysview_cmd_cleanup | ( | struct esp32_apptrace_cmd_ctx * | cmd_ctx | ) |
Definition at line 113 of file esp32_sysview.c.
References esp32_apptrace_cmd_ctx::cmd_priv, esp32_apptrace_cmd_ctx::cores_num, esp32_sysview_cmd_data::data_dests, ERROR_OK, esp32_apptrace_cmd_ctx_cleanup(), esp32_apptrace_dest_cleanup(), and NULL.
Referenced by esp32_cmd_apptrace_generic().
int esp32_sysview_cmd_init | ( | struct esp32_apptrace_cmd_ctx * | cmd_ctx, |
struct command_invocation * | cmd, | ||
int | mode, | ||
bool | mcore_format, | ||
const char ** | argv, | ||
int | argc | ||
) |
Definition at line 33 of file esp32_sysview.c.
References esp32_sysview_cmd_data::apptrace, cmd, esp32_apptrace_cmd_ctx::cmd_priv, command_print(), esp32_apptrace_format::core_id_get, esp32_apptrace_cmd_ctx::cores_num, esp32_sysview_cmd_data::data_dests, ERROR_FAIL, ERROR_OK, esp32_apptrace_cmd_args_parse(), esp32_apptrace_cmd_ctx_cleanup(), esp32_apptrace_cmd_ctx_init(), esp32_apptrace_dest_cleanup(), esp32_apptrace_dest_init(), esp32_sysview_core_id_get(), ESP32_SYSVIEW_USER_BLOCK_HDR_SZ, esp32_sysview_usr_block_len_get(), esp_sysview_trace_header_write(), esp32_apptrace_format::hdr_sz, LOG_USER, esp32_apptrace_cmd_data::max_len, esp32_sysview_cmd_data::mcore_format, mode, esp32_apptrace_cmd_data::poll_period, esp32_apptrace_cmd_ctx::running, esp32_apptrace_cmd_data::skip_len, esp32_apptrace_cmd_ctx::stop_tmo, esp32_apptrace_cmd_ctx::trace_format, esp32_apptrace_format::usr_block_len_get, and esp32_apptrace_cmd_data::wait4halt.
Referenced by esp32_cmd_apptrace_generic().
|
static |
Definition at line 124 of file esp32_sysview.c.
Referenced by esp32_sysview_cmd_init().
int esp32_sysview_process_data | ( | struct esp32_apptrace_cmd_ctx * | ctx, |
unsigned int | core_id, | ||
uint8_t * | data, | ||
uint32_t | data_len | ||
) |
Definition at line 442 of file esp32_sysview.c.
References esp32_sysview_cmd_data::apptrace, esp32_apptrace_cmd_ctx::cmd_priv, esp32_apptrace_cmd_ctx::cores_num, esp32_sysview_cmd_data::data_dests, duration_measure(), ERROR_FAIL, ERROR_OK, esp32_sysview_process_packet(), esp_sysview_parse_packet(), LOG_DEBUG, LOG_ERROR, LOG_USER, esp32_apptrace_cmd_data::max_len, esp32_sysview_cmd_data::mcore_format, esp32_apptrace_dest::priv, esp32_apptrace_cmd_ctx::read_time, esp32_apptrace_cmd_ctx::running, esp32_apptrace_cmd_data::skip_len, esp32_sysview_cmd_data::sv_trace_running, SYSVIEW_EVTID_TRACE_STOP, SYSVIEW_SYNC_LEN, esp32_apptrace_cmd_ctx::tot_len, and esp32_apptrace_dest::write.
Referenced by esp32_cmd_apptrace_generic().
|
static |
Definition at line 352 of file esp32_sysview.c.
References esp32_apptrace_cmd_ctx::cmd_priv, esp32_apptrace_cmd_ctx::cores_num, ERROR_FAIL, ERROR_OK, esp32_sysview_write_packet(), LOG_DEBUG, LOG_WARNING, esp32_sysview_cmd_data::sv_acc_time_delta, esp32_sysview_cmd_data::sv_last_core_id, sysview_encode_u32(), SYSVIEW_EVTID_INIT, SYSVIEW_EVTID_MODULEDESC, SYSVIEW_EVTID_NUMMODULES, SYSVIEW_EVTID_OVERFLOW, SYSVIEW_EVTID_STACK_INFO, SYSVIEW_EVTID_SYSDESC, SYSVIEW_EVTID_SYSTIME_CYCLES, SYSVIEW_EVTID_SYSTIME_US, SYSVIEW_EVTID_TASK_INFO, SYSVIEW_EVTID_TASK_START_READY, SYSVIEW_EVTID_TRACE_START, and SYSVIEW_EVTID_TRACE_STOP.
Referenced by esp32_sysview_process_data().
|
static |
Definition at line 130 of file esp32_sysview.c.
References ESP32_SYSVIEW_USER_BLOCK_LEN, SYSVIEW_BLOCK_SIZE_OFFSET, and SYSVIEW_WR_SIZE_OFFSET.
Referenced by esp32_sysview_cmd_init().
|
static |
Definition at line 329 of file esp32_sysview.c.
References esp32_sysview_cmd_data::data_dests, ERROR_FAIL, ERROR_OK, LOG_ERROR, esp32_apptrace_dest::priv, and esp32_apptrace_dest::write.
Referenced by esp32_sysview_process_packet().
|
static |
Definition at line 196 of file esp32_sysview.c.
Referenced by esp_sysview_parse_packet().
|
static |
Definition at line 181 of file esp32_sysview.c.
Referenced by esp_sysview_get_predef_payload_len(), and esp_sysview_parse_packet().
|
static |
Definition at line 214 of file esp32_sysview.c.
References esp_sysview_decode_u32(), LOG_ERROR, SYSVIEW_EVTID_IDLE, SYSVIEW_EVTID_ISR_ENTER, SYSVIEW_EVTID_ISR_EXIT, SYSVIEW_EVTID_ISR_TO_SCHEDULER, SYSVIEW_EVTID_MODULEDESC, SYSVIEW_EVTID_OVERFLOW, SYSVIEW_EVTID_STACK_INFO, SYSVIEW_EVTID_SYSDESC, SYSVIEW_EVTID_SYSTIME_CYCLES, SYSVIEW_EVTID_SYSTIME_US, SYSVIEW_EVTID_TASK_CREATE, SYSVIEW_EVTID_TASK_INFO, SYSVIEW_EVTID_TASK_START_EXEC, SYSVIEW_EVTID_TASK_START_READY, SYSVIEW_EVTID_TASK_STOP_EXEC, SYSVIEW_EVTID_TASK_STOP_READY, SYSVIEW_EVTID_TIMER_ENTER, SYSVIEW_EVTID_TIMER_EXIT, SYSVIEW_EVTID_TRACE_START, SYSVIEW_EVTID_TRACE_STOP, SYSVIEW_EVTID_USER_START, and SYSVIEW_EVTID_USER_STOP.
Referenced by esp_sysview_parse_packet().
|
static |
Definition at line 278 of file esp32_sysview.c.
References esp_sysview_decode_plen(), esp_sysview_decode_u32(), esp_sysview_get_predef_payload_len(), and LOG_DEBUG.
Referenced by esp32_sysview_process_data().
|
static |
Definition at line 136 of file esp32_sysview.c.
References esp32_apptrace_cmd_ctx::cmd_priv, esp32_apptrace_cmd_ctx::cores_num, esp32_sysview_cmd_data::data_dests, ERROR_FAIL, ERROR_OK, LOG_ERROR, esp32_sysview_cmd_data::mcore_format, esp32_apptrace_dest::priv, SYSVIEW_MIN_VER_STRING, and esp32_apptrace_dest::write.
Referenced by esp32_sysview_cmd_init().
|
static |
Definition at line 170 of file esp32_sysview.c.
Referenced by esp32_sysview_process_packet().