1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #undef TRACE_SYSTEM 3 #define TRACE_SYSTEM selinux 4 5 #define TRACE_INCLUDE_PATH trace/hooks 6 #if !defined(_TRACE_HOOK_SELINUX_H) || defined(TRACE_HEADER_MULTI_READ) 7 #define _TRACE_HOOK_SELINUX_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 selinux_state; 14 DECLARE_RESTRICTED_HOOK(android_rvh_selinux_is_initialized, 15 TP_PROTO(const struct selinux_state *state), 16 TP_ARGS(state), 1); 17 18 #endif /* _TRACE_HOOK_SELINUX_H */ 19 /* This part must be outside protection */ 20 #include <trace/define_trace.h> 21