1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM skb
5 #if !defined(LTTNG_TRACE_SKB_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define LTTNG_TRACE_SKB_H
8 #include <probes/lttng-tracepoint-event.h>
9 #include <linux/skbuff.h>
10 #include <linux/netdevice.h>
11 #include <linux/version.h>
14 * Tracepoint for free an sk_buff:
16 LTTNG_TRACEPOINT_EVENT_MAP(kfree_skb
,
20 TP_PROTO(struct sk_buff
*skb
, void *location
),
22 TP_ARGS(skb
, location
),
25 ctf_integer_hex(void *, skbaddr
, skb
)
26 ctf_integer_hex(void *, location
, location
)
27 ctf_integer_network(unsigned short, protocol
, skb
->protocol
)
31 LTTNG_TRACEPOINT_EVENT_MAP(consume_skb
,
35 TP_PROTO(struct sk_buff
*skb
),
40 ctf_integer_hex(void *, skbaddr
, skb
)
44 LTTNG_TRACEPOINT_EVENT(skb_copy_datagram_iovec
,
46 TP_PROTO(const struct sk_buff
*skb
, int len
),
51 ctf_integer_hex(const void *, skbaddr
, skb
)
52 ctf_integer(int, len
, len
)
56 #endif /* LTTNG_TRACE_SKB_H */
58 /* This part must be outside protection */
59 #include <probes/define_trace.h>
This page took 0.031803 seconds and 4 git commands to generate.