zebra: Add netlink_request_intf_addr tracepoint

Add a tracepoint for the netlink_request_intf_addr function.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2021-10-06 08:34:35 -04:00
parent d42e61420a
commit 097ef2afd1
2 changed files with 20 additions and 0 deletions

View File

@ -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;

View File

@ -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,