Search code examples
linuxstrace

How to see system call that executed in current time by process?


Linux utility "strace" show the list of syscall that started after run of strace. How I can see syscall that run in current moment by process? before start of strace.


Solution

  • proc offers some information about what the kernel is currently doing "for" a process
    /proc/${pid}/syscall /proc/${pid}/stack

    More information: