fix: signal instrumentation for CentOS >= 4.18.0-147
[lttng-modules.git] / instrumentation / events / lttng-module / skb.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM skb
4
5 #if !defined(LTTNG_TRACE_SKB_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define LTTNG_TRACE_SKB_H
7
8 #include <probes/lttng-tracepoint-event.h>
9 #include <linux/skbuff.h>
10 #include <linux/netdevice.h>
11 #include <linux/version.h>
12
13 /*
14 * Tracepoint for free an sk_buff:
15 */
16 LTTNG_TRACEPOINT_EVENT_MAP(kfree_skb,
17
18 skb_kfree,
19
20 TP_PROTO(struct sk_buff *skb, void *location),
21
22 TP_ARGS(skb, location),
23
24 TP_FIELDS(
25 ctf_integer_hex(void *, skbaddr, skb)
26 ctf_integer_hex(void *, location, location)
27 ctf_integer_network(unsigned short, protocol, skb->protocol)
28 )
29 )
30
31 LTTNG_TRACEPOINT_EVENT_MAP(consume_skb,
32
33 skb_consume,
34
35 TP_PROTO(struct sk_buff *skb),
36
37 TP_ARGS(skb),
38
39 TP_FIELDS(
40 ctf_integer_hex(void *, skbaddr, skb)
41 )
42 )
43
44 LTTNG_TRACEPOINT_EVENT(skb_copy_datagram_iovec,
45
46 TP_PROTO(const struct sk_buff *skb, int len),
47
48 TP_ARGS(skb, len),
49
50 TP_FIELDS(
51 ctf_integer_hex(const void *, skbaddr, skb)
52 ctf_integer(int, len, len)
53 )
54 )
55
56 #endif /* LTTNG_TRACE_SKB_H */
57
58 /* This part must be outside protection */
59 #include <probes/define_trace.h>
This page took 0.036218 seconds and 4 git commands to generate.