Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1720064
| From | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 6/7] EDAC, mce_amd: Issue the decoded info through the TP or printk() |
| Date | 2017-08-25 15:40 +0200 |
| Message-ID | <uin06-4CU-27@gated-at.bofh.it> (permalink) |
| References | <uik2e-2OI-11@gated-at.bofh.it> <uik2f-2OI-39@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, 25 Aug 2017 12:24:10 +0200
Borislav Petkov <bp@alien8.de> wrote:
> From: Borislav Petkov <bp@suse.de>
>
> ... depending on whether we have userspace consumers. Handle the HW_ERR
> prefix accordingly - for printk() I need to do some strsep() monkey
> business.
>
> Signed-off-by: Borislav Petkov <bp@suse.de>
> ---
> drivers/edac/mce_amd.c | 106 +++++++++++++++++++++++++++++++------------------
> 1 file changed, 68 insertions(+), 38 deletions(-)
>
> diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c
> index b7c1f8f7e871..41c09d5b81f0 100644
> --- a/drivers/edac/mce_amd.c
> +++ b/drivers/edac/mce_amd.c
> @@ -2,9 +2,12 @@
> #include <linux/seq_buf.h>
> #include <linux/module.h>
> #include <linux/slab.h>
> +#include <linux/ras.h>
>
> #include <asm/cpu.h>
>
> +#include <trace/events/mce.h>
> +
> #include "mce_amd.h"
>
> static struct amd_decoder_ops *fam_ops;
> @@ -465,7 +468,7 @@ static void decode_mc0_mce(struct mce *m)
> u16 ec = EC(m->status);
> u8 xec = XEC(m->status, xec_mask);
>
> - seq_buf_printf(&sb, HW_ERR "MC0 Error: ");
> + seq_buf_printf(&sb, "MC0 Error: ");
Use seq_buf_puts() in this patch too.
-- Steve
>
> /* TLB error signatures are the same across families */
> if (TLB_ERROR(ec)) {
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/7] EDAC, mce_amd: Issue decoded MCE through the tracepoint Borislav Petkov <bp@alien8.de> - 2017-08-25 12:30 +0200
[PATCH 1/7] x86/mce: Handle an in-kernel MCE decoder Borislav Petkov <bp@alien8.de> - 2017-08-25 12:30 +0200
[PATCH 4/7] seq_buf: Export seq_buf_printf() to modules Borislav Petkov <bp@alien8.de> - 2017-08-25 12:30 +0200
Re: [PATCH 4/7] seq_buf: Export seq_buf_printf() to modules Steven Rostedt <rostedt@goodmis.org> - 2017-08-25 15:30 +0200
[PATCH 6/7] EDAC, mce_amd: Issue the decoded info through the TP or printk() Borislav Petkov <bp@alien8.de> - 2017-08-25 12:30 +0200
Re: [PATCH 6/7] EDAC, mce_amd: Issue the decoded info through the TP or printk() Steven Rostedt <rostedt@goodmis.org> - 2017-08-25 15:40 +0200
[PATCH 5/7] EDAC, mce_amd: Convert to seq_buf Borislav Petkov <bp@alien8.de> - 2017-08-25 12:30 +0200
Re: [PATCH 5/7] EDAC, mce_amd: Convert to seq_buf Steven Rostedt <rostedt@goodmis.org> - 2017-08-25 15:40 +0200
Re: [PATCH 0/7] EDAC, mce_amd: Issue decoded MCE through the tracepoint Borislav Petkov <bp@alien8.de> - 2017-08-28 15:50 +0200
Re: [PATCH 0/7] EDAC, mce_amd: Issue decoded MCE through the tracepoint Borislav Petkov <bp@alien8.de> - 2017-08-30 13:50 +0200
Re: [PATCH 0/7] EDAC, mce_amd: Issue decoded MCE through the tracepoint mark gross <mgross@linux.intel.com> - 2017-08-30 23:50 +0200
Re: [PATCH 0/7] EDAC, mce_amd: Issue decoded MCE through the tracepoint Borislav Petkov <bp@alien8.de> - 2017-08-31 00:10 +0200
Re: [PATCH 0/7] EDAC, mce_amd: Issue decoded MCE through the tracepoint Borislav Petkov <bp@alien8.de> - 2017-08-31 21:20 +0200
Re: [PATCH 0/7] EDAC, mce_amd: Issue decoded MCE through the tracepoint Steven Rostedt <rostedt@goodmis.org> - 2017-08-31 01:40 +0200
Re: [PATCH 0/7] EDAC, mce_amd: Issue decoded MCE through the tracepoint mark gross <mgross@linux.intel.com> - 2017-09-04 01:40 +0200
Re: [PATCH 0/7] EDAC, mce_amd: Issue decoded MCE through the tracepoint Borislav Petkov <bp@alien8.de> - 2017-09-04 12:50 +0200
csiph-web