Cleanup: Remove toplevel directory from include search path
[lttng-modules.git] / include / 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
3b4aafcb 8#include <lttng/tracepoint-event.h>
b283666f
PW
9#include <linux/skbuff.h>
10#include <linux/netdevice.h>
7c68b363 11#include <linux/version.h>
b283666f
PW
12
13/*
14 * Tracepoint for free an sk_buff:
15 */
3bc29f0a 16LTTNG_TRACEPOINT_EVENT_MAP(kfree_skb,
9cf29d3e
MD
17
18 skb_kfree,
b283666f
PW
19
20 TP_PROTO(struct sk_buff *skb, void *location),
21
22 TP_ARGS(skb, location),
23
f127e61e 24 TP_FIELDS(
fa91fcac
MD
25 ctf_integer_hex(void *, skbaddr, skb)
26 ctf_integer_hex(void *, location, location)
f127e61e
MD
27 ctf_integer_network(unsigned short, protocol, skb->protocol)
28 )
b283666f
PW
29)
30
3bc29f0a 31LTTNG_TRACEPOINT_EVENT_MAP(consume_skb,
9cf29d3e
MD
32
33 skb_consume,
b283666f
PW
34
35 TP_PROTO(struct sk_buff *skb),
36
37 TP_ARGS(skb),
38
f127e61e 39 TP_FIELDS(
fa91fcac 40 ctf_integer_hex(void *, skbaddr, skb)
f127e61e 41 )
b283666f
PW
42)
43
3bc29f0a 44LTTNG_TRACEPOINT_EVENT(skb_copy_datagram_iovec,
b283666f
PW
45
46 TP_PROTO(const struct sk_buff *skb, int len),
47
48 TP_ARGS(skb, len),
49
f127e61e 50 TP_FIELDS(
fa91fcac 51 ctf_integer_hex(const void *, skbaddr, skb)
f127e61e
MD
52 ctf_integer(int, len, len)
53 )
b283666f
PW
54)
55
3bc29f0a 56#endif /* LTTNG_TRACE_SKB_H */
b283666f
PW
57
58/* This part must be outside protection */
3b4aafcb 59#include <lttng/define_trace.h>
This page took 0.038132 seconds and 4 git commands to generate.