diff options
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/rt_netlink.c | 3 | ||||
-rw-r--r-- | zebra/zebra_trace.h | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index f91b2f889..686815da3 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -79,6 +79,7 @@ #include "zebra/zebra_vxlan.h" #include "zebra/zebra_errors.h" #include "zebra/zebra_evpn_mh.h" +#include "zebra/zebra_trace.h" #ifndef AF_MPLS #define AF_MPLS 28 @@ -2906,6 +2907,8 @@ int netlink_nexthop_change(struct nlmsghdr *h, ns_id_t ns_id, int startup) uint8_t grp_count = 0; struct rtattr *tb[NHA_MAX + 1] = {}; + frrtrace(3, frr_zebra, netlink_nexthop_change, h, ns_id, startup); + nhm = NLMSG_DATA(h); if (ns_id) diff --git a/zebra/zebra_trace.h b/zebra/zebra_trace.h index 3175c1a12..d5c8287f0 100644 --- a/zebra/zebra_trace.h +++ b/zebra/zebra_trace.h @@ -67,6 +67,20 @@ TRACEPOINT_EVENT( ) ) +TRACEPOINT_EVENT( + frr_zebra, + netlink_nexthop_change, + 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 */ |