Skip to content

Commit ac5e80e

Browse files
author
Ingo Molnar
committed
x86/mce: Clean up TP_printk() output line of the 'mce_record' tracepoint
- Only capitalize entries where that makes sense - Print separate values separately - Rename 'PROCESSOR' to vendor & CPUID Signed-off-by: Ingo Molnar <[email protected]> Cc: Avadhut Naik <[email protected]> Cc: "Tony Luck" <[email protected]> Link: https://lore.kernel.org/r/ZgZpn/[email protected]
1 parent 99c8431 commit ac5e80e

File tree

1 file changed

+6
-3
lines changed
  • include/trace/events

1 file changed

+6
-3
lines changed

include/trace/events/mce.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,18 @@ TRACE_EVENT(mce_record,
5555
__entry->cpuvendor = m->cpuvendor;
5656
),
5757

58-
TP_printk("CPU: %d, MCGc/s: %llx/%llx, MC%d: %016Lx, IPID: %016Lx, ADDR/MISC/SYND: %016Lx/%016Lx/%016Lx, RIP: %02x:<%016Lx>, TSC: %llx, PROCESSOR: %u:%x, TIME: %llu, SOCKET: %u, APIC: %x",
58+
TP_printk("CPU: %d, MCGc/s: %llx/%llx, MC%d: %016Lx, IPID: %016Lx, ADDR: %016Lx, MISC: %016Lx, SYND: %016Lx, RIP: %02x:<%016Lx>, TSC: %llx, vendor: %u, CPUID: %x, time: %llu, socket: %u, APIC: %x",
5959
__entry->cpu,
6060
__entry->mcgcap, __entry->mcgstatus,
6161
__entry->bank, __entry->status,
6262
__entry->ipid,
63-
__entry->addr, __entry->misc, __entry->synd,
63+
__entry->addr,
64+
__entry->misc,
65+
__entry->synd,
6466
__entry->cs, __entry->ip,
6567
__entry->tsc,
66-
__entry->cpuvendor, __entry->cpuid,
68+
__entry->cpuvendor,
69+
__entry->cpuid,
6770
__entry->walltime,
6871
__entry->socketid,
6972
__entry->apicid)

0 commit comments

Comments
 (0)