strace also works for threads. Use strace -f to bind all threads.
To bind only a specific thread, you first need to find its tid (thread id). Themes have a thread id, which is really a pid (process id)
Once you know the pid of the stream, use strace -p the_pid to bind this stream.
The pit of all threads in the process can be found in /proc/<pid>/task/ , or the current thread ID can be found by calling gettid() C.
nos
source share