OpenOCD
oocd_trace.c File Reference
Include dependency graph for oocd_trace.c:

Go to the source code of this file.

Functions

 COMMAND_HANDLER (handle_oocd_trace_config_command)
 
 COMMAND_HANDLER (handle_oocd_trace_status_command)
 
 COMMAND_HANDLER (handle_oocd_trace_resync_command)
 
static int oocd_trace_init (struct etm_context *etm_ctx)
 
static int oocd_trace_read_memory (struct oocd_trace *oocd_trace, uint8_t *data, uint32_t address, uint32_t size)
 
static int oocd_trace_read_reg (struct oocd_trace *oocd_trace, int reg, uint32_t *value)
 
static int oocd_trace_read_trace (struct etm_context *etm_ctx)
 
static int oocd_trace_start_capture (struct etm_context *etm_ctx)
 
static trace_status_t oocd_trace_status (struct etm_context *etm_ctx)
 
static int oocd_trace_stop_capture (struct etm_context *etm_ctx)
 
static int oocd_trace_write_reg (struct oocd_trace *oocd_trace, int reg, uint32_t value)
 

Variables

static const struct
command_registration 
oocd_trace_all_command_handlers []
 
struct etm_capture_driver oocd_trace_capture_driver
 
static const struct
command_registration 
oocd_trace_command_handlers []
 

Function Documentation

static int oocd_trace_init ( struct etm_context etm_ctx)
static
static int oocd_trace_read_memory ( struct oocd_trace oocd_trace,
uint8_t *  data,
uint32_t  address,
uint32_t  size 
)
static
static int oocd_trace_read_reg ( struct oocd_trace oocd_trace,
int  reg,
uint32_t *  value 
)
static
static int oocd_trace_stop_capture ( struct etm_context etm_ctx)
static
static int oocd_trace_write_reg ( struct oocd_trace oocd_trace,
int  reg,
uint32_t  value 
)
static

Variable Documentation

const struct command_registration oocd_trace_all_command_handlers[]
static
Initial value:
= {
{
.name = "config",
.handler = handle_oocd_trace_config_command,
.mode = COMMAND_CONFIG,
.usage = "<target> <tty>",
},
{
.name = "status",
.handler = handle_oocd_trace_status_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "display OpenOCD + trace status",
},
{
.name = "resync",
.handler = handle_oocd_trace_resync_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "resync OpenOCD + trace capture clock",
},
}
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
Definition: command.h:222

Definition at line 375 of file oocd_trace.c.

struct etm_capture_driver oocd_trace_capture_driver
Initial value:
= {
.name = "oocd_trace",
.init = oocd_trace_init,
.status = oocd_trace_status,
.start_capture = oocd_trace_start_capture,
.stop_capture = oocd_trace_stop_capture,
.read_trace = oocd_trace_read_trace,
}
static int oocd_trace_start_capture(struct etm_context *etm_ctx)
Definition: oocd_trace.c:227
static int oocd_trace_init(struct etm_context *etm_ctx)
Definition: oocd_trace.c:100
static int oocd_trace_stop_capture(struct etm_context *etm_ctx)
Definition: oocd_trace.c:257
static trace_status_t oocd_trace_status(struct etm_context *etm_ctx)
Definition: oocd_trace.c:147
static const struct command_registration oocd_trace_command_handlers[]
Definition: oocd_trace.c:398
static int oocd_trace_read_trace(struct etm_context *etm_ctx)
Definition: oocd_trace.c:175

Definition at line 409 of file oocd_trace.c.

const struct command_registration oocd_trace_command_handlers[]
static
Initial value:
= {
{
.name = "oocd_trace",
.mode = COMMAND_ANY,
.help = "OpenOCD trace capture driver command group",
.usage = "",
},
}
static const struct command_registration oocd_trace_all_command_handlers[]
Definition: oocd_trace.c:375
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
Definition: command.h:222

Definition at line 398 of file oocd_trace.c.