• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #ifdef __GENKSYMS__
15 struct module;
16 #else
17 /* struct module */
18 #include <linux/module.h>
19 #endif /* __GENKSYMS__ */
20 DECLARE_HOOK(android_vh_set_module_permit_before_init,
21 	TP_PROTO(const struct module *mod),
22 	TP_ARGS(mod));
23 
24 DECLARE_HOOK(android_vh_set_module_permit_after_init,
25 	TP_PROTO(const struct module *mod),
26 	TP_ARGS(mod));
27 
28 #endif /* _TRACE_HOOK_MODULE_H */
29 /* This part must be outside protection */
30 #include <trace/define_trace.h>
31