Add a tracepoint for the netlink_nexthop_change function.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
#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
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)
)
)
+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 */