18968f9d3SHidetoshi Seto #undef TRACE_SYSTEM 28968f9d3SHidetoshi Seto #define TRACE_SYSTEM mce 38968f9d3SHidetoshi Seto 48968f9d3SHidetoshi Seto #if !defined(_TRACE_MCE_H) || defined(TRACE_HEADER_MULTI_READ) 58968f9d3SHidetoshi Seto #define _TRACE_MCE_H 68968f9d3SHidetoshi Seto 78968f9d3SHidetoshi Seto #include <linux/ktime.h> 88968f9d3SHidetoshi Seto #include <linux/tracepoint.h> 98968f9d3SHidetoshi Seto #include <asm/mce.h> 108968f9d3SHidetoshi Seto 118968f9d3SHidetoshi Seto TRACE_EVENT(mce_record, 128968f9d3SHidetoshi Seto 138968f9d3SHidetoshi Seto TP_PROTO(struct mce *m), 148968f9d3SHidetoshi Seto 158968f9d3SHidetoshi Seto TP_ARGS(m), 168968f9d3SHidetoshi Seto 178968f9d3SHidetoshi Seto TP_STRUCT__entry( 188968f9d3SHidetoshi Seto __field( u64, mcgcap ) 198968f9d3SHidetoshi Seto __field( u64, mcgstatus ) 208968f9d3SHidetoshi Seto __field( u64, status ) 218968f9d3SHidetoshi Seto __field( u64, addr ) 228968f9d3SHidetoshi Seto __field( u64, misc ) 23*db819d60SYazen Ghannam __field( u64, synd ) 248968f9d3SHidetoshi Seto __field( u64, ip ) 258968f9d3SHidetoshi Seto __field( u64, tsc ) 268968f9d3SHidetoshi Seto __field( u64, walltime ) 278968f9d3SHidetoshi Seto __field( u32, cpu ) 288968f9d3SHidetoshi Seto __field( u32, cpuid ) 298968f9d3SHidetoshi Seto __field( u32, apicid ) 308968f9d3SHidetoshi Seto __field( u32, socketid ) 31ad440ad6SDavid Sharp __field( u8, cs ) 32ad440ad6SDavid Sharp __field( u8, bank ) 338968f9d3SHidetoshi Seto __field( u8, cpuvendor ) 348968f9d3SHidetoshi Seto ), 358968f9d3SHidetoshi Seto 368968f9d3SHidetoshi Seto TP_fast_assign( 378968f9d3SHidetoshi Seto __entry->mcgcap = m->mcgcap; 388968f9d3SHidetoshi Seto __entry->mcgstatus = m->mcgstatus; 398968f9d3SHidetoshi Seto __entry->status = m->status; 408968f9d3SHidetoshi Seto __entry->addr = m->addr; 418968f9d3SHidetoshi Seto __entry->misc = m->misc; 42*db819d60SYazen Ghannam __entry->synd = m->synd; 438968f9d3SHidetoshi Seto __entry->ip = m->ip; 448968f9d3SHidetoshi Seto __entry->tsc = m->tsc; 458968f9d3SHidetoshi Seto __entry->walltime = m->time; 468968f9d3SHidetoshi Seto __entry->cpu = m->extcpu; 478968f9d3SHidetoshi Seto __entry->cpuid = m->cpuid; 488968f9d3SHidetoshi Seto __entry->apicid = m->apicid; 498968f9d3SHidetoshi Seto __entry->socketid = m->socketid; 50ad440ad6SDavid Sharp __entry->cs = m->cs; 51ad440ad6SDavid Sharp __entry->bank = m->bank; 528968f9d3SHidetoshi Seto __entry->cpuvendor = m->cpuvendor; 538968f9d3SHidetoshi Seto ), 548968f9d3SHidetoshi Seto 55*db819d60SYazen Ghannam TP_printk("CPU: %d, MCGc/s: %llx/%llx, MC%d: %016Lx, ADDR/MISC/SYND: %016Lx/%016Lx/%016Lx, RIP: %02x:<%016Lx>, TSC: %llx, PROCESSOR: %u:%x, TIME: %llu, SOCKET: %u, APIC: %x", 568968f9d3SHidetoshi Seto __entry->cpu, 578968f9d3SHidetoshi Seto __entry->mcgcap, __entry->mcgstatus, 588968f9d3SHidetoshi Seto __entry->bank, __entry->status, 59*db819d60SYazen Ghannam __entry->addr, __entry->misc, __entry->synd, 608968f9d3SHidetoshi Seto __entry->cs, __entry->ip, 618968f9d3SHidetoshi Seto __entry->tsc, 628968f9d3SHidetoshi Seto __entry->cpuvendor, __entry->cpuid, 638968f9d3SHidetoshi Seto __entry->walltime, 648968f9d3SHidetoshi Seto __entry->socketid, 658968f9d3SHidetoshi Seto __entry->apicid) 668968f9d3SHidetoshi Seto ); 678968f9d3SHidetoshi Seto 688968f9d3SHidetoshi Seto #endif /* _TRACE_MCE_H */ 698968f9d3SHidetoshi Seto 708968f9d3SHidetoshi Seto /* This part must be outside protection */ 718968f9d3SHidetoshi Seto #include <trace/define_trace.h> 72