Re: [PATCH v5] Print ip and port associated with descriptor with -yy

2014-08-20 Thread Dmitry V. Levin
On Thu, Aug 21, 2014 at 02:53:46AM +0400, Dmitry V. Levin wrote: > On Mon, Aug 11, 2014 at 02:21:01PM +0530, zubin.mit...@gmail.com wrote: [...] > if (!inet_ntop(diag_msg->idiag_family, diag_msg->id.idiag_dst, > remote_addr_buf, size) || !remote_addr_buf[0]) >

Re: [PATCH v5] Print ip and port associated with descriptor with -yy

2014-08-20 Thread Dmitry V. Levin
On Thu, Aug 21, 2014 at 02:53:46AM +0400, Dmitry V. Levin wrote: [...] > > + else if (nlh->nlmsg_type == NLMSG_ERROR) > > + return -1; > > > I tested this patch on a x86_64 system with a fresh kernel. > It always returns NLMSG_ERROR. > I suppose somethi

Re: [PATCH v5] Print ip and port associated with descriptor with -yy

2014-08-20 Thread Dmitry V. Levin
On Mon, Aug 11, 2014 at 02:21:01PM +0530, zubin.mit...@gmail.com wrote: [...] > diff --git a/configure.ac b/configure.ac > index 9aeb3a6..21dcc0e 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -228,8 +228,11 @@ AC_CHECK_HEADERS(m4_normalize([ > inttypes.h > ioctls.h > linux

[GSOC 2014] testing multiarch

2014-08-20 Thread Edson Ticona
Hi The script for testing strace is qemu_multiarch_testing/start-tests.sh, for testing on the current architecture just run it (./start-tests.sh) if the current architecture supports multiple personalities it will test on all of them by building ltp for each one. For other architectures it will use

Re: [PATCH v5] Print absolute paths in printpathn when -yy is used

2014-08-20 Thread Dmitry V. Levin
On Mon, Aug 11, 2014 at 09:31:25AM +0530, Zubin Mithra wrote: [...] > Currently this is how I've implemented it(this is a portion of the diff > minus the usage/documentation/variable declaration/print_tracee_cwd > function for brevity). > > diff --git a/util.c b/util.c > index c78e962..57ea9fe 100

Re: [PATCH v5] Print absolute paths in printpathn when -yy is used

2014-08-20 Thread Dmitry V. Levin
Hi, On Mon, Aug 11, 2014 at 08:50:54AM +0530, Zubin Mithra wrote: > > When descriptors decoding is enabled, descriptors passed to *at syscalls > > are decoded anyway, so we could use this information to decode relative > > paths passed to *at syscalls. > > Sounds good -- however the sys_symlinkat