Keil Logo

Trace Events

The section Trace Events enables tracing of special events. The window Event Counters shows the result.

Cortex-M Target Driver Setup - Trace Events

CPI: Cycles per Instruction A general counter for instruction cycle count estimation. This counter increments on each additional cycle required to execute a multi-cycle instruction. The counter also increments on each cycle of any instruction fetch stall. The first cycle of an instruction and those recorded by the LSU are not counted.

EXC: Exception Overhead The counter increments on each cycle associated with exception entry or return. That is, it counts the cycles associated with entry stacking, return unstacking, preemption, and other exception-related processes.

SLEEP: Sleep Cycles The counter increments on each cycle associated with power saving, whether initiated by a WFI or WFE instruction, or by the sleep-on-exit functionality.

LSU: Load Store Unit Cycles This counter increments on each additional cycle required to execute a multi-cycle load-store instruction. It does not count the first cycle required to execute any instruction.

FOLD: Folded Instructions The counter increments on any instruction that executes in zero cycles (for example, an IT instruction is folded and does not use any cycles).

EXCTRC: Exception Tracing The counter increments on exceptions, interrupt entries, and interrupt exits. The window Trace Exceptions shows the statistics.

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.