Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753159AbdCMN7K (ORCPT ); Mon, 13 Mar 2017 09:59:10 -0400 Received: from mail.kernel.org ([198.145.29.136]:59172 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751415AbdCMN7C (ORCPT ); Mon, 13 Mar 2017 09:59:02 -0400 Date: Mon, 13 Mar 2017 09:58:52 -0400 From: Steven Rostedt To: Xie XiuQi Cc: "Baicar, Tyler" , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , "wangxiongfeng2@huawei.com" , Guo Hanjun , "Zhengqiang (turing)" Subject: Re: [PATCH V12 09/10] trace, ras: add ARM processor error trace event Message-ID: <20170313095852.0c424d53@gandalf.local.home> In-Reply-To: <58C65FCB.3040508@huawei.com> References: <1488833103-21082-1-git-send-email-tbaicar@codeaurora.org> <1488833103-21082-10-git-send-email-tbaicar@codeaurora.org> <58C12342.2090701@huawei.com> <14545228-7ff1-b31c-1fa5-daacf89a44b9@codeaurora.org> <58C60485.2070509@huawei.com> <58C65FCB.3040508@huawei.com> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1250 Lines: 40 On Mon, 13 Mar 2017 17:00:59 +0800 Xie XiuQi wrote: > --- > drivers/acpi/apei/ghes.c | 8 +++++ > include/linux/cper.h | 5 +++ > include/ras/ras_event.h | 87 ++++++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 100 insertions(+) > > diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c > index 251d7e0..6d34c26 100644 > --- a/drivers/acpi/apei/ghes.c > +++ b/drivers/acpi/apei/ghes.c > @@ -518,9 +518,17 @@ static void ghes_do_proc(struct ghes *ghes, > else if (!uuid_le_cmp(sec_type, CPER_SEC_PROC_ARM) && > trace_arm_event_enabled()) { > struct cper_sec_proc_arm *arm_err; > + struct cper_arm_err_info *err_info; > + int i; > > arm_err = acpi_hest_generic_data_payload(gdata); > trace_arm_event(arm_err); > + if (trace_arm_proc_err_enabled()) { > + err_info = (struct cper_arm_err_info *)(arm_err + 1); > + for (i = 0; i < arm_err->err_info_num; i++) { > + trace_arm_proc_err(err_info); > + err_info += 1; > + } } -- Steve > } else if (trace_unknown_sec_event_enabled()) { > void *unknown_err = acpi_hest_generic_data_payload(gdata); > trace_unknown_sec_event(&sec_type, > diff --git a/include/linux/cper.h b/include/linux/cper.h