diff --git a/pages/linux/strace.md b/pages/linux/strace.md new file mode 100644 index 0000000000..29fd4b8ed6 --- /dev/null +++ b/pages/linux/strace.md @@ -0,0 +1,16 @@ +# strace + +> Troubleshooting tool for tracing system calls + +- Start tracing a specific PID + +`strace -p {{pid}}` + +- Trace a process and filter output by system call + +`strace -e {{system call name}} -p {{pid}}` + +- Start tracing and produce a summary of system calls at the end, instead of showing individual calls. + +`strace -c -p {{pid}}` +