On Wed, Jun 15, 2016 at 12:13:06PM +0300, Dmitry V. Levin wrote:
> On Wed, Jun 15, 2016 at 09:09:19AM +0000, Fabien Siron wrote:
> > 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)?
> 
> What's the alternative?

Sorry, I must've confused getfdproto with something else.
This adds just one getxattr syscall invocation, which is
probably OK to do in verbose(tcp) mode regardless of show_fd_path.


-- 
ldv

Attachment: pgp_6Mkk7RYys.pgp
Description: PGP signature

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to