xref: /openbmc/linux/include/trace/events/intel_ifs.h (revision c005e2f62f8421b13b9a31adb9db7281f1a19e68)
151af802fSTony Luck /* SPDX-License-Identifier: GPL-2.0 */
251af802fSTony Luck #undef TRACE_SYSTEM
351af802fSTony Luck #define TRACE_SYSTEM intel_ifs
451af802fSTony Luck 
551af802fSTony Luck #if !defined(_TRACE_IFS_H) || defined(TRACE_HEADER_MULTI_READ)
651af802fSTony Luck #define _TRACE_IFS_H
751af802fSTony Luck 
851af802fSTony Luck #include <linux/ktime.h>
951af802fSTony Luck #include <linux/tracepoint.h>
1051af802fSTony Luck 
1151af802fSTony Luck TRACE_EVENT(ifs_status,
1251af802fSTony Luck 
13*3d0d7713SJithu Joseph 	TP_PROTO(int cpu, int start, int stop, u64 status),
1451af802fSTony Luck 
15*3d0d7713SJithu Joseph 	TP_ARGS(cpu, start, stop, status),
1651af802fSTony Luck 
1751af802fSTony Luck 	TP_STRUCT__entry(
1851af802fSTony Luck 		__field(	u64,	status	)
1951af802fSTony Luck 		__field(	int,	cpu	)
20*3d0d7713SJithu Joseph 		__field(	u16,	start	)
21*3d0d7713SJithu Joseph 		__field(	u16,	stop	)
2251af802fSTony Luck 	),
2351af802fSTony Luck 
2451af802fSTony Luck 	TP_fast_assign(
2551af802fSTony Luck 		__entry->cpu	= cpu;
26*3d0d7713SJithu Joseph 		__entry->start	= start;
27*3d0d7713SJithu Joseph 		__entry->stop	= stop;
28*3d0d7713SJithu Joseph 		__entry->status	= status;
2951af802fSTony Luck 	),
3051af802fSTony Luck 
31*3d0d7713SJithu Joseph 	TP_printk("cpu: %d, start: %.4x, stop: %.4x, status: %.16llx",
3251af802fSTony Luck 		__entry->cpu,
3351af802fSTony Luck 		__entry->start,
3451af802fSTony Luck 		__entry->stop,
3551af802fSTony Luck 		__entry->status)
3651af802fSTony Luck );
3751af802fSTony Luck 
3851af802fSTony Luck #endif /* _TRACE_IFS_H */
3951af802fSTony Luck 
4051af802fSTony Luck /* This part must be outside protection */
4151af802fSTony Luck #include <trace/define_trace.h>
42