1 /* SPDX-License-Identifier: GPL-2.0-only */
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 <lttng/lttng-tracepoint-event.h>
9 #include <linux/skbuff.h>
10 #include <linux/netdevice.h>
13 * Tracepoint for free an sk_buff:
15 LTTNG_TRACEPOINT_EVENT_MAP(kfree_skb
,
19 TP_PROTO(struct sk_buff
*skb
, void *location
),
21 TP_ARGS(skb
, location
),
24 ctf_integer_hex(void *, skbaddr
, skb
)
25 ctf_integer_hex(void *, location
, location
)
26 ctf_integer_network(unsigned short, protocol
, skb
->protocol
)
30 LTTNG_TRACEPOINT_EVENT_MAP(consume_skb
,
34 TP_PROTO(struct sk_buff
*skb
),
39 ctf_integer_hex(void *, skbaddr
, skb
)
43 LTTNG_TRACEPOINT_EVENT(skb_copy_datagram_iovec
,
45 TP_PROTO(const struct sk_buff
*skb
, int len
),
50 ctf_integer_hex(const void *, skbaddr
, skb
)
51 ctf_integer(int, len
, len
)
55 #endif /* LTTNG_TRACE_SKB_H */
57 /* This part must be outside protection */
58 #include <lttng/define_trace.h>
This page took 0.030443 seconds and 4 git commands to generate.