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

Go to the source code of this file.

Functions

 COMMAND_HANDLER (handle_etm_dummy_config_command)
 
static int etm_dummy_init (struct etm_context *etm_ctx)
 
static int etm_dummy_read_trace (struct etm_context *etm_ctx)
 
static int etm_dummy_start_capture (struct etm_context *etm_ctx)
 
static trace_status_t etm_dummy_status (struct etm_context *etm_ctx)
 
static int etm_dummy_stop_capture (struct etm_context *etm_ctx)
 

Variables

struct etm_capture_driver etm_dummy_capture_driver
 
static const struct command_registration etm_dummy_command_handlers []
 
static const struct command_registration etm_dummy_config_command_handlers []
 

Function Documentation

◆ COMMAND_HANDLER()

COMMAND_HANDLER ( handle_etm_dummy_config_command  )

◆ etm_dummy_init()

static int etm_dummy_init ( struct etm_context etm_ctx)
static

Definition at line 63 of file etm_dummy.c.

References ERROR_OK.

◆ etm_dummy_read_trace()

static int etm_dummy_read_trace ( struct etm_context etm_ctx)
static

Definition at line 73 of file etm_dummy.c.

References ERROR_OK.

◆ etm_dummy_start_capture()

static int etm_dummy_start_capture ( struct etm_context etm_ctx)
static

Definition at line 78 of file etm_dummy.c.

References ERROR_ETM_PORTMODE_NOT_SUPPORTED.

◆ etm_dummy_status()

static trace_status_t etm_dummy_status ( struct etm_context etm_ctx)
static

Definition at line 68 of file etm_dummy.c.

References TRACE_IDLE.

◆ etm_dummy_stop_capture()

static int etm_dummy_stop_capture ( struct etm_context etm_ctx)
static

Definition at line 83 of file etm_dummy.c.

Variable Documentation

◆ etm_dummy_capture_driver

struct etm_capture_driver etm_dummy_capture_driver
Initial value:
= {
.name = "dummy",
.init = etm_dummy_init,
.status = etm_dummy_status,
.start_capture = etm_dummy_start_capture,
.stop_capture = etm_dummy_stop_capture,
.read_trace = etm_dummy_read_trace,
}
static trace_status_t etm_dummy_status(struct etm_context *etm_ctx)
Definition: etm_dummy.c:68
static int etm_dummy_start_capture(struct etm_context *etm_ctx)
Definition: etm_dummy.c:78
static int etm_dummy_read_trace(struct etm_context *etm_ctx)
Definition: etm_dummy.c:73
static const struct command_registration etm_dummy_command_handlers[]
Definition: etm_dummy.c:52
static int etm_dummy_init(struct etm_context *etm_ctx)
Definition: etm_dummy.c:63
static int etm_dummy_stop_capture(struct etm_context *etm_ctx)
Definition: etm_dummy.c:83

Definition at line 83 of file etm_dummy.c.

◆ etm_dummy_command_handlers

const struct command_registration etm_dummy_command_handlers[]
static
Initial value:
= {
{
.name = "etm_dummy",
.mode = COMMAND_ANY,
.help = "Dummy ETM capture driver command group",
.usage = "",
},
}
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
Definition: command.h:253
@ COMMAND_ANY
Definition: command.h:42
static const struct command_registration etm_dummy_config_command_handlers[]
Definition: etm_dummy.c:43
const char * usage
a string listing the options and arguments, required or optional
Definition: command.h:241

Definition at line 15 of file etm_dummy.c.

◆ etm_dummy_config_command_handlers

const struct command_registration etm_dummy_config_command_handlers[]
static
Initial value:
= {
{
.name = "config",
.handler = handle_etm_dummy_config_command,
.mode = COMMAND_CONFIG,
.usage = "target",
},
}
@ COMMAND_CONFIG
Definition: command.h:41

Definition at line 15 of file etm_dummy.c.