13d0407baSopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
23d0407baSopenharmony_ci#undef TRACE_SYSTEM
33d0407baSopenharmony_ci#define TRACE_SYSTEM thermal
43d0407baSopenharmony_ci
53d0407baSopenharmony_ci#define TRACE_INCLUDE_PATH trace/hooks
63d0407baSopenharmony_ci
73d0407baSopenharmony_ci#if !defined(_TRACE_HOOK_THERMAL_H) || defined(TRACE_HEADER_MULTI_READ)
83d0407baSopenharmony_ci#define _TRACE_HOOK_THERMAL_H
93d0407baSopenharmony_ci
103d0407baSopenharmony_ci#include <linux/tracepoint.h>
113d0407baSopenharmony_ci#include <trace/hooks/vendor_hooks.h>
123d0407baSopenharmony_ci
133d0407baSopenharmony_ciDECLARE_HOOK(android_vh_enable_thermal_genl_check,
143d0407baSopenharmony_ci	TP_PROTO(int event, int tz_id, int *enable_thermal_genl),
153d0407baSopenharmony_ci	TP_ARGS(event, tz_id, enable_thermal_genl));
163d0407baSopenharmony_ci
173d0407baSopenharmony_cistruct thermal_zone_device;
183d0407baSopenharmony_ciDECLARE_HOOK(android_vh_thermal_pm_notify_suspend,
193d0407baSopenharmony_ci	     TP_PROTO(struct thermal_zone_device *tz, int *irq_wakeable),
203d0407baSopenharmony_ci	     TP_ARGS(tz, irq_wakeable));
213d0407baSopenharmony_ci
223d0407baSopenharmony_ci#endif /* _TRACE_HOOK_THERMAL_H */
233d0407baSopenharmony_ci/* This part must be outside protection */
243d0407baSopenharmony_ci#include <trace/define_trace.h>
253d0407baSopenharmony_ci
26