from etm.c:2019
static const struct command_registration etm_exec_command_handlers[] = {
{
.name = "tracemode",
.handler = handle_etm_tracemode_command,
.mode = COMMAND_EXEC,
.help = "configure/display trace mode",
.usage = "('none'|'data'|'address'|'all') "
"context_id_bits "
"['enable'|'disable'] "
"['enable'|'disable']",
},
{
.name = "info",
.handler = handle_etm_info_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "display info about the current target's ETM",
},
{
.name = "status",
.handler = handle_etm_status_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "display current target's ETM status",
},
{
.name = "start",
.handler = handle_etm_start_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "start ETM trace collection",
},
{
.name = "stop",
.handler = handle_etm_stop_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "stop ETM trace collection",
},
{
.name = "trigger_debug",
.handler = handle_etm_trigger_debug_command,
.mode = COMMAND_EXEC,
.help = "enable/disable debug entry on trigger",
.usage = "['enable'|'disable']",
},
{
.name = "analyze",
.handler = handle_etm_analyze_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "analyze collected ETM trace",
},
{
.name = "image",
.handler = handle_etm_image_command,
.mode = COMMAND_EXEC,
.help = "load image from file with optional offset",
.usage = "<file> [base address] [type]",
},
{
.name = "dump",
.handler = handle_etm_dump_command,
.mode = COMMAND_EXEC,
.help = "dump captured trace data to file",
.usage = "filename",
},
{
.name = "load",
.handler = handle_etm_load_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "load trace data for analysis <file>",
},
COMMAND_REGISTRATION_DONE
};