2 #define TRACE_SYSTEM mce
4 #if !defined(_TRACE_MCE_H) || defined(TRACE_HEADER_MULTI_READ)
7 #include <linux/ktime.h>
8 #include <linux/tracepoint.h>
11 TRACE_EVENT(mce_record
,
13 TP_PROTO(struct mce
*m
),
18 __field( u64
, mcgcap
)
19 __field( u64
, mcgstatus
)
21 __field( u64
, status
)
27 __field( u64
, walltime
)
30 __field( u32
, apicid
)
31 __field( u32
, socketid
)
32 __field( u8
, cpuvendor
)
36 __entry
->mcgcap
= m
->mcgcap
;
37 __entry
->mcgstatus
= m
->mcgstatus
;
38 __entry
->bank
= m
->bank
;
39 __entry
->status
= m
->status
;
40 __entry
->addr
= m
->addr
;
41 __entry
->misc
= m
->misc
;
44 __entry
->tsc
= m
->tsc
;
45 __entry
->walltime
= m
->time
;
46 __entry
->cpu
= m
->extcpu
;
47 __entry
->cpuid
= m
->cpuid
;
48 __entry
->apicid
= m
->apicid
;
49 __entry
->socketid
= m
->socketid
;
50 __entry
->cpuvendor
= m
->cpuvendor
;
53 TP_printk("CPU: %d, MCGc/s: %llx/%llx, MC%d: %016Lx, ADDR/MISC: %016Lx/%016Lx, RIP: %02x:<%016Lx>, TSC: %llx, PROCESSOR: %u:%x, TIME: %llu, SOCKET: %u, APIC: %x",
55 __entry
->mcgcap
, __entry
->mcgstatus
,
56 __entry
->bank
, __entry
->status
,
57 __entry
->addr
, __entry
->misc
,
58 __entry
->cs
, __entry
->ip
,
60 __entry
->cpuvendor
, __entry
->cpuid
,
66 #endif /* _TRACE_MCE_H */
68 /* This part must be outside protection */
69 #include <trace/define_trace.h>