mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 11:15:47 +00:00
zebra: Add tracepoint for netlink_route_change_read_unicast
Add a tracepoint to zebra for the netlink_route_change_read_unicast functionality. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
14ed061501
commit
3cee213500
@ -701,6 +701,9 @@ static int netlink_route_change_read_unicast(struct nlmsghdr *h, ns_id_t ns_id,
|
||||
void *src = NULL; /* IPv6 srcdest source prefix */
|
||||
enum blackhole_type bh_type = BLACKHOLE_UNSPEC;
|
||||
|
||||
frrtrace(3, frr_zebra, netlink_route_change_read_unicast, h, ns_id,
|
||||
startup);
|
||||
|
||||
rtm = NLMSG_DATA(h);
|
||||
|
||||
if (startup && h->nlmsg_type != RTM_NEWROUTE)
|
||||
|
@ -95,6 +95,19 @@ TRACEPOINT_EVENT(
|
||||
)
|
||||
)
|
||||
|
||||
TRACEPOINT_EVENT(
|
||||
frr_zebra,
|
||||
netlink_route_change_read_unicast,
|
||||
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user