[LTP] [Draft PATCH] lib: add TST_DYNAMICAL_RUNTIME option
Li Wang
liwang@redhat.com
Wed Nov 27 09:21:42 CET 2024
Modify starvation.c by adding ".max_runtime = TST_DYNAMICAL_RUNTIME".
Test on general kernel:
# ./starvation
tst_tmpdir.c:316: TINFO: Using /tmp/LTP_stanNtz1s as tmpdir (xfs filesystem)
tst_test.c:1894: TINFO: LTP version: 20240930
tst_test.c:1898: TINFO: Tested kernel: 6.12.0-30.el10.ppc64le #1 SMP Tue
Nov 19 13:50:01 EST 2024 ppc64le
tst_test.c:1718: TINFO: Timeout is decided in running time
../include/tst_timer.h:1102: TINFO: CPU did 120000000 loops in 61797us
tst_kconfig.c:88: TINFO: Parsing kernel config
'/lib/modules/6.12.0-30.el10.ppc64le/config'
tst_kconfig.c:531: TINFO: Constraint 'CONFIG_PROVE_LOCKING=y' not satisfied!
tst_kconfig.c:477: TINFO: Variables:
tst_kconfig.c:495: TINFO: CONFIG_PROVE_LOCKING=n
tst_kconfig.c:88: TINFO: Parsing kernel config
'/lib/modules/6.12.0-30.el10.ppc64le/config'
tst_kconfig.c:531: TINFO: Constraint 'CONFIG_LOCKDEP=y' not satisfied!
tst_kconfig.c:477: TINFO: Variables:
tst_kconfig.c:486: TINFO: CONFIG_LOCKDEP Undefined
...
tst_test.c:1729: TINFO: Timeout per run is 0h 01m 31s
starvation.c:98: TINFO: Setting affinity to CPU 0
starvation.c:146: TPASS: Haven't reproduced scheduler starvation.
Summary:
passed 1
failed 0
broken 0
skipped 0
warnings 0
Test on debug-kernel:
# ./starvation
tst_tmpdir.c:316: TINFO: Using /tmp/LTP_staVKoH2k as tmpdir (xfs filesystem)
tst_test.c:1898: TINFO: LTP version: 20240930
tst_test.c:1902: TINFO: Tested kernel: 6.12.0-30.el10.ppc64le+debug #1 SMP
Tue Nov 19 13:41:20 EST 2024 ppc64le
tst_test.c:1718: TINFO: Timeout is decided in running time
../include/tst_timer.h:1102: TINFO: CPU did 120000000 loops in 68663us
tst_kconfig.c:88: TINFO: Parsing kernel config
'/lib/modules/6.12.0-30.el10.ppc64le+debug/config'
tst_kconfig.c:88: TINFO: Parsing kernel config
'/lib/modules/6.12.0-30.el10.ppc64le+debug/config'
...
tst_test.c:1733: TINFO: Timeout per run is 0h 18m 38s
starvation.c:71: TINFO: Setting affinity to CPU 0
starvation.c:116: TPASS: Haven't reproduced scheduler starvation.
Summary:
passed 1
failed 0
broken 0
skipped 0
warnings 0
Li Wang <liwang@redhat.com> wrote:
> +static inline int tst_kconfig_debug_matches(void)
> +{
> + int i, num = 1;
> +
> + for (i = 0; tst_kconf_debug_options[i][0] != NULL; i++)
> + num += tst_kconfig_check(tst_kconf_debug_options[i]);
>
This should be: num += !tst_kconfig_check(tst_kconf_debug_options[i]);
--
Regards,
Li Wang
More information about the ltp
mailing list