13d0407baSopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
23d0407baSopenharmony_ci#undef TRACE_SYSTEM
33d0407baSopenharmony_ci#define TRACE_SYSTEM module
43d0407baSopenharmony_ci
53d0407baSopenharmony_ci#define TRACE_INCLUDE_PATH trace/hooks
63d0407baSopenharmony_ci#if !defined(_TRACE_HOOK_MODULE_H) || defined(TRACE_HEADER_MULTI_READ)
73d0407baSopenharmony_ci#define _TRACE_HOOK_MODULE_H
83d0407baSopenharmony_ci#include <linux/tracepoint.h>
93d0407baSopenharmony_ci#include <trace/hooks/vendor_hooks.h>
103d0407baSopenharmony_ci/*
113d0407baSopenharmony_ci * Following tracepoints are not exported in tracefs and provide a
123d0407baSopenharmony_ci * mechanism for vendor modules to hook and extend functionality
133d0407baSopenharmony_ci */
143d0407baSopenharmony_cistruct module;
153d0407baSopenharmony_ciDECLARE_HOOK(android_vh_set_module_permit_before_init,
163d0407baSopenharmony_ci	TP_PROTO(const struct module *mod),
173d0407baSopenharmony_ci	TP_ARGS(mod));
183d0407baSopenharmony_ci
193d0407baSopenharmony_ciDECLARE_HOOK(android_vh_set_module_permit_after_init,
203d0407baSopenharmony_ci	TP_PROTO(const struct module *mod),
213d0407baSopenharmony_ci	TP_ARGS(mod));
223d0407baSopenharmony_ci
233d0407baSopenharmony_ci#endif /* _TRACE_HOOK_MODULE_H */
243d0407baSopenharmony_ci/* This part must be outside protection */
253d0407baSopenharmony_ci#include <trace/define_trace.h>
26