Add a tracepoint for the netlink_rule_change function.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
#include "zebra/zebra_pbr.h"
#include "zebra/zebra_errors.h"
#include "zebra/zebra_dplane.h"
+#include "zebra/zebra_trace.h"
/* definitions */
uint8_t proto = 0;
uint8_t ip_proto = 0;
+ frrtrace(3, frr_zebra, netlink_rule_change, h, ns_id, startup);
+
/* Basic validation followed by extracting attributes. */
if (h->nlmsg_type != RTM_NEWRULE && h->nlmsg_type != RTM_DELRULE)
return 0;
ctf_integer(uint32_t, startup, startup)
)
)
+
+TRACEPOINT_EVENT(
+ frr_zebra,
+ netlink_rule_change,
+ TP_ARGS(
+ struct nlmsghdr *, h,
+ ns_id_t, ns_id,
+ int, startup),
+ TP_FIELDS(
+ ctf_integer_hex(intptr_t, h, h)
+ ctf_integer(uint32_t, ns_id, ns_id)
+ ctf_integer(uint32_t, startup, startup)
+ )
+ )
+
#include <lttng/tracepoint-event.h>
#endif /* HAVE_LTTNG */