1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #undef TRACE_SYSTEM 3 #define TRACE_SYSTEM preemptirq 4 5 #undef TRACE_INCLUDE_PATH 6 #define TRACE_INCLUDE_PATH trace/hooks 7 8 #if !defined(_TRACE_HOOK_PREEMPTIRQ_H) || defined(TRACE_HEADER_MULTI_READ) 9 #define _TRACE_HOOK_PREEMPTIRQ_H 10 11 #include <trace/hooks/vendor_hooks.h> 12 13 DECLARE_RESTRICTED_HOOK(android_rvh_preempt_disable, 14 TP_PROTO(unsigned long ip, unsigned long parent_ip), 15 TP_ARGS(ip, parent_ip), 1); 16 17 DECLARE_RESTRICTED_HOOK(android_rvh_preempt_enable, 18 TP_PROTO(unsigned long ip, unsigned long parent_ip), 19 TP_ARGS(ip, parent_ip), 1); 20 21 DECLARE_RESTRICTED_HOOK(android_rvh_irqs_disable, 22 TP_PROTO(unsigned long ip, unsigned long parent_ip), 23 TP_ARGS(ip, parent_ip), 1); 24 25 DECLARE_RESTRICTED_HOOK(android_rvh_irqs_enable, 26 TP_PROTO(unsigned long ip, unsigned long parent_ip), 27 TP_ARGS(ip, parent_ip), 1); 28 29 #endif /* _TRACE_HOOK_PREEMPTIRQ_H */ 30 /* This part must be outside protection */ 31 #include <trace/define_trace.h> 32