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 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
32 LTTNG_TRACEPOINT_EVENT_MAP(consume_skb
,
36 TP_PROTO(struct sk_buff
*skb
),
41 ctf_integer_hex(void *, skbaddr
, skb
)
46 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32))
47 LTTNG_TRACEPOINT_EVENT(skb_copy_datagram_iovec
,
49 TP_PROTO(const struct sk_buff
*skb
, int len
),
54 ctf_integer_hex(const void *, skbaddr
, skb
)
55 ctf_integer(int, len
, len
)
60 #endif /* LTTNG_TRACE_SKB_H */
62 /* This part must be outside protection */
63 #include <probes/define_trace.h>
This page took 0.032175 seconds and 4 git commands to generate.