Add trace for select and poll

This commit is contained in:
Jeremy Soller
2019-02-21 19:42:58 -07:00
parent 73c368ddab
commit 5690c6dcdf
2 changed files with 16 additions and 2 deletions
+9 -1
View File
@@ -22,5 +22,13 @@ pub extern "C" fn select(
exceptfds: *mut fd_set,
timeout: *mut timeval,
) -> c_int {
Sys::select(nfds, readfds, writefds, exceptfds, timeout)
trace_expr!(
Sys::select(nfds, readfds, writefds, exceptfds, timeout),
"select({}, {:p}, {:p}, {:p}, {:p})",
nfds,
readfds,
writefds,
exceptfds,
timeout
)
}