mem: Move trace functionality from the CommMonitor to a probe