6.4 MTI examples

Example MTI plug-ins that show how to use MTI to extract and use trace information from models.

The following MTI examples are provided:

Table 6-5 MTI examples

Example Description
CallTrace

Displays a function call sequence by tracing the PC field of INST trace sources, then compares the output with values in a symbol table. See the readme for more information.

CountingCacheStats

Registers counters for cache-related trace sources, for example CACHE_READ_HIT. Prints the cache stats before terminating.

DCCTrace

Prints the value of DBGDTRxX_EL0 when data is written. Updates the TXFull bit in MDSCR to indicate the data was read. See the readme for more information.

GenericCounter

Registers a counter for trace sources. Prints the counter value for each INST trace source before terminating.

This example is also available as a pre-built library, see 5.7 GenericCounter.

GenericTrace

A flexible plug-in that traces one or more trace sources specified by the user. Prints the trace to a text file or to stdout.

This example is also available as a pre-built library, see 5.8 GenericTrace.

ListTraceSources

Displays either the trace sources provided by all trace components in the model, or just the trace components, to a text file or to stdout, without running the simulation. For more information, see readme.txt.

This example is also available as a pre-built library, see 5.9 ListTraceSources.

RunTimeParameterTest

Uses MTI to set runtime parameters.

SimpleTrace

Simple trace plug-in that prints a trace of the PC.

SoftwareTrigger

Traces SEMIHOSTING_PRECALL trace events, intercepts semihosting calls, and prints out register information. For more information, see the readme.

TraceOnBreak

Similar to the SimpleTrace example, but prints the PC value only when a breakpoint is hit.

Non-ConfidentialPDF file icon PDF version100964_1180_00_en
Copyright © 2014–2019 Arm Limited or its affiliates. All rights reserved.