[LTP] [PATCH] sched: add sched sysctl sanity test

Petr Vorel pvorel@suse.cz
Fri Sep 1 19:48:15 CEST 2023


Hi Cyril,

...
> +++ b/testcases/kernel/sched/sysctl/proc_sched_rt01.c
> @@ -0,0 +1,115 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> +/*
> + * Copyright (C) Cyril Hrubis <chrubis@suse.cz>
> + */
> +
> +/*\
> + * [Description]
> + *
> + * Sanity tests for the /proc/sys/kernel/sched_r* files.
> + *
> + * - The sched_rt_period_us range is 1 to INT_MAX
> + *   try invalid values and check for EINVAL
> + *
> + * - The sched_rt_runtime_us range is -1 to INT_MAX
> + *   try invalid values and check for EINVAL

As I wrote to the kernel patch, Documentation/scheduller/sched-rt-group.rst [1]
specifies this as values from -1 to (INT_MAX - 1).

Kind regards,
Petr

[1] https://www.kernel.org/doc/html/latest/scheduler/sched-rt-group.html#system-wide-settings


More information about the ltp mailing list