From: Shan <sinadin.shan@oracle.com>
To: Chris Hyser <chris.hyser@oracle.com>,
Shrikanth Hegde <sshegde@linux.ibm.com>
Cc: "linux-kselftest@vger.kernel.org"
<linux-kselftest@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"shuah@kernel.org" <shuah@kernel.org>
Subject: Re: [PATCH] selftests: sched: add sched as a default selftest target
Date: Thu, 20 Feb 2025 21:53:58 +0530 [thread overview]
Message-ID: <0d22f89a-d896-44ed-b4a9-c860c63450fa@oracle.com> (raw)
In-Reply-To: <CO1PR10MB4705883FED10DAE126DEC9D59BC42@CO1PR10MB4705.namprd10.prod.outlook.com>
On 20-02-2025 09:26 pm, Chris Hyser wrote:
> From: Sinadin Shan <sinadin.shan@oracle.com>
> Sent: Thursday, February 20, 2025 9:52 AM
> To: Shrikanth Hegde; Chris Hyser
> Cc: linux-kselftest@vger.kernel.org; linux-kernel@vger.kernel.org; shuah@kernel.org
> Subject: Re: [PATCH] selftests: sched: add sched as a default selftest target
>
>> On 20-02-2025 01:15 pm, Shrikanth Hegde wrote:
>>
>>> If CONFIG_SCHED_CORE=n, the test fails. So you might end up seeing
>>> default selftests failing on such systems? or this is only compiling?>
>>
>> Yes, this patch would enable the test to be compiled and run by default.
>>
>>> Likely the selftests/sched needs to modified for CONFIG_SCHED_CORE=n
>>
>> Agree. Chris, I suppose then a graceful skip would be a more right
>> option for kernels with core scheduling disabled?
>
> By graceful skip, do you mean a 0 return code and not printing failure? I confess,
> I originally wrote the test as stand-alone for me to get the prctl code right and it
> got shoved in here.
By graceful skip, I meant printing that SCHED_CORE is disabled for the
kernel and exiting with a return code 4 on such kernels. This would also
make the kselftest framework pick up the skip, say when compiled tests
are run through run_kselftest.sh
>
> I guess my question is what if SCHED_CORE was supposed to be configed into
> the test kernel? Silently burying the error might be bad. I'm not strongly tied to
> that, just looking for opinions. At the same time, if you put the orig change in,
> people w/o SCHED_CORE on will start seeing "failures" they didn't see before,
> yes? and that seems bad.
Yes, that seems bad as rightly pointed out by Shrikant. I have a patch
that does the above mentioned skip, and if skipping is a right option to
take here I can send it in the next version.
Regards,
Shan
>
> I'm happy to make this better behaved. I'm the reason it is the way it is.
>
> -chrish
>
>
next prev parent reply other threads:[~2025-02-20 16:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-19 6:46 Sinadin Shan
2025-02-19 16:03 ` Chris Hyser
2025-02-20 7:45 ` Shrikanth Hegde
2025-02-20 14:52 ` Shan
2025-02-20 15:56 ` Chris Hyser
2025-02-20 16:23 ` Shan [this message]
2025-02-21 4:21 ` Chris Hyser
2025-02-21 6:00 ` Chris Hyser
2025-02-21 9:09 ` Shan
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=0d22f89a-d896-44ed-b4a9-c860c63450fa@oracle.com \
--to=sinadin.shan@oracle.com \
--cc=chris.hyser@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=shuah@kernel.org \
--cc=sshegde@linux.ibm.com \
/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
all inboxes | Powered by JetHome®