7.10.1. Setting a Trace on X after Y [and/or Z] tracepoint chain

To set a conditional Trace on X after Y [and/or Z] tracepoint:

  1. Select Debug ? Tracepoints ? Trace on X after Y [and/or Z]... from the Code window main menu to display the Trace on X after Y [and/or Z] dialog box. An example is shown in Figure 7.8.

    Figure 7.8. Trace on X after Y [and/or Z] dialog box

    Trace on X after Y [and/or Z] dialog box

    Note

    This dialog box is available only if you are using an ETM-based target.

  2. For the first tracepoint unit:

    1. Select the type of tracepoint type that you want to set, for example Trigger.

    2. Select the tracepoint comparison type, for example Data Access.

    3. Specify the location to test. This can be:

      • a line number in the source code, with or without a module name prefix, for example \TRACE\#56:0

      • the address of an instruction, variable, or data value, or a range of addresses

      • a function name, for example, Func_1

      • a function entry point, for example, Func_1\@entry.

      The tracepoint unit triggers if the PC equals the corresponding address, or falls within the specified address range.

    This tracepoint unit adds the hw_and:"then-next" command qualifier to the CLI command generated by RealView Debugger, and is the first tracepoint in the chain.

  3. For the second tracepoint unit:

    1. Select on of the following from the drop-down list:

      • After if you want the tracepoint to trigger after the specified event has occurred

      • Before if you want the tracepoint to trigger before the specified event has occurred.

    2. Choose the tracepoint type and address range in the same way as for the first tracepoint unit.

    This tracepoint unit adds the hw_and:"then-prev" command qualifier to the CLI command generated by RealView Debugger, and is the second tracepoint in the chain. If you selected Before, then it also adds the hw_not:then command qualifier.

  4. If you want to specify a third tracepoint unit:

    1. Select AND or OR from the first drop-down list.

    2. Choose the tracepoint type and address range in the same way as for the first tracepoint unit.

    This tracepoint unit adds the following command qualifiers to the CLI command generated by RealView Debugger, and is the third tracepoint in the chain:

    • hw_and:prev command qualifier, if AND is selected

    • hw_and:"then-h1" command qualifier, if OR is selected.

    • hw_not:then command qualifier, if Before is selected.

  5. Click OK to set the tracepoint as specified.

Example commands issued by the Trace on X after Y [and/or Z] dialog box:

trciexec,hw_and:"then-next",hw_out:"Tracepoint Type=Trigger" 0x8000
trciexec,hw_and:"then-prev" 0x8010
trciexec,hw_and:"then-h1" 0x8020
Copyright © 2006, 2007 ARM Limited. All rights reserved.ARM DUI 0322B
Non-Confidential