Linux 用于跟踪进程中的线程和系统调用的终端命令

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

如果进程 ID 已知,如何跟踪进程中的线程/系统调用?

对于系统调用,您可以使用 strace(1),它支持附加到实时进程。你只需要弄清楚 process/thread id.