Search code examples
linuxterminalsystem-callstrace

Linux terminal command for tracing threads and system calls in a process


How can I trace the threads / systems calls in a process if the process id is known?


Solution

  • For system calls, you can use strace(1) and it supports attaching to live processes. You just need to figure out the process/thread id.