OpenOCD
|
Go to the source code of this file.
Functions | |
COMMAND_HANDLER (handle_etb_config_command) | |
COMMAND_HANDLER (handle_etb_trigger_percent_command) | |
struct reg_cache * | etb_build_reg_cache (struct etb *etb) |
static int | etb_get_reg (struct reg *reg) |
static void | etb_getbuf (jtag_callback_data_t arg) |
static int | etb_init (struct etm_context *etm_ctx) |
static int | etb_read_ram (struct etb *etb, uint32_t *data, int num_frames) |
static int | etb_read_reg (struct reg *reg) |
static int | etb_read_reg_w_check (struct reg *, uint8_t *, uint8_t *) |
static int | etb_read_trace (struct etm_context *etm_ctx) |
static int | etb_scann (struct etb *etb, uint32_t new_scan_chain) |
static int | etb_set_instr (struct etb *etb, uint32_t new_instr) |
static int | etb_set_reg (struct reg *reg, uint32_t value) |
static int | etb_set_reg_w_exec (struct reg *, uint8_t *) |
static int | etb_start_capture (struct etm_context *etm_ctx) |
static trace_status_t | etb_status (struct etm_context *etm_ctx) |
static int | etb_stop_capture (struct etm_context *etm_ctx) |
static int | etb_write_reg (struct reg *, uint32_t) |
Variables | |
struct etm_capture_driver | etb_capture_driver |
static const struct command_registration | etb_command_handlers [] |
static const struct command_registration | etb_config_command_handlers [] |
static const char *const | etb_reg_list [] |
static const struct reg_arch_type | etb_reg_type |
COMMAND_HANDLER | ( | handle_etb_config_command | ) |
Definition at line 318 of file etb.c.
References etm_context::capture_driver_priv, CMD, CMD_ARGC, CMD_ARGV, command_print(), etb::cur_scan_chain, ERROR_COMMAND_SYNTAX_ERROR, ERROR_FAIL, ERROR_OK, arm::etm, get_target(), is_arm(), jtag_tap_by_string(), LOG_ERROR, NULL, etb::ram_depth, etb::ram_width, etb::reg_cache, etb::tap, target, and target_to_arm().
COMMAND_HANDLER | ( | handle_etb_trigger_percent_command | ) |
Definition at line 364 of file etb.c.
References etm_context::capture_driver, etm_context::capture_driver_priv, CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, COMMAND_PARSE_NUMBER, command_print(), ERROR_FAIL, ERROR_OK, etb_capture_driver, arm::etm, get_current_target(), is_arm(), target, target_to_arm(), and etb::trigger_percent.
Definition at line 113 of file etb.c.
References etb_reg::addr, reg::arch_info, reg::dirty, etb_reg::etb, etb_reg_list, etb_reg_type, reg::name, reg_cache::name, reg_cache::next, NULL, reg_cache::num_regs, reg_cache::reg_list, reg::size, reg::type, reg::valid, and reg::value.
Referenced by etm_build_reg_cache().
|
static |
Definition at line 89 of file etb.c.
References ERROR_OK, etb_read_reg(), jtag_execute_queue(), and LOG_ERROR.
Referenced by etb_status().
|
static |
|
static |
Definition at line 438 of file etb.c.
References buf_get_u32(), etm_context::capture_driver_priv, ERROR_OK, ETB_RAM_DEPTH, ETB_RAM_WIDTH, etb_read_reg(), etb::etm_ctx, jtag_execute_queue(), etb::ram_depth, etb::ram_width, etb::reg_cache, reg_cache::reg_list, etb::trigger_percent, and reg::value.
|
static |
Definition at line 155 of file etb.c.
References buf_set_u32(), ERROR_OK, etb_getbuf(), etb_scann(), etb_set_instr(), scan_field::in_value, jtag_add_callback(), jtag_add_dr_scan(), jtag_execute_queue(), NULL, scan_field::num_bits, scan_field::out_value, etb::tap, and TAP_IDLE.
Referenced by etb_read_trace().
|
static |
Definition at line 84 of file etb.c.
References etb_read_reg_w_check(), and NULL.
Referenced by etb_get_reg(), etb_init(), etb_read_trace(), and etb_status().
|
static |
Definition at line 202 of file etb.c.
References etb_reg::addr, reg::arch_info, buf_set_u32(), scan_field::check_mask, scan_field::check_value, ERROR_OK, etb_reg::etb, etb_scann(), etb_set_instr(), scan_field::in_value, jtag_add_dr_scan(), jtag_add_dr_scan_check(), LOG_DEBUG, NULL, scan_field::num_bits, scan_field::out_value, etb::tap, TAP_IDLE, and reg::value.
Referenced by etb_read_reg().
|
static |
Definition at line 509 of file etb.c.
References buf_get_u32(), etm_context::capture_driver_priv, etm_context::control, ERROR_OK, ETB_RAM_READ_POINTER, ETB_RAM_WRITE_POINTER, etb_read_ram(), etb_read_reg(), ETB_STATUS, etb_write_reg(), etb::etm_ctx, ETM_PORT_4BIT, ETM_PORT_8BIT, ETM_PORT_WIDTH_MASK, ETMV1_TRACESYNC_CYCLE, ETMV1_TRIGGER_CYCLE, etmv1_trace_data::flags, jtag_execute_queue(), NULL, etmv1_trace_data::packet, etmv1_trace_data::pipestat, etb::ram_depth, etb::reg_cache, reg_cache::reg_list, STAT_TR, etm_context::trace_data, etm_context::trace_depth, and reg::value.
|
static |
Definition at line 57 of file etb.c.
References buf_set_u32(), etb::cur_scan_chain, DIV_ROUND_UP, ERROR_OK, etb_set_instr(), scan_field::in_value, jtag_add_dr_scan(), NULL, scan_field::num_bits, scan_field::out_value, etb::tap, and TAP_IDLE.
Referenced by etb_read_ram(), etb_read_reg_w_check(), and etb_write_reg().
|
static |
Definition at line 31 of file etb.c.
References buf_get_u32(), buf_set_u32(), jtag_tap::cur_instr, DIV_ROUND_UP, ERROR_FAIL, ERROR_OK, scan_field::in_value, jtag_tap::ir_length, jtag_add_ir_scan(), NULL, scan_field::num_bits, scan_field::out_value, etb::tap, and TAP_IDLE.
Referenced by etb_read_ram(), etb_read_reg_w_check(), etb_scann(), and etb_write_reg().
|
static |
Definition at line 253 of file etb.c.
References buf_set_u32(), reg::dirty, ERROR_OK, etb_write_reg(), LOG_ERROR, reg::size, reg::valid, and reg::value.
Referenced by etb_set_reg_w_exec().
|
static |
Definition at line 270 of file etb.c.
References buf_get_u32(), ERROR_OK, etb_set_reg(), jtag_execute_queue(), LOG_ERROR, and reg::size.
|
static |
Definition at line 639 of file etb.c.
References etm_context::capture_driver_priv, etm_context::capture_status, etm_context::control, ERROR_ETM_PORTMODE_NOT_SUPPORTED, ERROR_OK, ETB_CTRL, ETB_RAM_WRITE_POINTER, ETB_TRIGGER_COUNTER, etb_write_reg(), etb::etm_ctx, ETM_PORT_8BIT, ETM_PORT_DEMUXED, ETM_PORT_MODE_MASK, ETM_PORT_MUXED, ETM_PORT_WIDTH_MASK, jtag_execute_queue(), LOG_ERROR, etb::ram_depth, etb::reg_cache, reg_cache::reg_list, TRACE_RUNNING, and etb::trigger_percent.
|
static |
Definition at line 457 of file etb.c.
References buf_get_u32(), etm_context::capture_driver_priv, etm_context::capture_status, ETB_CTRL, etb_get_reg(), etb_read_reg(), ETB_STATUS, etb::etm_ctx, jtag_execute_queue(), LOG_ERROR, LOG_WARNING, etb::reg_cache, reg_cache::reg_list, status, TRACE_COMPLETED, TRACE_IDLE, TRACE_OVERFLOWED, TRACE_RUNNING, TRACE_TRIGGERED, and reg::value.
|
static |
|
static |
Definition at line 284 of file etb.c.
References etb_reg::addr, reg::arch_info, buf_set_u32(), ERROR_OK, etb_reg::etb, etb_scann(), etb_set_instr(), scan_field::in_value, jtag_add_dr_scan(), LOG_DEBUG, NULL, scan_field::num_bits, scan_field::out_value, etb::tap, and TAP_IDLE.
Referenced by etb_read_trace(), etb_set_reg(), and etb_start_capture().
struct etm_capture_driver etb_capture_driver |
Definition at line 671 of file etb.c.
Referenced by COMMAND_HANDLER().
|
static |
|
static |
|
static |
Definition at line 17 of file etb.c.
Referenced by etb_build_reg_cache().
|
static |
Definition at line 89 of file etb.c.
Referenced by etb_build_reg_cache().