The ETM detects the
MCR instruction that changes
the context ID, and traces the appropriate number of bytes as a
context ID packet instead of a normal data packet. As a result,
if context ID tracing is enabled, an
that changes the context ID does not have its data traced separately.
Because the ETM has a secure and a nonsecure context ID, the ETM outputs a context ID when switching between secure and nonsecure states.