summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zebra/if_netlink.c3
-rw-r--r--zebra/zebra_trace.h17
2 files changed, 20 insertions, 0 deletions
diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c
index 9810ede192..9facf48e80 100644
--- a/zebra/if_netlink.c
+++ b/zebra/if_netlink.c
@@ -1122,6 +1122,9 @@ static int netlink_request_intf_addr(struct nlsock *netlink_cmd, int family,
char buf[256];
} req;
+ frrtrace(4, frr_zebra, netlink_request_intf_addr, netlink_cmd, family,
+ type, filter_mask);
+
/* Form the request, specifying filter (rtattr) if needed. */
memset(&req, 0, sizeof(req));
req.n.nlmsg_type = type;
diff --git a/zebra/zebra_trace.h b/zebra/zebra_trace.h
index 14be95dca4..3175c1a124 100644
--- a/zebra/zebra_trace.h
+++ b/zebra/zebra_trace.h
@@ -36,6 +36,23 @@
#include <lib/ns.h>
#include <lib/table.h>
+#include <zebra/zebra_ns.h>
+
+TRACEPOINT_EVENT(
+ frr_zebra,
+ netlink_request_intf_addr,
+ TP_ARGS(struct nlsock *, netlink_cmd,
+ int, family,
+ int, type,
+ uint32_t, filter_mask),
+ TP_FIELDS(
+ ctf_integer_hex(intptr_t, netlink_cmd, netlink_cmd)
+ ctf_integer(int, family, family)
+ ctf_integer(int, type, type)
+ ctf_integer(uint32_t, filter_mask, filter_mask)
+ )
+ )
+
TRACEPOINT_EVENT(
frr_zebra,
netlink_interface,