mtk_thermal_trace.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. #undef TRACE_SYSTEM
  2. #define TRACE_SYSTEM thermal
  3. #if !defined(_MTK_THERMAL_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
  4. #define _MTK_THERMAL_TRACE_H
  5. #include <linux/tracepoint.h>
  6. TRACE_EVENT(cooling_device_state,
  7. TP_PROTO(int device, unsigned long state),
  8. TP_ARGS(device, state), TP_STRUCT__entry(__field(int, device)
  9. __field(unsigned long, state)
  10. ),
  11. TP_fast_assign(__entry->device = device;
  12. __entry->state = state;),
  13. TP_printk("cooling_device=%d, state=%lu\n", __entry->device, __entry->state)
  14. );
  15. TRACE_EVENT(thermal_zone_state,
  16. TP_PROTO(int device, int state),
  17. TP_ARGS(device, state), TP_STRUCT__entry(__field(int, device)
  18. __field(int, state)
  19. ),
  20. TP_fast_assign(__entry->device = device;
  21. __entry->state = state;),
  22. TP_printk("thermal_zone=%d, state=%d\n", __entry->device, __entry->state)
  23. );
  24. #endif /* _MTK_THERMAL_TRACE_H */
  25. /* This part must be outside protection */
  26. #undef TRACE_INCLUDE_PATH
  27. #define TRACE_INCLUDE_PATH .
  28. #define TRACE_INCLUDE_FILE mach/mtk_thermal_trace
  29. #include <trace/define_trace.h>