blob: 336fe272889f59c5fe59cda70f0b5a1bff526c97 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Satoru Moriya296f7ea2011-06-17 11:58:39 +00002#undef TRACE_SYSTEM
3#define TRACE_SYSTEM udp
4
5#if !defined(_TRACE_UDP_H) || defined(TRACE_HEADER_MULTI_READ)
6#define _TRACE_UDP_H
7
8#include <linux/udp.h>
9#include <linux/tracepoint.h>
10
11TRACE_EVENT(udp_fail_queue_rcv_skb,
12
13 TP_PROTO(int rc, struct sock *sk),
14
15 TP_ARGS(rc, sk),
16
17 TP_STRUCT__entry(
18 __field(int, rc)
19 __field(__u16, lport)
20 ),
21
22 TP_fast_assign(
23 __entry->rc = rc;
24 __entry->lport = inet_sk(sk)->inet_num;
25 ),
26
27 TP_printk("rc=%d port=%hu", __entry->rc, __entry->lport)
28);
29
30#endif /* _TRACE_UDP_H */
31
32/* This part must be outside protection */
33#include <trace/define_trace.h>