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:
Donald Sharp 2021-10-06 08:56:46 -04:00
parent 14ed061501
commit 3cee213500
2 changed files with 16 additions and 0 deletions

View File

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

View File

@ -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 */