[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y3FycwHICRlwG2GW@zn.tnic>
Date: Sun, 13 Nov 2022 23:40:51 +0100
From: Borislav Petkov <bp@...en8.de>
To: Thiago Macieira <thiago.macieira@...el.com>
Cc: "Joseph, Jithu" <jithu.joseph@...el.com>,
"gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
"Luck, Tony" <tony.luck@...el.com>,
"hdegoede@...hat.com" <hdegoede@...hat.com>,
"markgross@...nel.org" <markgross@...nel.org>,
"tglx@...utronix.de" <tglx@...utronix.de>,
"mingo@...hat.com" <mingo@...hat.com>,
"dave.hansen@...ux.intel.com" <dave.hansen@...ux.intel.com>,
"x86@...nel.org" <x86@...nel.org>, "hpa@...or.com" <hpa@...or.com>,
"Raj, Ashok" <ashok.raj@...el.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"platform-driver-x86@...r.kernel.org"
<platform-driver-x86@...r.kernel.org>,
"patches@...ts.linux.dev" <patches@...ts.linux.dev>,
"Shankar, Ravi V" <ravi.v.shankar@...el.com>,
"Jimenez Gonzalez, Athenas" <athenas.jimenez.gonzalez@...el.com>,
"Mehta, Sohil" <sohil.mehta@...el.com>
Subject: Re: [PATCH v2 12/14] platform/x86/intel/ifs: Add current_batch sysfs
entry
On Sun, Nov 13, 2022 at 01:21:41PM -0800, Thiago Macieira wrote:
> I'm assuming that the kernel would provide different error conditions for
> those. But handling those in shell scripting is very difficult: you'd need to
> start a subshell and parse stderr.
You call that "very difficult"?!
> And this is part of my argument of why it's unlikely people will use their
> shells to do this. That shell function is easily another 10 lines of
> scripting, if it's meant to do its job properly. To make that easier, we've
> developed two tools, one of them the OpenDCDiag tool I linked to, but both
> just happen to be written in C and C++ instead of shell.
I've told you already that having a special tool is always more
problematic. I guess you'll make your own experience distributing it but
if you see pushback and people start complaining, you shouldn't wonder
why.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
Powered by blists - more mailing lists