[PATCH] Add decoding of sockets descriptor 'paths' for network calls.
Dmitry V. Levin
ldv at altlinux.org
Sun Feb 2 17:04:32 UTC 2014
On Sat, Feb 01, 2014 at 09:57:45AM -0800, Philippe Ombredanne wrote:
> @@ -353,7 +355,7 @@ pathtrace_match(struct tcb *tcp)
> * been handled is to just check arg[0].
> */
>
> - if (s->sys_flags & TRACE_FILE)
> + if (s->sys_flags & (TRACE_FILE | TRACE_NETWORK))
> return upathmatch(tcp, tcp->u_arg[0]);
>
> if (s->sys_flags & TRACE_DESC)
This TRACE_NETWORK case had to go along with TRACE_DESC, not TRACE_FILE.
Fixed.
> diff --git a/tests/Makefile.am b/tests/Makefile.am
> index d8262f0..20736e3 100644
> --- a/tests/Makefile.am
> +++ b/tests/Makefile.am
> @@ -4,7 +4,7 @@ AM_CFLAGS = $(WARN_CFLAGS)
>
> check_PROGRAMS = net-accept-connect set_ptracer_any sigaction
>
> -TESTS = ptrace_setoptions strace-f qual_syscall sigaction.sh stat net \
> +TESTS = ptrace_setoptions strace-f qual_syscall sigaction.sh stat net net-fd \
net-fd and net tests do not work well when run simultaneously.
I've made adjustments to the test suite to handle it properly.
Committed to master. Thanks,
--
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140202/e6785e32/attachment.bin>
More information about the Strace-devel
mailing list