• 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 struct thermal_cooling_device;
13 struct thermal_zone_device;
14 struct cpufreq_policy;
15 
16 DECLARE_HOOK(android_vh_modify_thermal_request_freq,
17 	TP_PROTO(struct cpufreq_policy *policy, unsigned long *request_freq),
18 	TP_ARGS(policy, request_freq));
19 
20 DECLARE_HOOK(android_vh_modify_thermal_target_freq,
21 	TP_PROTO(struct cpufreq_policy *policy, unsigned int *target_freq),
22 	TP_ARGS(policy, target_freq));
23 
24 DECLARE_HOOK(android_vh_thermal_register,
25 	TP_PROTO(struct cpufreq_policy *policy),
26 	TP_ARGS(policy));
27 
28 DECLARE_HOOK(android_vh_thermal_unregister,
29 	TP_PROTO(struct cpufreq_policy *policy),
30 	TP_ARGS(policy));
31 
32 DECLARE_HOOK(android_vh_enable_thermal_power_throttle,
33 	TP_PROTO(bool *enable, bool *override),
34 	TP_ARGS(enable, override));
35 
36 DECLARE_HOOK(android_vh_thermal_power_cap,
37 	TP_PROTO(u32 *power_range),
38 	TP_ARGS(power_range));
39 
40 DECLARE_HOOK(android_vh_get_thermal_zone_device,
41 	TP_PROTO(struct thermal_zone_device *tz),
42 	TP_ARGS(tz));
43 
44 DECLARE_HOOK(android_vh_disable_thermal_cooling_stats,
45 	TP_PROTO(struct thermal_cooling_device *cdev, int *disable_stats),
46 	TP_ARGS(cdev, disable_stats));
47 
48 DECLARE_HOOK(android_vh_enable_thermal_genl_check,
49 	TP_PROTO(int event, int tz_id, int *enable_thermal_genl),
50 	TP_ARGS(event, tz_id, enable_thermal_genl));
51 
52 #endif /* _TRACE_HOOK_THERMAL_H */
53 /* This part must be outside protection */
54 #include <trace/define_trace.h>
55