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
* 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
* 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 +
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
* 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
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
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.
*
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