[PATCH] Add decoding of sockets descriptor 'paths' for network calls.

Philippe Ombredanne pombredanne at nexb.com
Sun Feb 2 20:31:48 UTC 2014


On Sun, Feb 2, 2014 at 6:04 PM, Dmitry V. Levin <ldv at altlinux.org> wrote:
> 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.

bummer ... how stupid of me... thanks for catching it

>> 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,

Thank you plus plus!

-- 
Philippe Ombredanne




More information about the Strace-devel mailing list