ipfilter: New DT5 DTrace macro

Define a new DT5 DTrace macro used to call DTRACE_PROBE5, for use with
SDT probes with five arguments.

MFC after:	3 days
This commit is contained in:
Cy Schubert 2021-10-04 21:18:42 -07:00
parent fca9c3871d
commit ca8bf28e1e

View File

@ -1229,12 +1229,15 @@ typedef struct tcpiphdr tcpiphdr_t;
DTRACE_PROBE3(_n,_a,_b,_c,_d,_e,_f)
# define DT4(_n,_a,_b,_c,_d,_e,_f,_g,_h) \
DTRACE_PROBE4(_n,_a,_b,_c,_d,_e,_f,_g,_h)
# define DT5(_n,_a,_b,_c,_d,_e,_f,_g,_h,_i,_j) \
DTRACE_PROBE5(_n,_a,_b,_c,_d,_e,_f,_g,_h,_i,_j)
#else
# define DT(_n)
# define DT1(_n,_a,_b)
# define DT2(_n,_a,_b,_c,_d)
# define DT3(_n,_a,_b,_c,_d,_e,_f)
# define DT4(_n,_a,_b,_c,_d,_e,_f,_g,_h)
# define DT5(_n,_a,_b,_c,_d,_e,_f,_g,_h,_i,_j)
#endif
struct ip6_routing {