On Mon, Dec 28, 2009 at 09:31:06AM -0800, Alexey Vladykin wrote: > Is there a place where I can get socket address in case fd corresponds to a > socket? I'd like to intercept read/write syscalls and print file names or > socket addresses for each read/write.
Problem with sockets is read & write aren't the only syscalls that let you send data. There's also the send*() and recv*() families of calls. In the case of {send,recv}{msg,to,from}(), that sockaddr can change (imagine a DNS server, e.g.). Your best bet might have been the IP provider, but then you don't get UNIX sockets or the generalized file-descriptor intercepts you seem to want. Dan _______________________________________________ dtrace-discuss mailing list dtrace-discuss@opensolaris.org