3 * Copyright (C) 2020 NVIDIA Corporation
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * You should have received a copy of the GNU General Public License along
17 * with this program; see the file COPYING; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 #if !defined(__ZEBRA_TRACE_H__) || defined(TRACEPOINT_HEADER_MULTI_READ)
22 #define __ZEBRA_TRACE_H__
24 #include "lib/trace.h"
28 #undef TRACEPOINT_PROVIDER
29 #define TRACEPOINT_PROVIDER frr_zebra
31 #undef TRACEPOINT_INCLUDE
32 #define TRACEPOINT_INCLUDE "zebra/zebra_trace.h"
34 #include <lttng/tracepoint.h>
37 #include <lib/table.h>
39 #include <zebra/zebra_ns.h>
43 netlink_request_intf_addr
,
44 TP_ARGS(struct nlsock
*, netlink_cmd
,
47 uint32_t, filter_mask
),
49 ctf_integer_hex(intptr_t, netlink_cmd
, netlink_cmd
)
50 ctf_integer(int, family
, family
)
51 ctf_integer(int, type
, type
)
52 ctf_integer(uint32_t, filter_mask
, filter_mask
)
60 struct nlmsghdr
*, header
,
64 ctf_integer_hex(intptr_t, header
, header
)
65 ctf_integer(uint32_t, ns_id
, ns_id
)
66 ctf_integer(uint32_t, startup
, startup
)
72 netlink_nexthop_change
,
74 struct nlmsghdr
*, header
,
78 ctf_integer_hex(intptr_t, header
, header
)
79 ctf_integer(uint32_t, ns_id
, ns_id
)
80 ctf_integer(uint32_t, startup
, startup
)
86 netlink_interface_addr
,
88 struct nlmsghdr
*, header
,
92 ctf_integer_hex(intptr_t, header
, header
)
93 ctf_integer(uint32_t, ns_id
, ns_id
)
94 ctf_integer(uint32_t, startup
, startup
)
100 netlink_route_change_read_unicast
,
102 struct nlmsghdr
*, header
,
106 ctf_integer_hex(intptr_t, header
, header
)
107 ctf_integer(uint32_t, ns_id
, ns_id
)
108 ctf_integer(uint32_t, startup
, startup
)
116 struct nlmsghdr
*, header
,
120 ctf_integer_hex(intptr_t, header
, header
)
121 ctf_integer(uint32_t, ns_id
, ns_id
)
122 ctf_integer(uint32_t, startup
, startup
)
128 netlink_tc_qdisc_change
,
130 struct nlmsghdr
*, header
,
134 ctf_integer_hex(intptr_t, header
, header
)
135 ctf_integer(uint32_t, ns_id
, ns_id
)
136 ctf_integer(uint32_t, startup
, startup
)
142 netlink_tc_class_change
,
144 struct nlmsghdr
*, header
,
148 ctf_integer_hex(intptr_t, header
, header
)
149 ctf_integer(uint32_t, ns_id
, ns_id
)
150 ctf_integer(uint32_t, startup
, startup
)
157 netlink_tc_filter_change
,
159 struct nlmsghdr
*, header
,
163 ctf_integer_hex(intptr_t, header
, header
)
164 ctf_integer(uint32_t, ns_id
, ns_id
)
165 ctf_integer(uint32_t, startup
, startup
)
169 #include <lttng/tracepoint-event.h>
171 #endif /* HAVE_LTTNG */
173 #endif /* __ZEBRA_TRACE_H__ */