net.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #undef TRACE_SYSTEM
  3. #define TRACE_SYSTEM net
  4. #define TRACE_INCLUDE_PATH trace/hooks
  5. #if !defined(_TRACE_HOOK_NET_VH_H) || defined(TRACE_HEADER_MULTI_READ)
  6. #define _TRACE_HOOK_NET_VH_H
  7. #include <trace/hooks/vendor_hooks.h>
  8. struct packet_type;
  9. struct list_head;
  10. DECLARE_HOOK(android_vh_ptype_head,
  11. TP_PROTO(const struct packet_type *pt, struct list_head *vendor_pt),
  12. TP_ARGS(pt, vendor_pt));
  13. struct nf_conn;
  14. struct sock;
  15. DECLARE_RESTRICTED_HOOK(android_rvh_nf_conn_alloc,
  16. TP_PROTO(struct nf_conn *nf_conn), TP_ARGS(nf_conn), 1);
  17. DECLARE_RESTRICTED_HOOK(android_rvh_nf_conn_free,
  18. TP_PROTO(struct nf_conn *nf_conn), TP_ARGS(nf_conn), 1);
  19. DECLARE_RESTRICTED_HOOK(android_rvh_sk_alloc,
  20. TP_PROTO(struct sock *sock), TP_ARGS(sock), 1);
  21. DECLARE_RESTRICTED_HOOK(android_rvh_sk_free,
  22. TP_PROTO(struct sock *sock), TP_ARGS(sock), 1);
  23. struct poll_table_struct;
  24. typedef struct poll_table_struct poll_table;
  25. DECLARE_HOOK(android_vh_netlink_poll,
  26. TP_PROTO(struct file *file, struct socket *sock, poll_table *wait,
  27. __poll_t *mask),
  28. TP_ARGS(file, sock, wait, mask));
  29. /* macro versions of hooks are no longer required */
  30. #endif /* _TRACE_HOOK_NET_VH_H */
  31. /* This part must be outside protection */
  32. #include <trace/define_trace.h>