Custom strace, that logs the calling function but only logs syscalls that open or close a fd.
make all
TRACEOUT=trace.log LD_PRELOAD=./trace.so ./program-under-test --arg1 --arg2 ....
This does not log event or epoll fds