• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM syscall_check
4 
5 #define TRACE_INCLUDE_PATH trace/hooks
6 #if !defined(_TRACE_HOOK_SYSCALL_CHECK_H) || defined(TRACE_HEADER_MULTI_READ)
7 #define _TRACE_HOOK_SYSCALL_CHECK_H
8 #include <trace/hooks/vendor_hooks.h>
9 /*
10  * Following tracepoints are not exported in tracefs and provide a
11  * mechanism for vendor modules to hook and extend functionality
12  */
13 struct file;
14 union bpf_attr;
15 DECLARE_HOOK(android_vh_check_mmap_file,
16 	TP_PROTO(const struct file *file, unsigned long prot,
17 		unsigned long flag, unsigned long ret),
18 	TP_ARGS(file, prot, flag, ret));
19 
20 DECLARE_HOOK(android_vh_check_file_open,
21 	TP_PROTO(const struct file *file),
22 	TP_ARGS(file));
23 
24 DECLARE_HOOK(android_vh_check_bpf_syscall,
25 	TP_PROTO(int cmd, const union bpf_attr *attr, unsigned int size),
26 	TP_ARGS(cmd, attr, size));
27 
28 #endif /* _TRACE_HOOK_SYSCALL_CHECK_H */
29 /* This part must be outside protection */
30 #include <trace/define_trace.h>
31