thermal_pressure.h 743 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #undef TRACE_SYSTEM
  3. #define TRACE_SYSTEM thermal_pressure
  4. #if !defined(_TRACE_THERMAL_PRESSURE_H) || defined(TRACE_HEADER_MULTI_READ)
  5. #define _TRACE_THERMAL_PRESSURE_H
  6. #include <linux/tracepoint.h>
  7. TRACE_EVENT(thermal_pressure_update,
  8. TP_PROTO(int cpu, unsigned long thermal_pressure),
  9. TP_ARGS(cpu, thermal_pressure),
  10. TP_STRUCT__entry(
  11. __field(unsigned long, thermal_pressure)
  12. __field(int, cpu)
  13. ),
  14. TP_fast_assign(
  15. __entry->thermal_pressure = thermal_pressure;
  16. __entry->cpu = cpu;
  17. ),
  18. TP_printk("cpu=%d thermal_pressure=%lu", __entry->cpu, __entry->thermal_pressure)
  19. );
  20. #endif /* _TRACE_THERMAL_PRESSURE_H */
  21. /* This part must be outside protection */
  22. #include <trace/define_trace.h>