thermal.h 1.7 KB

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