[PATCH v2 8/8] tests: check decoding of rtnetlink link messages

2017-07-31 Thread JingPiao Chen
* tests/netlink_route.c: Include . (TEST_NL_ROUTE): New macro. (test_rtnl_link): New function. (main): Use it. Co-authored-by: Fabien Siron --- tests/netlink_route.c | 61 +++ 1 file changed, 61 insertions(+) diff --git a/tests/netlink_route.c b/t

[PATCH v2 7/8] netlink: add a basic rtnetlink parser of link messages

2017-07-31 Thread JingPiao Chen
* netlink_route.h: New file. * rtnl_link.c: Likewise. * Makefile.am (strace_SOURCES): Add them. * defs.h (arp_hardware_types, iffflags): New xlat prototypes. * netlink_route.c: Include "netlink_route.h" and . (netlink_route_decoder_t): New typedef. (route_decoders): New array. (decode_netlink_route

[PATCH v2 4/8] netlink: introduce family specific decoder of NETLINK_ROUTE

2017-07-31 Thread JingPiao Chen
* netlink_route.c: New file. * Makefile.am (strace_SOURCES): Add it. * defs.h (decode_netlink_route): New prototype. * netlink.c (netlink_decoders): Add NETLINK_ROUTE. Co-authored-by: Fabien Siron --- Makefile.am | 1 + defs.h | 1 + netlink.c | 1 + netlink_route.c | 62 ++

[PATCH RESEND 3/8] tests: check print NETLINK_KOBJECT_UEVENT buffer in string

2017-07-31 Thread JingPiao Chen
* tests/netlink_kobject_uevent.c: New file. * tests/gen_tests.in (netlink_kobject_uevent): New entry. * tests/pure_executables.list: Add netlink_kobject_uevent. * tests/.gitignore: Likewise. --- sent a week ago. tests/.gitignore | 1 + tests/gen_tests.in | 1 + tests/

[PATCH RESEND 1/8] netlink: call get_fd_nl_family before decode nlmsghdr

2017-07-31 Thread JingPiao Chen
Prepare for NETLINK_KOBJECT_UEVENT decode. The messages of NETLINK_KOBJECT_UEVENT do not contain nlmsghdr. * netlink.c (NL_FAMILY_*): Remove enum. (get_fd_nl_family): Replace NL_FAMILY_ERROR with -1. (decode_nlmsg_type): Correct the comment. Skip family specific type decoders for type < NLMSG_MIN_

[PATCH RESEND 2/8] netlink: print all NETLINK_KOBJECT_UEVENT buffer in string

2017-07-31 Thread JingPiao Chen
* netlink.c (decode_netlink): Call printstrn when family == NETLINK_KOBJECT_UEVENT. --- sent a week ago. netlink.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/netlink.c b/netlink.c index a853fbd..aaa3e07 100644 --- a/netlink.c +++ b/netlink.c @@ -438,6 +438,12 @@ decode_netlink(str

[PATCH v2 6/8] Move nl_route_types definition from netlink.c to netlink_route.c

2017-07-31 Thread JingPiao Chen
The side effect of #include "xlat/nl_route_types.h" is RTM_* constants properly defined in that header file. While netlink.c does not use these constants itself, netlink_route.c is going to need them soon. * defs.h (nl_route_types): New xlat prototype. * netlink.c: Move inclusion of "xlat/nl_route

[PATCH v2 5/8] tests: check netlink family specific decoder of NETLINK_ROUTE

2017-07-31 Thread JingPiao Chen
* tests/netlink_route.c: Include , include "test_netlink.h" instead of "netlink.h". (test_rtnl_unspec): New function. (main): Use it. Co-authored-by: Fabien Siron --- tests/netlink_route.c | 54 ++- 1 file changed, 53 insertions(+), 1 deletion(-)

Edgar Kaziakhemdov's GSoC status report - #9 of 13

2017-07-31 Thread Edgar Kaziakhmedov
Project: Advanced syscall information tool Accomplishment: 1) Reduced complexity of main number of existing algorithms in arch_list methods 2) Introduced push-back interface to simplify work with syscall list(similarly to arch_service). 3) Fixed some other issues. Unfortunately, help still is in

Re: [PATCH 2/2] asinfo: Introduce static query tool asinfo

2017-07-31 Thread Edgar Kaziakhmedov
On Mon, 31 Jul 2017 06:19:23 +0200 Eugene Syromiatnikov wrote: > On Fri, Jul 28, 2017 at 06:43:25PM +0300, Edgar Kaziakhmedov wrote: > > From: Edgar Kaziakhmedov > > > > The 1.2 version of asinfo tool. The asinfo tool has the > This version is not mentioned anywhere else. > > > following archi