1 /* SPDX-License-Identifier: GPL-2.0 */ 1 2 #undef TRACE_SYSTEM 3 #define TRACE_SYSTEM mce 4 5 #if !defined(_TRACE_MCE_H) || defined(TRACE_HE 6 #define _TRACE_MCE_H 7 8 #include <linux/ktime.h> 9 #include <linux/tracepoint.h> 10 #include <asm/mce.h> 11 12 /* 13 * MCE Event Record. 14 * 15 * Only very relevant and transient informatio 16 * gathered from a system by any other means o 17 * acquired arduously should be added to this 18 */ 19 20 TRACE_EVENT(mce_record, 21 22 TP_PROTO(struct mce *m), 23 24 TP_ARGS(m), 25 26 TP_STRUCT__entry( 27 __field( u64, 28 __field( u64, 29 __field( u64, 30 __field( u64, 31 __field( u64, 32 __field( u64, 33 __field( u64, 34 __field( u64, 35 __field( u64, 36 __field( u64, 37 __field( u64, 38 __field( u32, 39 __field( u32, 40 __field( u32, 41 __field( u32, 42 __field( u8, 43 __field( u8, 44 __field( u8, 45 __field( u32, 46 ), 47 48 TP_fast_assign( 49 __entry->mcgcap = m->m 50 __entry->mcgstatus = m->m 51 __entry->status = m->s 52 __entry->addr = m->a 53 __entry->misc = m->m 54 __entry->synd = m->s 55 __entry->ipid = m->i 56 __entry->ip = m->i 57 __entry->tsc = m->t 58 __entry->ppin = m->p 59 __entry->walltime = m->t 60 __entry->cpu = m->e 61 __entry->cpuid = m->c 62 __entry->apicid = m->a 63 __entry->socketid = m->s 64 __entry->cs = m->c 65 __entry->bank = m->b 66 __entry->cpuvendor = m->c 67 __entry->microcode = m->m 68 ), 69 70 TP_printk("CPU: %d, MCGc/s: %llx/%llx, 71 __entry->cpu, 72 __entry->mcgcap, __entry->mcgs 73 __entry->bank, __entry->status 74 __entry->ipid, 75 __entry->addr, 76 __entry->misc, 77 __entry->synd, 78 __entry->cs, __entry->ip, 79 __entry->tsc, 80 __entry->ppin, 81 __entry->cpuvendor, 82 __entry->cpuid, 83 __entry->walltime, 84 __entry->socketid, 85 __entry->apicid, 86 __entry->microcode) 87 ); 88 89 #endif /* _TRACE_MCE_H */ 90 91 /* This part must be outside protection */ 92 #include <trace/define_trace.h> 93
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.