Loading
tracing: Add the ::microcode field to the mce_record tracepoint
mainline inclusion from mainline-v6.10-rc1 commit 186d7ef52c1f0c41450dedbdf6d6325d0a84e4c5 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IAYOV8 CVE: NA Reference: https://github.com/torvalds/linux/commit/186d7ef52c1f0c41450dedbdf6d6325d0a84e4c5 -------------------------------- commit 186d7ef52c1f0c41450dedbdf6d6325d0a84e4c5 upstream 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 Signed-off-by:
jeevandeepj994 <j.jeevandeep@amd.com> Signed-off-by:
PrithivishS <sprithiv@amd.com>