1 /* SPDX-License-Identifier: GPL-2.0 */ 2 3 #undef TRACE_SYSTEM 4 #define TRACE_SYSTEM ipv4 5 #define TRACE_INCLUDE_PATH trace/hooks 6 7 #if !defined(_TRACE_HOOK_IPV4_H) || defined(TRACE_HEADER_MULTI_READ) 8 #define _TRACE_HOOK_IPV4_H 9 #include <trace/hooks/vendor_hooks.h> 10 11 DECLARE_RESTRICTED_HOOK(android_rvh_tcp_sendmsg_locked, 12 TP_PROTO(struct sock *sk, int size), 13 TP_ARGS(sk, size), 1); 14 15 DECLARE_RESTRICTED_HOOK(android_rvh_tcp_recvmsg, 16 TP_PROTO(struct sock *sk), 17 TP_ARGS(sk), 1); 18 19 DECLARE_RESTRICTED_HOOK(android_rvh_udp_sendmsg, 20 TP_PROTO(struct sock *sk), 21 TP_ARGS(sk), 1); 22 23 DECLARE_RESTRICTED_HOOK(android_rvh_udp_recvmsg, 24 TP_PROTO(struct sock *sk), 25 TP_ARGS(sk), 1); 26 27 DECLARE_RESTRICTED_HOOK(android_rvh_tcp_recvmsg_stat, 28 TP_PROTO(struct sock *sk, int size), 29 TP_ARGS(sk, size), 1); 30 31 #endif /* _TRACE_HOOK_IPV4_H */ 32 /* This part must be outside protection */ 33 #include <trace/define_trace.h> 34