OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | esp32_apptrace_cmd_ctx |
struct | esp32_apptrace_cmd_data |
struct | esp32_apptrace_cmd_stats |
struct | esp32_apptrace_dest |
struct | esp32_apptrace_format |
struct | esp32_apptrace_hw |
struct | esp_apptrace_host2target_hdr |
Macros | |
#define | ESP32_APPTRACE_MAX_CORES_NUM 2 |
Functions | |
void | esp32_apptrace_cmd_args_parse (struct esp32_apptrace_cmd_ctx *cmd_ctx, struct esp32_apptrace_cmd_data *cmd_data, const char **argv, int argc) |
int | esp32_apptrace_cmd_ctx_cleanup (struct esp32_apptrace_cmd_ctx *cmd_ctx) |
int | esp32_apptrace_cmd_ctx_init (struct esp32_apptrace_cmd_ctx *cmd_ctx, struct command_invocation *cmd, int mode) |
int | esp32_apptrace_dest_cleanup (struct esp32_apptrace_dest dest[], unsigned int max_dests) |
int | esp32_apptrace_dest_init (struct esp32_apptrace_dest dest[], const char *dest_paths[], unsigned int max_dests) |
int | esp_apptrace_usr_block_write (const struct esp32_apptrace_hw *hw, struct target *target, uint32_t block_id, const uint8_t *data, uint32_t size) |
Variables | |
const struct command_registration | esp32_apptrace_command_handlers [] |
#define ESP32_APPTRACE_MAX_CORES_NUM 2 |
Definition at line 15 of file esp32_apptrace.h.
void esp32_apptrace_cmd_args_parse | ( | struct esp32_apptrace_cmd_ctx * | cmd_ctx, |
struct esp32_apptrace_cmd_data * | cmd_data, | ||
const char ** | argv, | ||
int | argc | ||
) |
Definition at line 514 of file esp32_apptrace.c.
References esp32_apptrace_cmd_ctx::cmd, ESP32_APPTRACE_CMD_NUM_ARG_CHECK, esp32_apptrace_cmd_data::max_len, esp32_apptrace_cmd_data::poll_period, esp32_apptrace_cmd_data::skip_len, esp32_apptrace_cmd_ctx::stop_tmo, and esp32_apptrace_cmd_data::wait4halt.
Referenced by esp32_apptrace_cmd_init(), and esp32_sysview_cmd_init().
int esp32_apptrace_cmd_ctx_cleanup | ( | struct esp32_apptrace_cmd_ctx * | cmd_ctx | ) |
Definition at line 500 of file esp32_apptrace.c.
References ERROR_OK, and esp32_apptrace_blocks_pool_cleanup().
Referenced by esp32_apptrace_cmd_cleanup(), esp32_apptrace_cmd_ctx_init(), esp32_apptrace_cmd_init(), esp32_sysview_cmd_cleanup(), and esp32_sysview_cmd_init().
int esp32_apptrace_cmd_ctx_init | ( | struct esp32_apptrace_cmd_ctx * | cmd_ctx, |
struct command_invocation * | cmd, | ||
int | mode | ||
) |
Definition at line 404 of file esp32_apptrace.c.
References esp_xtensa_common::apptrace, target::arch_info, cmd, esp32_apptrace_cmd_ctx::cmd, CMD_CTX, command_print(), xtensa::common_magic, esp32_apptrace_cmd_ctx::cores_num, esp32_apptrace_cmd_ctx::cpus, esp32_apptrace_block::data, duration_start(), ERROR_FAIL, ERROR_OK, esp32_apptrace_blocks_pool_cleanup(), esp32_apptrace_cmd_ctx_cleanup(), esp32_apptrace_data_processor(), ESP32_APPTRACE_MAX_CORES_NUM, ESP_APPTRACE_BLOCKS_POOL_SZ, ESP_APPTRACE_CMD_MODE_SYNC, foreach_smp_target, esp32_apptrace_cmd_ctx::free_trace_blocks, get_current_target(), esp32_apptrace_cmd_ctx::hw, esp_xtensa_apptrace_info::hw, esp32_apptrace_cmd_ctx::idle_time, INIT_LIST_HEAD(), list_add(), LOG_INFO, esp32_apptrace_hw::max_block_size_get, esp32_apptrace_cmd_ctx::max_trace_block_sz, esp32_apptrace_cmd_stats::min_blk_proc_time, esp32_apptrace_cmd_stats::min_blk_read_time, mode, esp32_apptrace_cmd_ctx::mode, esp32_apptrace_block::node, esp32_apptrace_cmd_ctx::ready_trace_blocks, esp32_apptrace_cmd_ctx::running, s_time_stats_enable, target::smp, target::smp_targets, target::state, esp32_apptrace_cmd_ctx::stats, target, esp32_apptrace_cmd_ctx::target, target_list::target, target_register_timer_callback(), esp32_apptrace_cmd_ctx::target_state, TARGET_TIMER_TYPE_PERIODIC, target_to_esp_xtensa(), target_was_examined(), and XTENSA_COMMON_MAGIC.
Referenced by esp32_apptrace_cmd_init(), and esp32_sysview_cmd_init().
int esp32_apptrace_dest_cleanup | ( | struct esp32_apptrace_dest | dest[], |
unsigned int | max_dests | ||
) |
Definition at line 296 of file esp32_apptrace.c.
References esp32_apptrace_dest::clean, ERROR_OK, NULL, priv, and esp32_apptrace_dest::priv.
Referenced by esp32_apptrace_cmd_cleanup(), esp32_sysview_cmd_cleanup(), and esp32_sysview_cmd_init().
int esp32_apptrace_dest_init | ( | struct esp32_apptrace_dest | dest[], |
const char * | dest_paths[], | ||
unsigned int | max_dests | ||
) |
Definition at line 272 of file esp32_apptrace.c.
References ERROR_OK, esp32_apptrace_console_dest_init(), esp32_apptrace_file_dest_init(), esp32_apptrace_tcp_dest_init(), LOG_ERROR, and NULL.
Referenced by esp32_apptrace_cmd_init(), and esp32_sysview_cmd_init().
int esp_apptrace_usr_block_write | ( | const struct esp32_apptrace_hw * | hw, |
struct target * | target, | ||
uint32_t | block_id, | ||
const uint8_t * | data, | ||
uint32_t | size | ||
) |
Definition at line 815 of file esp32_apptrace.c.
References ARRAY_SIZE, esp_apptrace_host2target_hdr::block_sz, esp32_apptrace_hw::buffs_write, ERROR_FAIL, LOG_ERROR, size, and esp32_apptrace_hw::usr_block_max_size_get.
Referenced by esp32_sysview_start(), esp32_sysview_stop(), and esp_xtensa_apptrace_usr_block_write().
|
extern |
Definition at line 1601 of file esp32_apptrace.c.