#include <dbg.hpp> // Loop through all trace events for (int i = 0; i < get_tev_qty(); i++) { tev_info_t tev; // Get the trace event information get_tev_info(i, &tev); // Display the address the event took place msg("Trace event occurred at %a\n", tev.ea); }