[LTP] [PATCH] keyctl02: Add delay between main loop iterations for RT kernels
Petr Vorel
pvorel@suse.cz
Fri Nov 3 20:03:53 CET 2023
Hi Martin,
Reviewed-by: Petr Vorel <pvorel@suse.cz>
...
> +++ b/testcases/kernel/syscalls/keyctl/keyctl02.c
> @@ -29,13 +29,17 @@
> #include "tst_safe_pthread.h"
> #include "tst_test.h"
> +#include "tst_kconfig.h"
> #include "lapi/keyctl.h"
> #define LOOPS 20000
> #define MAX_WAIT_FOR_GC_MS 5000
> #define PATH_KEY_COUNT_QUOTA "/proc/sys/kernel/keys/root_maxkeys"
> +#define KCONFIG_INIT(confname) { .id = confname, .id_len = strlen(confname) }
BTW this could be added (as separate effort) somewhere in the library
(include/tst_common.h) and reused in other tests (well, there are only 3 tests).
Kind regards,
Petr
More information about the ltp
mailing list