mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 00:41:20 +00:00
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:
parent
d42e61420a
commit
097ef2afd1
@ -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;
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user