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

Rui Han r.han at umiami.edu
Tue Jul 31 13:33:44 EDT 2012


Great! Got it. Thank you.

Rui

On Tue, Jul 31, 2012 at 1:26 PM, Mathieu Desnoyers <
mathieu.desnoyers at efficios.com> wrote:

> By close integration, I mean that we would have to change the in-kernel
> structure declarations and wrap them into macros, so we can re-use those
> headers within the TRACE_EVENT code to serialize the events and express
> the event metadata.
>
> Mathieu
>
> * Rui Han (r.han at umiami.edu) wrote:
> > Hi Mathieu,
> >
> > Thank you very much for your reply. I'll look into that solution. By
> "close
> > integration", do you mean minimum overhead? Could you be more
> > specific about the issue that prevent it from being implemented in
> current
> > version. So that I can tell whether I am be able to do it or not within
> > time constrain.
> >
> > Regards,
> > Rui
> >
> > On Tue, Jul 31, 2012 at 12:29 PM, Mathieu Desnoyers <
> > mathieu.desnoyers at efficios.com> wrote:
> >
> > > * Rui Han (r.han at umiami.edu) wrote:
> > > > 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.
> > >
> > > current, none.
> > >
> > > A "quick" way to do this might be to add a tracepoint into these system
> > > calls.
> > >
> > > Eventually, we might look into supporting writing complex data
> > > structures into lttng-modules, but this would require close integration
> > > with the Linux kernel sources.
> > >
> > > Thanks,
> > >
> > > Mathieu
> > >
> > > >
> > > > Regards,
> > > > Rui
> > >
> > > > _______________________________________________
> > > > lttng-dev mailing list
> > > > lttng-dev at lists.lttng.org
> > > > http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> > >
> > >
> > > --
> > > Mathieu Desnoyers
> > > Operating System Efficiency R&D Consultant
> > > EfficiOS Inc.
> > > http://www.efficios.com
> > >
>
> --
> Mathieu Desnoyers
> Operating System Efficiency R&D Consultant
> EfficiOS Inc.
> http://www.efficios.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20120731/2c9b568b/attachment-0001.html>


More information about the lttng-dev mailing list