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
* 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 (
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
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
* 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