2 #define TRACE_SYSTEM skb
4 #if !defined(LTTNG_TRACE_SKB_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define LTTNG_TRACE_SKB_H
7 #include <probes/lttng-tracepoint-event.h>
8 #include <linux/skbuff.h>
9 #include <linux/netdevice.h>
10 #include <linux/version.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 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37))
31 LTTNG_TRACEPOINT_EVENT_MAP(consume_skb
,
35 TP_PROTO(struct sk_buff
*skb
),
40 ctf_integer_hex(void *, skbaddr
, skb
)
45 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32))
46 LTTNG_TRACEPOINT_EVENT(skb_copy_datagram_iovec
,
48 TP_PROTO(const struct sk_buff
*skb
, int len
),
53 ctf_integer_hex(const void *, skbaddr
, skb
)
54 ctf_integer(int, len
, len
)
59 #endif /* LTTNG_TRACE_SKB_H */
61 /* This part must be outside protection */
62 #include <probes/define_trace.h>
This page took 0.038576 seconds and 4 git commands to generate.