I solved the tracing problem by:
- Preloading wrapper stub functions around the relevant system calls,
open()
,close()
andpoll()
- Logging the relevant information in a filename created on a ramdisk.
(The actual issue was a race, with the kernel's poll()
tring to access pollfd
memory and returning EFAULT
.)