• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #undef TRACE_SYSTEM
4 #define TRACE_SYSTEM net
5 #define TRACE_INCLUDE_PATH trace/hooks
6 
7 #if !defined(_TRACE_HOOK_NET_VH_H) || defined(TRACE_HEADER_MULTI_READ)
8 #define _TRACE_HOOK_NET_VH_H
9 #include <trace/hooks/vendor_hooks.h>
10 
11 struct packet_type;
12 struct sk_buff;
13 struct list_head;
14 struct nf_conn;
15 struct sock;
16 
17 DECLARE_HOOK(android_vh_ptype_head,
18 	TP_PROTO(const struct packet_type *pt, struct list_head *vendor_pt),
19 	TP_ARGS(pt, vendor_pt));
20 DECLARE_HOOK(android_vh_kfree_skb,
21 	TP_PROTO(struct sk_buff *skb), TP_ARGS(skb));
22 
23 DECLARE_RESTRICTED_HOOK(android_rvh_nf_conn_alloc,
24 	TP_PROTO(struct nf_conn *nf_conn), TP_ARGS(nf_conn), 1);
25 DECLARE_RESTRICTED_HOOK(android_rvh_nf_conn_free,
26 	TP_PROTO(struct nf_conn *nf_conn), TP_ARGS(nf_conn), 1);
27 DECLARE_RESTRICTED_HOOK(android_rvh_sk_alloc,
28 	TP_PROTO(struct sock *sock), TP_ARGS(sock), 1);
29 DECLARE_RESTRICTED_HOOK(android_rvh_sk_free,
30 	TP_PROTO(struct sock *sock), TP_ARGS(sock), 1);
31 
32 /* macro versions of hooks are no longer required */
33 
34 #endif /* _TRACE_HOOK_NET_VH_H */
35 /* This part must be outside protection */
36 #include <trace/define_trace.h>
37