[lttng-dev] how to get the sockaddr struct from its pointer in kernel tracing

Rui Han r.han at umiami.edu
Mon Jul 30 23:22:24 EDT 2012


Hi,

In the sys_connect and sys_bind kernel tracing, a pointer to the socdaddr
struct has been dumped. (i.e. the second argument in sys_bind: { cpu_id = 0
}, { fd = 39, umyaddr = 0x7FE18E3D0B80, addrlen = 0xC }). What if I want to
access the struct for the IP and port number related to the socket? Is
there an easy way to do this? Please give me some hints. Thank you very
much.

Regards,
Rui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20120730/89a7cc23/attachment.html>


More information about the lttng-dev mailing list