use tdm_dump_enable variable to check if dump needed