1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #undef TRACE_SYSTEM 3 #define TRACE_SYSTEM mm 4 5 #define TRACE_INCLUDE_PATH trace/hooks 6 #if !defined(_TRACE_HOOKS_MM_H) || defined(TRACE_HEADER_MULTI_READ) 7 #define _TRACE_HOOKS_MM_H 8 9 #include <linux/tracepoint.h> 10 #include <trace/hooks/vendor_hooks.h> 11 12 DECLARE_HOOK(vendor_do_mmap, 13 TP_PROTO(vm_flags_t *vm_flags, int *err), 14 TP_ARGS(vm_flags, err) 15 ); 16 17 DECLARE_HOOK(vendor_do_mprotect_pkey, 18 TP_PROTO(unsigned long prot, int *err), 19 TP_ARGS(prot, err) 20 ); 21 22 #endif 23 24 /* This part must be outside protection */ 25 #include <trace/define_trace.h> 26