tracing: Add the ::microcode field to the mce_record tracepoint
authorAvadhut Naik <avadhut.naik@amd.com>
Mon, 1 Apr 2024 17:14:55 +0000 (12:14 -0500)
committerIngo Molnar <mingo@kernel.org>
Wed, 3 Apr 2024 07:39:29 +0000 (09:39 +0200)
commit186d7ef52c1f0c41450dedbdf6d6325d0a84e4c5
treeb4115d361c072e410d8eee8605c17231abe30af7
parent98430645e383404e5f6f784cabbb08ebb4ac5499
tracing: Add the ::microcode field to the mce_record tracepoint

Currently, the microcode field (Microcode Revision) of 'struct mce' is not
exposed to userspace through the mce_record tracepoint.

Knowing the microcode version on which the MCE was received is critical
information for debugging. If the version is not recorded, later attempts
to acquire the version might result in discrepancies since it can be
changed at runtime.

Add microcode version to the tracepoint to prevent ambiguity over
the active version on the system when the MCE was received.

Signed-off-by: Avadhut Naik <avadhut.naik@amd.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Sohil Mehta <sohil.mehta@intel.com>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/20240401171455.1737976-3-avadhut.naik@amd.com
include/trace/events/mce.h