xref: /linux/include/trace/events/intel_ifs.h (revision 69bfec7548f4c1595bac0e3ddfc0458a5af31f4c)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM intel_ifs
4 
5 #if !defined(_TRACE_IFS_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define _TRACE_IFS_H
7 
8 #include <linux/ktime.h>
9 #include <linux/tracepoint.h>
10 
11 TRACE_EVENT(ifs_status,
12 
13 	TP_PROTO(int cpu, union ifs_scan activate, union ifs_status status),
14 
15 	TP_ARGS(cpu, activate, status),
16 
17 	TP_STRUCT__entry(
18 		__field(	u64,	status	)
19 		__field(	int,	cpu	)
20 		__field(	u8,	start	)
21 		__field(	u8,	stop	)
22 	),
23 
24 	TP_fast_assign(
25 		__entry->cpu	= cpu;
26 		__entry->start	= activate.start;
27 		__entry->stop	= activate.stop;
28 		__entry->status	= status.data;
29 	),
30 
31 	TP_printk("cpu: %d, start: %.2x, stop: %.2x, status: %llx",
32 		__entry->cpu,
33 		__entry->start,
34 		__entry->stop,
35 		__entry->status)
36 );
37 
38 #endif /* _TRACE_IFS_H */
39 
40 /* This part must be outside protection */
41 #include <trace/define_trace.h>
42