Re: Preparing for the next release: call for testing

2016-06-01 Thread Steve McIntyre
On Mon, May 30, 2016 at 07:07:47PM +0300, Dmitry V. Levin wrote: >Hi, > >There is quite enough good stuff accumulated in strace.git >since v4.11 so I think it's time to cut a new release. > >This is going to be the most tested strace released so far, >with code coverage about 70% on x86_64. > >Stil

[PATCH v3] tests: add xetrlimit.test

2016-06-01 Thread Fei Jie
* tests/xetrlimit.c: New file. * tests/xetrlimit.test: New test. * tests/.gitignore: Add xetrlimit. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add xetrlimit.test. --- tests/.gitignore | 1 + tests/Makefile.am| 2 ++ tests/xetrlimit.c| 76

[PATCH 3/5] tests: check decoding of netlink protocol

2016-06-01 Thread Fabien Siron
* tests/netlink_parsing.test: New test. * tests/netlink_parsing.c: New file. * tests/.gitignore: Add netlink_parsing. * tests/Makefile.am (check_PROGRAMS): Likewise. --- tests/.gitignore | 1 + tests/Makefile.am | 2 ++ tests/netlink_parsing.c| 89 +

[PATCH 2/5] Add a general netlink socket parser

2016-06-01 Thread Fabien Siron
This commit introduces a general socket netlink parser which prints the header and a string for the remaining part of the buffer. It doesn't handle all the netlink flags and types because the parser needs more information. It will be done soon. * net.c (get_family): New function. (do_msghdr): Call

[PATCH 5/5] Introduce getfdnlproto to obtain netlink protocol from fd

2016-06-01 Thread Fabien Siron
* defs.h (getfdnlproto): Add. * utils.c (getfdinode): New function. (getfdnlproto): Likewise. --- defs.h | 1 + util.c | 68 -- 2 files changed, 63 insertions(+), 6 deletions(-) diff --git a/defs.h b/defs.h index 06dba19..87ae043 10

[PATCH 4/5] Introduce get_sockaddr_by_inode_cached and get_sockaddr_by_inode

2016-06-01 Thread Fabien Siron
Because netlink parsing needs a way to get the netlink protocol and the socketutils.c file can only print the protocol, this commit adds an interface to get some socket information without printing it. * defs.h (get_sockaddr_by_inode_cached, get_sockaddr_by_inode): Add. * socketutils.c (cache_prin

[PATCH 1/5] Make getfdproto returns integer instead of string

2016-06-01 Thread Fabien Siron
This commit aims to avoid future string comparisons with getfdproto function in changing its return type. It also adapts the functions that use it. * defs.h (print_sockaddr_by_inode): Add. * socketutils.h (socket_protocols): New enum. * socketutils.c (print_sockaddr_by_inode): Move proto to int. *

[PATCH] Netlink socket parser

2016-06-01 Thread Fabien Siron
Hi everyone, Here is a first draft of a general netlink parser. It prints the netlink header and a string if there is more data than just the header. Cheers, -- Fabien Siron -- What NetFlow Analyzer can do for you? Moni