1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #undef TRACE_SYSTEM 3 #define TRACE_SYSTEM module 4 5 #define TRACE_INCLUDE_PATH trace/hooks 6 #if !defined(_TRACE_HOOK_MODULE_H) || defined(TRACE_HEADER_MULTI_READ) 7 #define _TRACE_HOOK_MODULE_H 8 #include <linux/tracepoint.h> 9 #include <trace/hooks/vendor_hooks.h> 10 /* 11 * Following tracepoints are not exported in tracefs and provide a 12 * mechanism for vendor modules to hook and extend functionality 13 */ 14 struct module; 15 DECLARE_HOOK(android_vh_set_module_permit_before_init, 16 TP_PROTO(const struct module *mod), 17 TP_ARGS(mod)); 18 19 DECLARE_HOOK(android_vh_set_module_permit_after_init, 20 TP_PROTO(const struct module *mod), 21 TP_ARGS(mod)); 22 23 #endif /* _TRACE_HOOK_MODULE_H */ 24 /* This part must be outside protection */ 25 #include <trace/define_trace.h> 26