Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
udp.h
Go to the documentation of this file.
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 
17  __field(int, rc)
19  ),
20 
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>