How can I trace the threads / systems calls in a process if the process id is known?
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.
strace(1)