[PATCH v2 2/7] Add a general netlink socket parser

Fabien Siron fabien.siron at epita.fr
Wed Jun 15 09:09:19 UTC 2016


Quoting Dmitry V. Levin (2016-06-14 12:00:30)
> On Mon, Jun 13, 2016 at 02:37:22PM +0000, Fabien Siron wrote:
> > +static void
> > +printsockbuf(struct tcb *tcp, int fd, long addr, long addrlen)
> > +{
> > +     int proto = getfdproto(tcp, fd);
> 
> This operation costs a few syscalls so it shouldn't be attempted
> unless show_fd_path > 1.

Do you actually mean that the netlink parser with sendto and recvfrom will
be available only with show_fd_path > 1 (so with the -yy option)?

Regards,
--
Fabien Siron




More information about the Strace-devel mailing list