What instructions does qemu trace?
问题 I wrote the following piece of code that steps through /bin/ls and counts its instructions: #include <stdio.h> #include <sys/ptrace.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include <sys/user.h> #include <sys/reg.h> #include <sys/syscall.h> int main() { pid_t child; child = fork(); //create child if(child == 0) { ptrace(PTRACE_TRACEME, 0, NULL, NULL); char* child_argv[] = {"/bin/ls", NULL}; execv("/bin/ls", child_argv); } else { int status; long long ins_count = 0;