Program tracing using qemu in system mode