What is Instrumentation Trace Macrocell (ITM)?

ITM provides a memory-mapped register interface to allow applications to write logging/event words to the optional external Trace Port Interface Unit (TPIU). ITM supports synchronization and generation of timestamp information packets.