• 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 
16 DECLARE_HOOK(android_vh_check_mmap_file,
17 	TP_PROTO(const struct file *file, unsigned long prot,
18 		unsigned long flag, unsigned long ret),
19 	TP_ARGS(file, prot, flag, ret));
20 
21 DECLARE_HOOK(android_vh_check_file_open,
22 	TP_PROTO(const struct file *file),
23 	TP_ARGS(file));
24 
25 DECLARE_HOOK(android_vh_check_bpf_syscall,
26 	TP_PROTO(int cmd, const union bpf_attr *attr, unsigned int size),
27 	TP_ARGS(cmd, attr, size));
28 
29 #endif /* _TRACE_HOOK_SYSCALL_CHECK_H */
30 /* This part must be outside protection */
31 #include <trace/define_trace.h>
32