From: Borislav Petkov <bp@alien8.de>
To: "Jonathan (Zhixiong) Zhang" <zjzhang@codeaurora.org>
Cc: Matt Fleming <matt.fleming@intel.com>,
tony.luck@intel.com, fu.wei@linaro.org, al.stone@linaro.org,
rjw@rjwysocki.net, mchehab@osg.samsung.com, mingo@redhat.com,
gong.chen@linux.intel.com, linux-efi@vger.kernel.org,
linux-kernel@vger.kernel.org, linaro-acpi@lists.linaro.org,
vgandhi@codeaurora.org, linux-acpi@vger.kernel.org,
timur@codeaurora.org
Subject: Re: [PATCH V2 2/2] ras: acpi / apei: generate trace event for unrecognized CPER section
Date: Thu, 10 Sep 2015 20:41:36 +0200 [thread overview]
Message-ID: <20150910184136.GC10457@pd.tnic> (raw)
In-Reply-To: <1441747761-12012-3-git-send-email-zjzhang@codeaurora.org>
On Tue, Sep 08, 2015 at 02:29:21PM -0700, Jonathan (Zhixiong) Zhang wrote:
> /*
> + * Raw Events Report
> + *
> + * This event is generated when hardware detected a hardware
> + * error event, which may be of non-standard section as defined
> + * in UEFI spec appendix "Common Platform Error Record", or may
> + * be of sections for which TRACE_EVENT is not defined.
> + *
> + */
> +TRACE_EVENT(raw_event,
> +
> + TP_PROTO(const uuid_le *sec_type,
> + const uuid_le *fru_id,
> + const char *fru_text,
> + u8 sev,
> + const u8 *err,
> + const u32 len),
This is not a raw event - this is an event which has a section type, FRU
ID, text, etc, etc.
A raw event is one which takes exactly two arguments: bytes and count.
What it does is, it dumps the bytes of length count in a block or other
amicably formatted output, most likely hex, similar to hexdump or other
tools; *without* any attempt to interpret it whatsoever.
Its *consumers* do the interpretation. So that that raw_event tracepoint
can be used as a fallback in all cases where the error information is of
unknown structure to the kernel.
Btw, @count should be sanity-checked before calling the tracepoint with
insane values.
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
prev parent reply other threads:[~2015-09-10 18:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-08 21:29 [PATCH V2 0/2] process unrecognized CPER error section Jonathan (Zhixiong) Zhang
[not found] ` <1441747761-12012-1-git-send-email-zjzhang-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2015-09-08 21:29 ` [PATCH V2 1/2] efi: print unrecognized CPER section Jonathan (Zhixiong) Zhang
2015-09-08 21:56 ` Timur Tabi
2015-09-10 18:27 ` Borislav Petkov
2015-09-08 21:29 ` [PATCH V2 2/2] ras: acpi / apei: generate trace event for " Jonathan (Zhixiong) Zhang
2015-09-10 18:41 ` Borislav Petkov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150910184136.GC10457@pd.tnic \
--to=bp@alien8.de \
--cc=al.stone@linaro.org \
--cc=fu.wei@linaro.org \
--cc=gong.chen@linux.intel.com \
--cc=linaro-acpi@lists.linaro.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matt.fleming@intel.com \
--cc=mchehab@osg.samsung.com \
--cc=mingo@redhat.com \
--cc=rjw@rjwysocki.net \
--cc=timur@codeaurora.org \
--cc=tony.luck@intel.com \
--cc=vgandhi@codeaurora.org \
--cc=zjzhang@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).