mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 11:15:47 +00:00
zebra: Add netlink_interface_addr tracepoint
Add a tracepoint for netlink_interface_addr. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
1d80c20919
commit
14ed061501
@ -1379,6 +1379,8 @@ int netlink_interface_addr(struct nlmsghdr *h, ns_id_t ns_id, int startup)
|
|||||||
uint32_t metric = METRIC_MAX;
|
uint32_t metric = METRIC_MAX;
|
||||||
uint32_t kernel_flags = 0;
|
uint32_t kernel_flags = 0;
|
||||||
|
|
||||||
|
frrtrace(3, frr_zebra, netlink_interface_addr, h, ns_id, startup);
|
||||||
|
|
||||||
zns = zebra_ns_lookup(ns_id);
|
zns = zebra_ns_lookup(ns_id);
|
||||||
ifa = NLMSG_DATA(h);
|
ifa = NLMSG_DATA(h);
|
||||||
|
|
||||||
|
@ -81,6 +81,20 @@ TRACEPOINT_EVENT(
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
TRACEPOINT_EVENT(
|
||||||
|
frr_zebra,
|
||||||
|
netlink_interface_addr,
|
||||||
|
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>
|
#include <lttng/tracepoint-event.h>
|
||||||
|
|
||||||
#endif /* HAVE_LTTNG */
|
#endif /* HAVE_LTTNG */
|
||||||
|
Loading…
Reference in New Issue
Block a user