davidchao | ea8600c | 2021-02-01 16:46:13 +0800 | [diff] [blame] | 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 <linux/tracepoint.h> |
| 11 | #include <trace/hooks/vendor_hooks.h> |
| 12 | |
| 13 | DECLARE_HOOK(android_vh_enable_thermal_genl_check, |
davidchao | cc574f0 | 2021-03-10 13:56:15 +0800 | [diff] [blame] | 14 | TP_PROTO(int event, int tz_id, int *enable_thermal_genl), |
| 15 | TP_ARGS(event, tz_id, enable_thermal_genl)); |
davidchao | ea8600c | 2021-02-01 16:46:13 +0800 | [diff] [blame] | 16 | |
David Chao | a4af23d | 2021-04-07 17:49:53 +0800 | [diff] [blame] | 17 | struct thermal_zone_device; |
| 18 | DECLARE_HOOK(android_vh_thermal_pm_notify_suspend, |
| 19 | TP_PROTO(struct thermal_zone_device *tz, int *irq_wakeable), |
| 20 | TP_ARGS(tz, irq_wakeable)); |
| 21 | |
davidchao | ea8600c | 2021-02-01 16:46:13 +0800 | [diff] [blame] | 22 | #endif /* _TRACE_HOOK_THERMAL_H */ |
| 23 | /* This part must be outside protection */ |
| 24 | #include <trace/define_trace.h> |
| 25 | |