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