lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <171179558664.10875.14209003500081518612.tip-bot2@tip-bot2>
Date: Sat, 30 Mar 2024 10:46:26 -0000
From: "tip-bot2 for Ingo Molnar" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Ingo Molnar <mingo@...nel.org>, Avadhut Naik <avadhut.naik@....com>,
 "Tony Luck" <tony.luck@...el.com>, x86@...nel.org,
 linux-kernel@...r.kernel.org
Subject: [tip: x86/cpu] x86/mce: Clean up TP_printk() output line of the
 'mce_record' tracepoint

The following commit has been merged into the x86/cpu branch of tip:

Commit-ID:     ac5e80e94f5c67d7053f50fc3faddab931707f0f
Gitweb:        https://git.kernel.org/tip/ac5e80e94f5c67d7053f50fc3faddab931707f0f
Author:        Ingo Molnar <mingo@...nel.org>
AuthorDate:    Fri, 29 Mar 2024 08:11:27 +01:00
Committer:     Ingo Molnar <mingo@...nel.org>
CommitterDate: Sat, 30 Mar 2024 11:35:28 +01:00

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 <mingo@...nel.org>
Cc: Avadhut Naik <avadhut.naik@....com>
Cc: "Tony Luck" <tony.luck@...el.com>
Link: https://lore.kernel.org/r/ZgZpn/zbCJWYdL5y@gmail.com
---
 include/trace/events/mce.h |  9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/include/trace/events/mce.h b/include/trace/events/mce.h
index 1391ada..9c4e121 100644
--- a/include/trace/events/mce.h
+++ b/include/trace/events/mce.h
@@ -55,15 +55,18 @@ TRACE_EVENT(mce_record,
 		__entry->cpuvendor	= m->cpuvendor;
 	),
 
-	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",
+	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",
 		__entry->cpu,
 		__entry->mcgcap, __entry->mcgstatus,
 		__entry->bank, __entry->status,
 		__entry->ipid,
-		__entry->addr, __entry->misc, __entry->synd,
+		__entry->addr,
+		__entry->misc,
+		__entry->synd,
 		__entry->cs, __entry->ip,
 		__entry->tsc,
-		__entry->cpuvendor, __entry->cpuid,
+		__entry->cpuvendor,
+		__entry->cpuid,
 		__entry->walltime,
 		__entry->socketid,
 		__entry->apicid)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ