[PATCH] selftests/seccomp: report errno and add hints on failure

2025-05-17 Thread Sameeksha Sankpal
Signed-off-by: Sameeksha Sankpal --- tools/testing/selftests/seccomp/seccomp_bpf.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c b/tools/testing/selftests/seccomp/seccomp_bpf.c index 14ba51b52095..d6a85d7b26da 100644

[PATCH v2] selftests/seccomp: Improve error logging in get_proc_stat()

2025-05-27 Thread Sameeksha Sankpal
Use TH_LOG to report failure when reading /proc//stat in get_proc_stat(), following kernel test framework conventions. Previously, printf() was used which is discouraged. Suggested-by: Kees Cook Signed-off-by: Sameeksha Sankpal --- v1 -> v2: - Used TH_LOG instead of printf for error logg

[PATCH v3] selftests/seccomp: Fix indentation and rebase error logging patch

2025-05-29 Thread Sameeksha Sankpal
Rebase the error logging enhancement for get_proc_stat() against the upstream seccomp tree with proper indentation formatting. Suggested-by: Kees Cook Signed-off-by: Sameeksha Sankpal --- v1 -> v2: - Used TH_LOG instead of printf for error logging - Moved variable declaration to the top