5.8 GenericTrace

GenericTrace is a flexible MTI plug-in that allows you to configure which events are traced, using a comma-separated list of trace sources. Output can be printed to a text file or to the console.

Specify the trace sources of interest as a parameter to the plug-in, for example:

./FVP_Base_AEMv8A \
--plugin $PVLIB_HOME/plugins/Linux64_GCC-5.4/GenericTrace.so \
-C TRACE.GenericTrace.trace-sources=EXCEPTION,EXCEPTION_RETURN

If no trace sources are specified, GenericTrace by default traces all the instructions.

To specify trace sources that match a pattern, use * or ? wildcards, for example:

TRACE.GenericTrace.trace-sources=CACHE_*

To trace a specific component only, specify the path to it, for example:

TRACE.GenericTrace.trace-sources=FVP_Base_AEMv8A.cluster0.cpu1.*

To trace specific fields from a trace source, use a field mask. For example to trace only the PC field of the INST trace source, use:

TRACE.GenericTrace.trace-sources=INST=0x1

The source code for this plug-in is provided as a programming example in %PVLIB_HOME%\examples\MTI\GenericTrace\source\.

This section contains the following subsection:
Non-ConfidentialPDF file icon PDF version100964_1180_00_en
Copyright © 2014–2019 Arm Limited or its affiliates. All rights reserved.