xref: /openbmc/linux/include/trace/events/udp.h (revision f3539c12)
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM udp
3 
4 #if !defined(_TRACE_UDP_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_UDP_H
6 
7 #include <linux/udp.h>
8 #include <linux/tracepoint.h>
9 
10 TRACE_EVENT(udp_fail_queue_rcv_skb,
11 
12 	TP_PROTO(int rc, struct sock *sk),
13 
14 	TP_ARGS(rc, sk),
15 
16 	TP_STRUCT__entry(
17 		__field(int, rc)
18 		__field(__u16, lport)
19 	),
20 
21 	TP_fast_assign(
22 		__entry->rc = rc;
23 		__entry->lport = inet_sk(sk)->inet_num;
24 	),
25 
26 	TP_printk("rc=%d port=%hu", __entry->rc, __entry->lport)
27 );
28 
29 #endif /* _TRACE_UDP_H */
30 
31 /* This part must be outside protection */
32 #include <trace/define_trace.h>
33