Multithreaded Strace Program

When I run strace in a multithreaded program, I get the following results:

[pid 14778] futex(0x7fd8082f266c, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7fd8082f2668, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1} <unfinished ...> [pid 14780] <... futex resumed> ) = 0 

Note that the arguments are on the same line as <unfinished...> , and the result is on the other line as <...resumed> . Without arguments related to their results, the usefulness of strace is reduced. Is it possible to print the results and arguments in one line when tracing a multi-threaded program?

+7
source share
1 answer

use strace -ff cmd 2> log.out

+9
source

All Articles