summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTelukula Jeevan Kumar Sahu <j-sahu@ti.com>2026-06-04 18:09:07 +0530
committerKhem Raj <khem.raj@oss.qualcomm.com>2026-06-07 18:21:52 -0700
commitd56e22f0d68cf99b052793c80fd9509677e89cea (patch)
tree18bf3557b6bba43a5e8b092beb4e11121d9c54d3
parent447405d1ff7db1478e7d5db5dda7eb0545d5520b (diff)
downloadmeta-openembedded-d56e22f0d68cf99b052793c80fd9509677e89cea.tar.gz
kernel-selftest: add generic architecture-independent self-tests
Add generic kernel self-tests that build cleanly with mainline kernel (6.18+), work on all architectures, and either PASS or SKIP gracefully at runtime. Tests added: - acct: BSD process accounting - breakpoints: hardware breakpoint handling - cachestat: page cache statistics (cachestat syscall) - cgroup: control group v1 interface - clone3: clone3 syscall with flags - core: syscalls like close_range, unshare - coredump: core dump generation - dmabuf-heaps: DMA-BUF heap allocator - efivarfs: EFI variable filesystem - filelock: POSIX file locking (OFD locks) - filesystems: basic filesystem operations - filesystems/binderfs: Android Binder IPC (skips if CONFIG_ANDROID_BINDERFS=n) - filesystems/epoll: epoll syscall extensions - fpu: floating-point unit state - ftrace: function tracer interface - futex: fast userspace mutex - gpio: general purpose I/O - ipc: System V IPC primitives - kcmp: compare kernel resource identifiers - kvm: kernel-based virtual machine - landlock: LSM sandboxing (skips if CONFIG_SECURITY_LANDLOCK=n) - locking: ww_mutex deadlock avoidance - lsm: Linux Security Module interface - membarrier: memory barrier syscalls - mincore: mincore syscall (page residency) - mount: mount syscall (unprivileged variants) - mount_setattr: mount attribute syscall - move_mount_set_group: move_mount peer group - mseal_system_mappings: system mapping sealing - namespaces: PID/UTS/IPC/mount/network namespaces - net: networking stack - net/mptcp: multipath TCP - pidfd: pidfd-based process management - pid_namespace: PID namespace limits - proc: /proc filesystem interface - ptrace: process tracing - rlimits: resource limits - rseq: restartable sequences - sched: scheduler and real-time classes - seccomp: secure computing mode - signal: signal handling - size: ELF size utilities - splice: zero-copy data transfers - sync: cache synchronization - syscall_user_dispatch: user-space syscall dispatch - sysctl: sysctl interface - tc-testing: traffic control - timens: time namespaces - tmpfs: tmpfs filesystem - tpm2: Trusted Platform Module 2.0 - tty: TTY layer - uevent: kernel uevent subsystem - user_events: tracepoint user interface - vDSO: virtual dynamic shared object - watchdog: hardware watchdog timer - zram: compressed RAM block device Tested on aarch64 device BeaglePlay(AM6254 SoC): - Tests either PASS or SKIP gracefully Depends-on: kernel-selftest: add libcap to build and runtime dependencies Signed-off-by: Telukula Jeevan Kumar Sahu <j-sahu@ti.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
-rw-r--r--meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb58
1 files changed, 57 insertions, 1 deletions
diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
index ab544859d8..7850ddb6c9 100644
--- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
+++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
@@ -51,11 +51,67 @@ DEBUG_PREFIX_MAP:remove = "-fcanon-prefix-map"
51 51
52TEST_LIST = "\ 52TEST_LIST = "\
53 ${@bb.utils.filter('PACKAGECONFIG', 'bpf firmware mm', d)} \ 53 ${@bb.utils.filter('PACKAGECONFIG', 'bpf firmware mm', d)} \
54 acct \
55 breakpoints \
56 cachestat \
57 cgroup \
58 clone3 \
59 core \
60 coredump \
54 cpufreq \ 61 cpufreq \
55 cpu-hotplug \ 62 cpu-hotplug \
56 rtc \ 63 dmabuf-heaps \
64 efivarfs \
65 filelock \
66 filesystems \
67 filesystems/binderfs \
68 filesystems/epoll \
69 fpu \
70 ftrace \
71 futex \
72 gpio \
73 ipc \
74 kcmp \
75 kvm \
76 landlock \
77 locking \
78 lsm \
79 membarrier \
80 mincore \
81 mount \
82 mount_setattr \
83 move_mount_set_group \
84 mseal_system_mappings \
85 namespaces \
86 net \
87 net/mptcp \
88 pidfd \
89 pid_namespace \
90 proc \
91 ptrace \
57 ptp \ 92 ptp \
93 rlimits \
94 rseq \
95 rtc \
96 sched \
97 seccomp \
98 signal \
99 size \
100 splice \
101 sync \
102 syscall_user_dispatch \
103 sysctl \
104 tc-testing \
105 timens \
58 timers \ 106 timers \
107 tmpfs \
108 tpm2 \
109 tty \
110 uevent \
111 user_events \
112 vDSO \
113 watchdog \
114 zram \
59" 115"
60EXTRA_OEMAKE = '\ 116EXTRA_OEMAKE = '\
61 CROSS_COMPILE=${TARGET_PREFIX} \ 117 CROSS_COMPILE=${TARGET_PREFIX} \