debug: add the end-of-trace marker and the module list to