13d0407baSopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
23d0407baSopenharmony_ci#undef TRACE_SYSTEM
33d0407baSopenharmony_ci#define TRACE_SYSTEM preemptirq
43d0407baSopenharmony_ci
53d0407baSopenharmony_ci#undef TRACE_INCLUDE_PATH
63d0407baSopenharmony_ci#define TRACE_INCLUDE_PATH trace/hooks
73d0407baSopenharmony_ci
83d0407baSopenharmony_ci#if !defined(_TRACE_HOOK_PREEMPTIRQ_H) || defined(TRACE_HEADER_MULTI_READ)
93d0407baSopenharmony_ci#define _TRACE_HOOK_PREEMPTIRQ_H
103d0407baSopenharmony_ci
113d0407baSopenharmony_ci#include <linux/tracepoint.h>
123d0407baSopenharmony_ci#include <trace/hooks/vendor_hooks.h>
133d0407baSopenharmony_ci
143d0407baSopenharmony_ciDECLARE_RESTRICTED_HOOK(android_rvh_preempt_disable,
153d0407baSopenharmony_ci	TP_PROTO(unsigned long ip, unsigned long parent_ip),
163d0407baSopenharmony_ci	TP_ARGS(ip, parent_ip), 1);
173d0407baSopenharmony_ci
183d0407baSopenharmony_ciDECLARE_RESTRICTED_HOOK(android_rvh_preempt_enable,
193d0407baSopenharmony_ci	TP_PROTO(unsigned long ip, unsigned long parent_ip),
203d0407baSopenharmony_ci	TP_ARGS(ip, parent_ip), 1);
213d0407baSopenharmony_ci
223d0407baSopenharmony_ciDECLARE_RESTRICTED_HOOK(android_rvh_irqs_disable,
233d0407baSopenharmony_ci	TP_PROTO(unsigned long ip, unsigned long parent_ip),
243d0407baSopenharmony_ci	TP_ARGS(ip, parent_ip), 1);
253d0407baSopenharmony_ci
263d0407baSopenharmony_ciDECLARE_RESTRICTED_HOOK(android_rvh_irqs_enable,
273d0407baSopenharmony_ci	TP_PROTO(unsigned long ip, unsigned long parent_ip),
283d0407baSopenharmony_ci	TP_ARGS(ip, parent_ip), 1);
293d0407baSopenharmony_ci
303d0407baSopenharmony_ci/* macro versions of hooks are no longer required */
313d0407baSopenharmony_ci
323d0407baSopenharmony_ci#endif /* _TRACE_HOOK_PREEMPTIRQ_H */
333d0407baSopenharmony_ci/* This part must be outside protection */
343d0407baSopenharmony_ci#include <trace/define_trace.h>
35