Re: [PATCH v1 1/1] pathtrace.c: introduce pathtrace_match_set instead of pathtrace_match

2017-07-08 Thread Nikolay Marchuk
On 08.07.2017 03:45, Victor Krapivensky wrote: > pathtrace_match_set will be exposed to LuaJIT scripts. > > * defs.h (npaths_selected): Add a declaration. > (tracing_paths): Change macro body to an equivalent but more obvious one > (pathtrace_match): New macro. > * pathtrace.c (num_selected): Rena

[PATCH] pathtrace.c: introduce user-provided sets of paths

2017-07-08 Thread Nikolay Marchuk
* defs.h (struct path_set): Add a definition for a path set. (global_path_set): Add a declaration. (tracing_paths): Change macro body to use global path set variable. (pathtrace_select_set, pathtrace_match_set): Change declarations. (pathtrace_select, pathtrace_match): New macroses. * pathtrace.c (

Re: [PATCH v1 1/1] pathtrace.c: introduce pathtrace_match_set instead of pathtrace_match

2017-07-08 Thread Victor Krapivensky
On Sat, Jul 08, 2017 at 03:25:43PM +0700, Nikolay Marchuk wrote: > I don't think that it is necessary to rename static functions. These > functions don't change their behaviour a lot and are used only in > pathtrace.c. Only pathtrace_match renaming is useful for compatibility. > I have also implem

Re: [PATCH] pathtrace.c: introduce user-provided sets of paths

2017-07-08 Thread Victor Krapivensky
On Sat, Jul 08, 2017 at 03:28:56PM +0700, Nikolay Marchuk wrote: > * defs.h (struct path_set): Add a definition for a path set. > (global_path_set): Add a declaration. > (tracing_paths): Change macro body to use global path set variable. > (pathtrace_select_set, pathtrace_match_set): Change declara

[PATCH] tests: introduce TEST_NETLINK and TEST_NETLINK_ macros

2017-07-08 Thread JingPiao Chen
* tests/test_netlink.h: New file. * tests/Makefile.am (libtests_a_SOURCES): Add it. * tests/netlink_sock_diag.c: Remove "netlink.h" and include "test_netlink.h". (TEST_SOCK_DIAG): New macro. (test_odd_family_req, test_odd_family_msg, test_inet_diag_sockid): Use TEST_NETLINK macro. test_unix_diag_re