[PATCHv2] Print protocol name of socket descriptors with -yy option

Dmitry V. Levin ldv at altlinux.org
Thu Nov 27 23:55:32 UTC 2014


On Sat, Nov 22, 2014 at 07:03:33PM +0900, Masatake YAMATO wrote:
> When -yy option is specified other than inet socket
> were printed as <socket:[INODE]>.
> 
> e.g.
> 
>      # ./strace -e recvmsg -yy ping 127.0.0.1 > /dev/null
>      ...
>      recvmsg(3<socket:[43222052]>, ...

I've found a simple example that doesn't need extra capabilities:

$ strace -e sendto -yy ip l > /dev/null
sendto(3<socket:[23456789]>, ...

Merged, thanks.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20141128/f3693a51/attachment.bin>


More information about the Strace-devel mailing list