Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #undef TRACE_SYSTEM
0003 #define TRACE_SYSTEM intel_ifs
0004 
0005 #if !defined(_TRACE_IFS_H) || defined(TRACE_HEADER_MULTI_READ)
0006 #define _TRACE_IFS_H
0007 
0008 #include <linux/ktime.h>
0009 #include <linux/tracepoint.h>
0010 
0011 TRACE_EVENT(ifs_status,
0012 
0013     TP_PROTO(int cpu, union ifs_scan activate, union ifs_status status),
0014 
0015     TP_ARGS(cpu, activate, status),
0016 
0017     TP_STRUCT__entry(
0018         __field(    u64,    status  )
0019         __field(    int,    cpu )
0020         __field(    u8, start   )
0021         __field(    u8, stop    )
0022     ),
0023 
0024     TP_fast_assign(
0025         __entry->cpu    = cpu;
0026         __entry->start  = activate.start;
0027         __entry->stop   = activate.stop;
0028         __entry->status = status.data;
0029     ),
0030 
0031     TP_printk("cpu: %d, start: %.2x, stop: %.2x, status: %llx",
0032         __entry->cpu,
0033         __entry->start,
0034         __entry->stop,
0035         __entry->status)
0036 );
0037 
0038 #endif /* _TRACE_IFS_H */
0039 
0040 /* This part must be outside protection */
0041 #include <trace/define_trace.h>