Finding out where Syscalls are Called From: Stack Traces with Strace
One of the great strengths of strace as a debugging tool is that it shows you what a program is doing regardless of whether it was compiled with debug info or not. The downside of this is that you only see the program’s syscall. You can use this information to deduce what is happening in the program but you don’t see from where in the program those syscalls originate.
The good news is that if your program was compiled with debug info strace can actually show a stack trace for every syscall in yo...
Read more at abstractexpr.com