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

Dmity P. picture Dmity P. · Mar 8, 2017 · Viewed 8.7k times · Source

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.

Answer

Catalin picture Catalin · Aug 18, 2017

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

More information: