Re: [PATCH v2] trace, RAS: Use __print_symbolic helper for entry severity for aer_events

From: Borislav Petkov
Date: Mon Apr 14 2025 - 12:34:16 EST


+ Rostedt.

On Mon, Apr 14, 2025 at 08:38:34AM -0700, Sargun Dhillon wrote:
> The chained ternary conditional operator in the perf event format for
> ras:aer_event was causing a misrepresentation of the severity of the event
> when used with "perf script". Rather than building our own hand-rolled
> formatting, just use the __print_symbolic helper to format it.
>
> Specifically, all corrected errors were being formatted as non-fatal,
> uncorrected errors, as shown below with the BAD_TLP errors, which is
> correctable. This is due to a bug in libtraceevent, where chained
> ternary conditions are not parsed correctly.

So because *some* libtraceevent has a bug, we're wagging the dog, not the
tail?

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette