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