Linux 4.8.3
[linux/fpc-iii.git] / include / trace / events / udp.h
bloba664bb9409730ef872858900e9de461ba1d8ebe6
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM udp
4 #if !defined(_TRACE_UDP_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_UDP_H
7 #include <linux/udp.h>
8 #include <linux/tracepoint.h>
10 TRACE_EVENT(udp_fail_queue_rcv_skb,
12 TP_PROTO(int rc, struct sock *sk),
14 TP_ARGS(rc, sk),
16 TP_STRUCT__entry(
17 __field(int, rc)
18 __field(__u16, lport)
21 TP_fast_assign(
22 __entry->rc = rc;
23 __entry->lport = inet_sk(sk)->inet_num;
26 TP_printk("rc=%d port=%hu", __entry->rc, __entry->lport)
29 #endif /* _TRACE_UDP_H */
31 /* This part must be outside protection */
32 #include <trace/define_trace.h>