xref: /OK3568_Linux_fs/kernel/include/trace/hooks/thermal.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #undef TRACE_SYSTEM
3*4882a593Smuzhiyun #define TRACE_SYSTEM thermal
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #define TRACE_INCLUDE_PATH trace/hooks
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun #if !defined(_TRACE_HOOK_THERMAL_H) || defined(TRACE_HEADER_MULTI_READ)
8*4882a593Smuzhiyun #define _TRACE_HOOK_THERMAL_H
9*4882a593Smuzhiyun 
10*4882a593Smuzhiyun #include <linux/tracepoint.h>
11*4882a593Smuzhiyun #include <trace/hooks/vendor_hooks.h>
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun #ifdef __GENKSYMS__
14*4882a593Smuzhiyun struct thermal_zone_device;
15*4882a593Smuzhiyun #else
16*4882a593Smuzhiyun /* struct thermal_zone_device */
17*4882a593Smuzhiyun #include <linux/thermal.h>
18*4882a593Smuzhiyun #endif /* __GENKSYMS__ */
19*4882a593Smuzhiyun DECLARE_HOOK(android_vh_enable_thermal_genl_check,
20*4882a593Smuzhiyun 	TP_PROTO(int event, int tz_id, int *enable_thermal_genl),
21*4882a593Smuzhiyun 	TP_ARGS(event, tz_id, enable_thermal_genl));
22*4882a593Smuzhiyun 
23*4882a593Smuzhiyun DECLARE_HOOK(android_vh_thermal_pm_notify_suspend,
24*4882a593Smuzhiyun 	     TP_PROTO(struct thermal_zone_device *tz, int *irq_wakeable),
25*4882a593Smuzhiyun 	     TP_ARGS(tz, irq_wakeable));
26*4882a593Smuzhiyun 
27*4882a593Smuzhiyun struct thermal_cooling_device;
28*4882a593Smuzhiyun DECLARE_HOOK(android_vh_disable_thermal_cooling_stats,
29*4882a593Smuzhiyun 	TP_PROTO(struct thermal_cooling_device *cdev, bool *disable_stats),
30*4882a593Smuzhiyun 	TP_ARGS(cdev, disable_stats));
31*4882a593Smuzhiyun 
32*4882a593Smuzhiyun #endif /* _TRACE_HOOK_THERMAL_H */
33*4882a593Smuzhiyun /* This part must be outside protection */
34*4882a593Smuzhiyun #include <trace/define_trace.h>
35*4882a593Smuzhiyun 
36