2 #define TRACE_SYSTEM net
4 #if !defined(LTTNG_TRACE_NET_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define LTTNG_TRACE_NET_H
7 #include <probes/lttng-tracepoint-event.h>
8 #include <linux/skbuff.h>
9 #include <linux/netdevice.h>
11 #include <linux/version.h>
13 LTTNG_TRACEPOINT_EVENT(net_dev_xmit
,
15 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,40))
16 TP_PROTO(struct sk_buff
*skb
,
18 struct net_device
*dev
,
19 unsigned int skb_len
),
21 TP_ARGS(skb
, rc
, dev
, skb_len
),
23 TP_PROTO(struct sk_buff
*skb
,
30 ctf_integer_hex(void *, skbaddr
, skb
)
31 ctf_integer(int, rc
, rc
)
32 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,40))
33 ctf_integer(unsigned int, len
, skb_len
)
34 ctf_string(name
, dev
->name
)
36 ctf_integer(unsigned int, len
, skb
->len
)
37 ctf_string(name
, skb
->dev
->name
)
42 LTTNG_TRACEPOINT_EVENT_CLASS(net_dev_template
,
44 TP_PROTO(struct sk_buff
*skb
),
49 ctf_integer_hex(void *, skbaddr
, skb
)
50 ctf_integer(unsigned int, len
, skb
->len
)
51 ctf_string(name
, skb
->dev
->name
)
55 LTTNG_TRACEPOINT_EVENT_INSTANCE(net_dev_template
, net_dev_queue
,
57 TP_PROTO(struct sk_buff
*skb
),
62 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(net_dev_template
,
68 TP_PROTO(struct sk_buff
*skb
),
73 LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(net_dev_template
,
79 TP_PROTO(struct sk_buff
*skb
),
83 #endif /* LTTNG_TRACE_NET_H */
85 /* This part must be outside protection */
86 #include <probes/define_trace.h>
This page took 0.049085 seconds and 4 git commands to generate.