Re: [RFC PATCH 7/8] EDAC, mce_amd: Add a simple tracepoint dumping a decoded string
From: Borislav Petkov
Date: Fri Jul 28 2017 - 03:13:01 EST
On Thu, Jul 27, 2017 at 09:47:59PM -0400, Steven Rostedt wrote:
> On Tue, 25 Jul 2017 17:46:00 +0200
> Borislav Petkov <bp@xxxxxxxxx> wrote:
>
> > From: Borislav Petkov <bp@xxxxxxx>
> >
> > It is a single string which gets dynamically generated when the error
> > gets decoded. Dump it to userspace through that tracepoint so that
> > consumers can get the already decoded string and the kernel has the
> > decoding functionality too, even if there are no userspace consumers.
> >
> > Signed-off-by: Borislav Petkov <bp@xxxxxxx>
> > Cc: Steven Rostedt <rostedt@xxxxxxxxxxx>
>
> Acked-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>
Right, see
https://lkml.kernel.org/r/20170727130909.GB28548@xxxxxxxxxxx
I had the idea while talking to Ingo yesterday.
I should simply extend trace_mce_record() with one more arg. Much cleaner.
Thx.
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
--