• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM thermal
4 
5 #define TRACE_INCLUDE_PATH trace/hooks
6 
7 #if !defined(_TRACE_HOOK_THERMAL_H) || defined(TRACE_HEADER_MULTI_READ)
8 #define _TRACE_HOOK_THERMAL_H
9 
10 #include <trace/hooks/vendor_hooks.h>
11 
12 DECLARE_HOOK(android_vh_enable_thermal_genl_check,
13 	TP_PROTO(int event, int tz_id, int *enable_thermal_genl),
14 	TP_ARGS(event, tz_id, enable_thermal_genl));
15 
16 struct thermal_zone_device;
17 DECLARE_HOOK(android_vh_thermal_pm_notify_suspend,
18 	     TP_PROTO(struct thermal_zone_device *tz, int *irq_wakeable),
19 	     TP_ARGS(tz, irq_wakeable));
20 
21 struct thermal_cooling_device;
22 DECLARE_HOOK(android_vh_disable_thermal_cooling_stats,
23 	TP_PROTO(struct thermal_cooling_device *cdev, bool *disable_stats),
24 	TP_ARGS(cdev, disable_stats));
25 
26 struct cpufreq_policy;
27 DECLARE_HOOK(android_vh_modify_thermal_request_freq,
28 	TP_PROTO(struct cpufreq_policy *policy, unsigned long *request_freq),
29 	TP_ARGS(policy, request_freq));
30 
31 DECLARE_HOOK(android_vh_modify_thermal_target_freq,
32 	TP_PROTO(struct cpufreq_policy *policy, unsigned int *target_freq),
33 	TP_ARGS(policy, target_freq));
34 
35 DECLARE_HOOK(android_vh_thermal_register,
36 	TP_PROTO(struct cpufreq_policy *policy),
37 	TP_ARGS(policy));
38 
39 DECLARE_HOOK(android_vh_thermal_unregister,
40 	TP_PROTO(struct cpufreq_policy *policy),
41 	TP_ARGS(policy));
42 
43 DECLARE_HOOK(android_vh_get_thermal_zone_device,
44 	TP_PROTO(struct thermal_zone_device *tz),
45 	TP_ARGS(tz));
46 
47 DECLARE_HOOK(android_vh_thermal_power_cap,
48 	TP_PROTO(u32 *power_range),
49 	TP_ARGS(power_range));
50 
51 DECLARE_HOOK(android_vh_enable_thermal_power_throttle,
52 	TP_PROTO(bool *enable),
53 	TP_ARGS(enable));
54 
55 #endif /* _TRACE_HOOK_THERMAL_H */
56 /* This part must be outside protection */
57 #include <trace/define_trace.h>
58 
59