36 LOG_ERROR(
"target has no ETM defined, ETM dummy left unconfigured");
46 .handler = handle_etm_dummy_config_command,
56 .help =
"Dummy ETM capture driver command group",
Holds the interface to ARM cores.
static bool is_arm(struct arm *arm)
static struct arm * target_to_arm(struct target *target)
Convert target handle to generic ARM target state handle.
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 COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
#define ERROR_ETM_PORTMODE_NOT_SUPPORTED
static const struct command_registration etm_dummy_config_command_handlers[]
COMMAND_HANDLER(handle_etm_dummy_config_command)
struct etm_capture_driver etm_dummy_capture_driver
static trace_status_t etm_dummy_status(struct etm_context *etm_ctx)
static int etm_dummy_start_capture(struct etm_context *etm_ctx)
static int etm_dummy_read_trace(struct etm_context *etm_ctx)
static const struct command_registration etm_dummy_command_handlers[]
static int etm_dummy_init(struct etm_context *etm_ctx)
static int etm_dummy_stop_capture(struct etm_context *etm_ctx)
#define LOG_ERROR(expr ...)
Represents a generic ARM core, with standard application registers.
struct etm_context * etm
Handle for the Embedded Trace Module, if one is present.
const char * usage
a string listing the options and arguments, required or optional
void * capture_driver_priv
struct target * get_target(const char *id)
enum trace_status trace_status_t