[PATCH v2 2/2] selftests/lib.mk: Introduce check to validate required configs

2024-12-20 Thread Siddharth Menon
: Miroslav Benes Signed-off-by: Siddharth Menon --- v1->v2: moved the config checking logic to a separate perl script tools/testing/selftests/lib.mk | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) mode change 100644 => 100755 tools/testing/selftests/lib.mk diff --git a

[PATCH v2 1/2] selftests: Introduce script to validate required configs

2024-12-20 Thread Siddharth Menon
with value 0.In order to get debug output, set the environment variable LOCALMODCONFIG_DEBUG=1. The code for extracting the current kernel configs is adapted from scripts/kconfig/streamline_config.pl. Suggested-by: Petr Mladek Suggested-by: Miroslav Benes Signed-off-by: Siddharth Menon --- v1

[PATCH v2 0/2] update kselftest framework to check for required configs

2024-12-20 Thread Siddharth Menon
Currently, kselftests does not have a generalised mechanism to skip compilation and run tests when required kernel configuration options are disabled. This patch series adresses this issue by checking whether all required configs from selftest//config are enabled in the current kernel Siddharth

[PATCH 3/3] selftests/livepatch: Check if required config options are enabled

2024-12-05 Thread Siddharth Menon
When CONFIG_LIVEPATCH is disabled, compilation fails due to the required structs from the livepatch header file being undefined. This checks for whether CONFIG_LIVEPATCH and CONFIG_DYNAMIC_DEBUG are enabled before compiling livepatch self-tests. Signed-off-by: Siddharth Menon --- tools/testing

[PATCH 2/3] selftests/lib.mk: Introduce check to validate required configs

2024-12-05 Thread Siddharth Menon
-by: Miroslav Benes Reviewed-by: Shuah Khan Signed-off-by: Siddharth Menon --- tools/testing/selftests/lib.mk | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk index d6edcfcb5be8..7ca713237bf7

[PATCH] selftests/livepatch: Check if CONFIG_LIVEPATCH is enabled

2024-11-06 Thread Siddharth Menon
When CONFIG_LIVEPATCH is disabled, compilation fails due to the required structs from the livepatch header file being undefined. This checks for CONFIG_LIVEPATCH in order to verify that it is enabled before compiling livepatch self-tests. Reviewed-by: Shuah Khan Signed-off-by: Siddharth Menon

[PATCH v2] selftests/proc: Add test to check unmapped process

2024-10-01 Thread Siddharth Menon
enting the child from proceeding to the next instruction. Signed-off-by: Siddharth Menon --- v1->v2: Removed redundant parenthesis, fixed other checkpatch warnings. Revised commit message based on feedback. tools/testing/selftests/proc/proc-empty-vm.c | 56 +--- 1 fil

[PATCH] selftests/proc/proc-empty-vm.c: Test for unmapped process

2024-09-30 Thread Siddharth Menon
Check if VMsize is 0 to determine whether the process has been unmapped. The child process cannot signal the parent that it has unmapped itself, as it no longer exists. This includes unmapping the text segment, preventing the child from proceeding to the next instruction. Signed-off-by: Siddharth