bg, pm, sv: implement and use transformed trace syscalls