udp.h 593 B

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