Trace file access strace
Find files the process tries to open but cannot find
strace -e trace=openat -e trace=file myapp 2>&1 | grep 'ENOENT'
more strace
all 13 commands →
Trace network syscalls
strace -e trace=network,socket curl https://example.com 2>&1 | grep -v '^---'
Syscall count summary
strace -c -f -S time -p <pid>
Decode fds with timing
strace -yy -T -tt -e trace=%file -p <pid>
Stack trace per syscall
strace -k -e trace=openat -f -p <pid>
Syscall fault injection
strace -f -e inject=openat:error=ENOENT:when=3 -p <pid>