root/include/trace/events/udp.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* SPDX-License-Identifier: GPL-2.0 */
   2 #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 
  11 TRACE_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>

/* [<][>][^][v][top][bottom][index][help] */