7.6. Setting a tracepoint that activates after a number of passes

For ETM-based targets, you can delay the activation of a tracepoint until it has been passed over a specific number of times.

To delay the activation of a tracepoint:

  1. In the source or disassembly view, right-click on the gray margin to the left of the required location to display context menu.

  2. Select Create Tracepoint... from the context menu to display the Create Tracepoint dialog box. Figure 7.4 shows an example:

    Figure 7.4. Create Tracepoint dialog box

    Create Tracepoint dialog box

  3. Select the required tracepoint type from the first drop-down list.

  4. Select the required tracepoint comparison type from the second drop-down list. The tracepoint comparison type determines which of the remaining parameters you can set.

  5. Specify the address or address range to be traced as appropriate:

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

    • an address or address range

    • a function name, for example, Func_1

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

  6. Enter the required number of passes into the Pass text box. If you do not set this item, it defaults to zero (0), and the tracepoint is activated on every pass.

    Note

    If you specify a range in the when location field, then the ETM counters are decremented on every cycle executed in that range. ETM counters can be in the range 0 to 65535.

  7. Set any other parameters as required.

  8. Click OK to set the tracepoint and close the Create Tracepoint dialog box.

See also:

Copyright © 2006-2010 ARM Limited. All rights reserved.ARM DUI 0322F
Non-ConfidentialID102410