On Mon, 13 Mar 2017 17:00:59 +0800
Xie XiuQi <xiexi...@huawei.com> 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

Reply via email to