| |||
| Home > RealView Debugger Commands > Alphabetical command reference > ANALYZER | |||
Controls the configuration of the trace logic analyzer.
{[ANALYZERable] | [,disable]},en
{[ANALYZER_properties] | [edit_log_phys] | [,mapgers] | [,trigect] | [,connize]},set_s
{[,clear] | [ANALYZERriggers]},clear_t
{[ANALYZERore] | [,befnd] | [,arouer] | [,aft_on_trigger] | [,stop_on_trigger]},continue
{ ANALYZERtop | ,full_sgnore | ,full_iing},full_r
{ ANALYZERll | ,collect_alow},collect_f
{ ANALYZERonly | ,dataonly | ,addrtrace},full
{ ANALYZERonnect},disc
{ ANALYZERff | ,auto_o_instronly | ,autoataonly | ,auto_d_both},auto
{ ANALYZERontinuous | ,mode_crigger},mode_t
where:
disableDisable tracing.
enableEnable tracing.
edit_propertiesWhen connecting to a target other than an ARM® processor with Embedded Trace Macrocell™ (ETM™), this is the equivalent of the Configure Analyzer Properties... option on the Analysis window Edit menu.
To configure an ETM use ETM_CONFIG.
map_log_physThe equivalent of the Physical to Logical Address Mapping... option on the Analysis window Edit menu. Not available with an ARM ETM-enabled processor.
triggersThe equivalent of the Set/Edit Event Triggers option on the Analysis window Edit menu. Not available with an ARM ETM-enabled processor.
connectThe equivalent of the Connect Analyzer option on the Analysis window Edit menu. Not available with an ARM ETM-enabled processor because an ARM ETM is automatically connected.
set_size=(n)Enables you to set the trace buffer size.The equivalent of the Set Trace Buffer Size... option on the Analysis window Edit menu. If the value is specified in the command it is used, otherwise display the Set Trace Buffer Size dialog and set the value from that.
clearClear the captured trace buffer.
clear_triggersClear any triggers set using an ANALYZER,triggers command. Not available with an ARM ETM-enabled processor.
beforeCapture data before the trigger, that is, 100% before, 0% after.
aroundCapture data around the trigger, that is, 50% before, 50% after.
afterCapture data after the trigger, that is, 0% before, 100% after.
stop_on_triggerStop the processor when a trigger point is reached. This option is only applicable to the ARM ETM.
continue_on_triggerContinue program execution across trigger points. This option is only applicable to the ARM ETM.
full_stopStop the processor and put it into debug state when the trace buffer is full. Not available with an ARM ETM-enabled processor.
full_ignoreStop collecting trace information when the trace buffer is full, but let the processor continue running. Not available with an ARM ETM-enabled processor.
full_ringContinue collecting trace information when the trace buffer fills by discarding the oldest trace information, treating the buffer as a ring. This is the only option available for the ARM ETM.
collect_allStore all trace the information generated. Not available with an ARM ETM-enabled processor.
collect_flowStore only flow-control trace information. Cannot be changed for an ARM ETM-enabled processor because normal ETM operation is a variant of this that includes some additional synchronization points.
dataonlyTrace only data bus transfers.
addronlyTrace only address bus transfers.
fulltraceTrace both data and address bus transfers.
disconnectDisconnects the Analysis window.
auto_offDisables automatic tracing.
auto_instronlyWhen no tracepoints are set, captures trace information only for executed instructions.
auto_dataonlyWhen no tracepoints are set, captures trace information only for data accesses. This is supported only by ETMv3.
auto_bothWhen no tracepoints are set, captures trace information for both executed instructions and data accesses.
The ANALYZER command, and the ETM_CONFIG command, enables you to control the configuration of your trace capture analyzer.
Because trace analyzer capabilities and implementations vary, some of the qualifiers provided by the ANALYZER command are not available on some of the trace targets supported by RealView Debugger. Operation of the ARM ETM is controlled in more depth with the ETM_CONFIG command.
The options are split into several groups:
Options config, edit_properties, map_log_phys, triggers,
and set_size display a GUI dialog that enables
you to configure the associated trace component.
These options are not available when running in command line mode.
The clear option acts on the trace capture buffer.
Options before, around, after, clear_triggers, stop_on_trigger,
and continue_on_trigger enable you to control
the relative location of the trace trigger within the trace buffer
and the effect of the trigger. See the TRACE, TRACEINSTREXEC, TRACEDATAACCESS and
similar commands for control of tracepoint location in target memory.
Options full_stop, full_ignore,
and full_ring enable control over the behavior of
the trace buffer when it becomes full.
Options collect_all and collect_flow enable
control of the trace data collection strategy. Collecting all bus
transactions provides the benefit of following everything that is
happening without recourse to external information, but conversely
requires a very high bandwidth trace port. Collecting only bus transactions
that change the flow of control provides most of the important information
if you also have access to an accurate memory image.
The following examples show how to use ANALYZER:
ANALYZER,set_size=500Set the trace buffer size to 500 records, if this action is supported by the logic analyzer you are using.
ANALYZER,full_ring,aroundSet the logic analyzer to capture trace information around the defined trigger point, using the trace buffer in ring mode so that it cannot overflow.
the following in the RealView Debugger Trace User Guide:
the Embedded Trace Macrocell Specification.