udp.h 632 B

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