From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752011AbdG1HM5 (ORCPT ); Fri, 28 Jul 2017 03:12:57 -0400 Received: from mail.skyhub.de ([5.9.137.197]:34052 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751980AbdG1HMw (ORCPT ); Fri, 28 Jul 2017 03:12:52 -0400 Date: Fri, 28 Jul 2017 09:12:15 +0200 From: Borislav Petkov To: Steven Rostedt Cc: linux-edac , Tony Luck , Yazen Ghannam , X86 ML , LKML Subject: Re: [RFC PATCH 7/8] EDAC, mce_amd: Add a simple tracepoint dumping a decoded string Message-ID: <20170728071215.GB1884@nazgul.tnic> References: <20170725154601.27427-1-bp@alien8.de> <20170725154601.27427-8-bp@alien8.de> <20170727214759.4ccc1574@vmware.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170727214759.4ccc1574@vmware.local.home> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 27, 2017 at 09:47:59PM -0400, Steven Rostedt wrote: > On Tue, 25 Jul 2017 17:46:00 +0200 > Borislav Petkov wrote: > > > From: Borislav Petkov > > > > 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 > > Cc: Steven Rostedt > > Acked-by: Steven Rostedt (VMware) Right, see https://lkml.kernel.org/r/20170727130909.GB28548@nazgul.tnic 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. --