: 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
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
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
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
-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
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
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
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