1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright (C) 2020 NVIDIA Corporation
8 #if !defined(__ZEBRA_TRACE_H__) || defined(TRACEPOINT_HEADER_MULTI_READ)
9 #define __ZEBRA_TRACE_H__
11 #include "lib/trace.h"
15 #undef TRACEPOINT_PROVIDER
16 #define TRACEPOINT_PROVIDER frr_zebra
18 #undef TRACEPOINT_INCLUDE
19 #define TRACEPOINT_INCLUDE "zebra/zebra_trace.h"
21 #include <lttng/tracepoint.h>
24 #include <lib/table.h>
26 #include <zebra/zebra_ns.h>
30 netlink_request_intf_addr
,
31 TP_ARGS(struct nlsock
*, netlink_cmd
,
34 uint32_t, filter_mask
),
36 ctf_integer_hex(intptr_t, netlink_cmd
, netlink_cmd
)
37 ctf_integer(int, family
, family
)
38 ctf_integer(int, type
, type
)
39 ctf_integer(uint32_t, filter_mask
, filter_mask
)
47 struct nlmsghdr
*, header
,
51 ctf_integer_hex(intptr_t, header
, header
)
52 ctf_integer(uint32_t, ns_id
, ns_id
)
53 ctf_integer(uint32_t, startup
, startup
)
59 netlink_nexthop_change
,
61 struct nlmsghdr
*, header
,
65 ctf_integer_hex(intptr_t, header
, header
)
66 ctf_integer(uint32_t, ns_id
, ns_id
)
67 ctf_integer(uint32_t, startup
, startup
)
73 netlink_interface_addr
,
75 struct nlmsghdr
*, header
,
79 ctf_integer_hex(intptr_t, header
, header
)
80 ctf_integer(uint32_t, ns_id
, ns_id
)
81 ctf_integer(uint32_t, startup
, startup
)
87 netlink_route_change_read_unicast
,
89 struct nlmsghdr
*, header
,
93 ctf_integer_hex(intptr_t, header
, header
)
94 ctf_integer(uint32_t, ns_id
, ns_id
)
95 ctf_integer(uint32_t, startup
, startup
)
103 struct nlmsghdr
*, header
,
107 ctf_integer_hex(intptr_t, header
, header
)
108 ctf_integer(uint32_t, ns_id
, ns_id
)
109 ctf_integer(uint32_t, startup
, startup
)
115 netlink_tc_qdisc_change
,
117 struct nlmsghdr
*, header
,
121 ctf_integer_hex(intptr_t, header
, header
)
122 ctf_integer(uint32_t, ns_id
, ns_id
)
123 ctf_integer(uint32_t, startup
, startup
)
129 netlink_tc_class_change
,
131 struct nlmsghdr
*, header
,
135 ctf_integer_hex(intptr_t, header
, header
)
136 ctf_integer(uint32_t, ns_id
, ns_id
)
137 ctf_integer(uint32_t, startup
, startup
)
144 netlink_tc_filter_change
,
146 struct nlmsghdr
*, header
,
150 ctf_integer_hex(intptr_t, header
, header
)
151 ctf_integer(uint32_t, ns_id
, ns_id
)
152 ctf_integer(uint32_t, startup
, startup
)
156 #include <lttng/tracepoint-event.h>
158 #endif /* HAVE_LTTNG */
160 #endif /* __ZEBRA_TRACE_H__ */