133 .handler = handle_trace_history_command,
135 .help =
"display trace history, clear history or set size",
136 .usage =
"['clear'|size]",
140 .handler = handle_trace_point_command,
142 .help =
"display trace points, clear list of trace points, "
143 "or add new tracepoint at address",
144 .usage =
"['clear'|address]",
152 .help =
"trace command group",
void command_print(struct command_invocation *cmd, const char *format,...)
#define CMD
Use this macro to access the command being handled, rather than accessing the variable directly.
#define CMD_ARGV
Use this macro to access the arguments for the command being handled, rather than accessing the varia...
#define CMD_ARGC
Use this macro to access the number of arguments for the command being handled, rather than accessing...
#define COMMAND_PARSE_NUMBER(type, in, out)
parses the string in into out as a type, or prints a command error and passes the error code to the c...
#define CMD_CTX
Use this macro to access the context of the command being handled, rather than accessing the variable...
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
static int register_commands(struct command_context *cmd_ctx, const char *cmd_prefix, const struct command_registration *cmds)
Register one or more commands in the specified context, as children of parent (or top-level commends,...
enum esirisc_reg_num number
#define LOG_DEBUG(expr ...)
struct trace * trace_info
struct trace_point * trace_points
uint32_t trace_history_pos
uint32_t trace_points_size
uint32_t trace_history_size
uint32_t num_trace_points
int trace_history_overflowed
struct target * get_current_target(struct command_context *cmd_ctx)
static const struct command_registration trace_command_handlers[]
static const struct command_registration trace_exec_command_handlers[]
int trace_point(struct target *target, uint32_t number)
int trace_register_commands(struct command_context *cmd_ctx)
COMMAND_HANDLER(handle_trace_point_command)