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

Go to the source code of this file.

Functions

 COMMAND_HANDLER (handle_trace_history_command)
 
 COMMAND_HANDLER (handle_trace_point_command)
 
int trace_point (struct target *target, uint32_t number)
 
int trace_register_commands (struct command_context *cmd_ctx)
 

Variables

static const struct command_registration trace_command_handlers []
 
static const struct command_registration trace_exec_command_handlers []
 

Function Documentation

◆ COMMAND_HANDLER() [1/2]

◆ COMMAND_HANDLER() [2/2]

◆ trace_point()

◆ trace_register_commands()

int trace_register_commands ( struct command_context cmd_ctx)

Definition at line 159 of file trace.c.

References NULL, register_commands(), and trace_command_handlers.

Referenced by target_register_user_commands().

Variable Documentation

◆ trace_command_handlers

const struct command_registration trace_command_handlers[]
static
Initial value:
= {
{
.name = "trace",
.mode = COMMAND_EXEC,
.help = "trace 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_EXEC
Definition: command.h:40
static const struct command_registration trace_exec_command_handlers[]
Definition: trace.c:130

Definition at line 79 of file trace.c.

Referenced by trace_register_commands().

◆ trace_exec_command_handlers

const struct command_registration trace_exec_command_handlers[]
static
Initial value:
= {
{
.name = "history",
.handler = handle_trace_history_command,
.mode = COMMAND_EXEC,
.help = "display trace history, clear history or set size",
.usage = "['clear'|size]",
},
{
.name = "point",
.handler = handle_trace_point_command,
.mode = COMMAND_EXEC,
.help = "display trace points, clear list of trace points, "
"or add new tracepoint at address",
.usage = "['clear'|address]",
},
}

Definition at line 79 of file trace.c.