diff options
| author | Yazen Ghannam <Yazen.Ghannam@amd.com> | 2016-09-12 03:59:28 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2016-09-13 09:23:06 -0400 |
| commit | db819d60f6720080150a365080ff656cf239f88f (patch) | |
| tree | fdc9256a601c6033b24150426c1e5ec49b65f455 /include/trace | |
| parent | 74ab0e7a836a7df772af50cac21267eb43688841 (diff) | |
x86/mce: Add support for new MCA_SYND register
Syndrome information is no longer contained in MCA_STATUS for SMCA
systems but in a new register - MCA_SYND.
Add a synd field to struct mce to hold MCA_SYND register value. Add it
to the end of struct mce to maintain compatibility with old versions of
mcelog. Also, add it to the respective tracepoint.
Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/1467633035-32080-1-git-send-email-Yazen.Ghannam@amd.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/trace')
| -rw-r--r-- | include/trace/events/mce.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/trace/events/mce.h b/include/trace/events/mce.h index 4cbbcef6baa8..8be5268caf28 100644 --- a/include/trace/events/mce.h +++ b/include/trace/events/mce.h | |||
| @@ -20,6 +20,7 @@ TRACE_EVENT(mce_record, | |||
| 20 | __field( u64, status ) | 20 | __field( u64, status ) |
| 21 | __field( u64, addr ) | 21 | __field( u64, addr ) |
| 22 | __field( u64, misc ) | 22 | __field( u64, misc ) |
| 23 | __field( u64, synd ) | ||
| 23 | __field( u64, ip ) | 24 | __field( u64, ip ) |
| 24 | __field( u64, tsc ) | 25 | __field( u64, tsc ) |
| 25 | __field( u64, walltime ) | 26 | __field( u64, walltime ) |
| @@ -38,6 +39,7 @@ TRACE_EVENT(mce_record, | |||
| 38 | __entry->status = m->status; | 39 | __entry->status = m->status; |
| 39 | __entry->addr = m->addr; | 40 | __entry->addr = m->addr; |
| 40 | __entry->misc = m->misc; | 41 | __entry->misc = m->misc; |
| 42 | __entry->synd = m->synd; | ||
| 41 | __entry->ip = m->ip; | 43 | __entry->ip = m->ip; |
| 42 | __entry->tsc = m->tsc; | 44 | __entry->tsc = m->tsc; |
| 43 | __entry->walltime = m->time; | 45 | __entry->walltime = m->time; |
| @@ -50,11 +52,11 @@ TRACE_EVENT(mce_record, | |||
| 50 | __entry->cpuvendor = m->cpuvendor; | 52 | __entry->cpuvendor = m->cpuvendor; |
| 51 | ), | 53 | ), |
| 52 | 54 | ||
| 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 | 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", |
| 54 | __entry->cpu, | 56 | __entry->cpu, |
| 55 | __entry->mcgcap, __entry->mcgstatus, | 57 | __entry->mcgcap, __entry->mcgstatus, |
| 56 | __entry->bank, __entry->status, | 58 | __entry->bank, __entry->status, |
| 57 | __entry->addr, __entry->misc, | 59 | __entry->addr, __entry->misc, __entry->synd, |
| 58 | __entry->cs, __entry->ip, | 60 | __entry->cs, __entry->ip, |
| 59 | __entry->tsc, | 61 | __entry->tsc, |
| 60 | __entry->cpuvendor, __entry->cpuid, | 62 | __entry->cpuvendor, __entry->cpuid, |
