/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM #define TRACE_SYSTEM thermal #define TRACE_INCLUDE_PATH trace/hooks #if !defined(_TRACE_HOOK_THERMAL_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_HOOK_THERMAL_H #include #include struct thermal_zone_device; DECLARE_HOOK(android_vh_enable_thermal_genl_check, TP_PROTO(int event, int tz_id, int *enable_thermal_genl), TP_ARGS(event, tz_id, enable_thermal_genl)); DECLARE_HOOK(android_vh_thermal_pm_notify_suspend, TP_PROTO(struct thermal_zone_device *tz, int *irq_wakeable), TP_ARGS(tz, irq_wakeable)); DECLARE_HOOK(android_vh_modify_thermal_request_freq, TP_PROTO(struct cpufreq_policy *policy, unsigned long *request_freq), TP_ARGS(policy, request_freq)); DECLARE_HOOK(android_vh_modify_thermal_target_freq, TP_PROTO(struct cpufreq_policy *policy, unsigned int *target_freq), TP_ARGS(policy, target_freq)); DECLARE_HOOK(android_vh_enable_thermal_power_throttle, TP_PROTO(int *enable, int *override), TP_ARGS(enable, override)); DECLARE_HOOK(android_vh_thermal_power_cap, TP_PROTO(u32 *power_range), TP_ARGS(power_range)); DECLARE_HOOK(android_vh_get_thermal_zone_device, TP_PROTO(struct thermal_zone_device *tz), TP_ARGS(tz)); #endif /* _TRACE_HOOK_THERMAL_H */ /* This part must be outside protection */ #include