使用ptrace监视syscall线程并发
My goal is to monitor all threads in the process to know each time to process invoke to write syscall for 3 seconds.
For that, I using ptrace and attach to all threads in a process , define a timeout for threads that not using syscall.
这是C代码
#include <stdi...