371 Commits

Author SHA1 Message Date
Nora Schiffer
c6722579be
kernel-selftest: do not run 'make clean'
Due to the way the kernel-selftest sources are set up, the toplevel
Makefile does not work and `make clean` will always result in a "The
source tree is not clean, please run 'make ARCH=... mrproper'" error.

Avoid running it by setting CLEANBROKEN = "1", so rebuilding the recipe
without a clean (which often happens when the kernel has changed) does
not fail.

Signed-off-by: Nora Schiffer <nora.schiffer@ew.tq-group.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-06-09 07:26:33 -07:00
Telukula Jeevan Kumar Sahu
d56e22f0d6
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>
2026-06-07 18:21:52 -07:00
Telukula Jeevan Kumar Sahu
447405d1ff
kernel-selftest: add libcap to build and runtime dependencies
libcap is needed unconditionally for capability-aware tests such as
breakpoints, cgroup, clone3, futex, ptrace, and seccomp.  Add it to
DEPENDS so it is always available at build time and to RDEPENDS so the
installed tests can call cap_get_proc() and friends at runtime.

bash and libgcc are also added to RDEPENDS: bash is required by several
test shell scripts, and libgcc provides libgcc_s.so needed by tests
that use GCC-emitted unwinding stubs.

Signed-off-by: Telukula Jeevan Kumar Sahu <j-sahu@ti.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-06-07 18:21:51 -07:00
Li Zhou
e8910a6acc
minicoredumper: upgrade 2.0.7 -> 2.0.8
Upgrade minicoredumper from 2.0.7 to 2.0.8.
Remove below patches because they have been merged by 2.0.8
upstream version:
0001-corestripper-Fix-uninitialized-warning.patch
0002-Fix-2038-year-problem-in-timestamp-handling.patch
0001-coreinject-fix-assignment-of-const-qualified-type.patch

Changelog:
===========
* Address multiple compiler warnings and errors found by more recent
  toolchains. The issues existed technically, but were not a problem
  for real-world usage scenarios.

* Relocate the man pages for sbin binaries to section 8.

* Fix timestamp value in the core dump directory name for 32-bit
  systems with a 64-bit time_t definition after 2038-01-19.

* Improve status query for init script to check core_pattern usage and
  handle when the regd daemon is not enabled.

* Known problems:

    - If tar is active, core files larger than 8GB will be
      truncated. If it is known that the core files will be >8GB and
      the full core file is needed, tar must be disabled.

License-Update:
The COPYING changes in upstream commit 941079541a
update Copyright end dates to reflect when changes were last committed.
The COPYING.LGPLv2.1 change in upstream commit 00e3b2fdf7 replaces
the FSF postal mailing address with a URL as recommended by the GNU FAQ.
No license change, no impact on the recipe licensing.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-06-07 18:21:47 -07:00
Wang Mingyu
e3d55327f3
python3-drgn: upgrade 0.1.0 -> 0.2.0
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-05-13 20:46:39 -07:00
He Zhe
0a3798eaed
bpftool-native: Fix -Wdiscarded-qualifiers errors for glibc 2.42+
Backport a patch from kernel to fix the following build errors.

bbpf.c: In function ‘kallsyms_cb’:
| libbpf.c:8192:13: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
|  8192 |         res = strstr(sym_name, ".llvm.");
|       |             ^
| libbpf.c: In function ‘avail_kallsyms_cb’:
| libbpf.c:11497:31: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
| 11497 |                 if (!(sym_sfx = strstr(sym_name, ".llvm.")))
|       |                               ^
| libbpf.c: In function ‘resolve_full_path’:
| libbpf.c:12085:35: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
| 12085 |                         next_path = strchr(s, ':');
|       |

Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-05-13 00:21:39 -07:00
Joao Marcos Costa
335045d3fb
kernel-selftest: add missing sources if mm is enabled
Some headers come from 'mm' (in the top source directory, i.e. the root of
Linux's sources), as in the exampels below:

Makefile:LOCAL_HDRS += $(selfdir)/mm/local_config.h $(top_srcdir)/mm/gup_test.h
cow.c:#include "../../../../mm/gup_test.h"
gup_longterm.c:#include "../../../../mm/gup_test.h"
gup_test.c:#include <mm/gup_test.h>
hmm-tests.c:#include <mm/gup_test.h>
uffd-unit-tests.c:#include "../../../../mm/gup_test.h"

Add this directory to KERNEL_SELFTEST_SRC if 'mm' PACKAGECONFIG is enabled.

Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-04-20 07:35:38 -07:00
Joao Marcos Costa
06ddb535df
kernel-selftest: fix mm selftests dependencies
Add numa (numactl), as required by rmap, migration, and others.

Add liburing, otherwise some tests would be disabled.

Moreover, liburing's availability is checked in a shell script executed
prior to the compilation of the individual test cases. This script,
however, does not read CFLAGS.

Backport a fix [1] from mainline to address this issue.

[1] 7f532d19c8

Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-04-20 07:35:38 -07:00
Joao Marcos Costa
a407a3e533
kernel-selftest: drop libhugetlbfs
The support of libhugetlbfs was removed from mainline Linux a while ago,
since v6.1 [1].

Since libhugetlbfs was the main reason to remove 'mm' selftests for some
specific architectures, the respective operations should only remove bpf.

Update the recipe to remove libhugetlbfs as a dependency of mm, and thus
unblock this test category for some targets.

[1] 6f83d6c74e

Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-04-20 07:35:38 -07:00
Joao Marcos Costa
fcae7611c1
kernel-selftest: rename vm selftests to mm
Since v6.10 [1], this category of selftests was renamed
to 'mm'.

Update the recipe accordingly.

I left a mention to the previous name (i.e., 'vm') just in case.

[1]: baa489fabd

Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-04-20 07:35:38 -07:00
Khem Raj
28f7c9cf68
libbpf: Upgrade to 1.7.0 release
User space-side features

* bpf_map__set_exclusive_program() and bpf_map__exclusive_program() APIs for exclusive map creation;
* bpf_program__assoc_struct_ops() and bpf_prog_assoc_struct_ops() APIs to associate a non-struct_ops BPF program with a struct_ops map;
* btf__permute() API to rearrange BTF types in-place according to a provided mapping;
* BTF type lookup optimization: binary search for btf__find_by_name() and btf__find_by_name_kind();
* btf__add_btf() now accepts split BTF sources;
* fsession support (SEC("fsession+") / SEC("fsession.s+"));
* BPF_F_CPU and BPF_F_ALL_CPUS flags support for per-CPU map operations;
* arena globals are moved to the end of the arena mmap region if kernel supports it;
* support for LLVM-generated indirect jump tables (BPF ISA v4) via .jumptables ELF section and BPF_MAP_TYPE_INSN_ARRAY maps;
* avoid expensive kallsyms parsing when kprobe.session target is an exact function match;
* new dont_enable option in struct bpf_perf_event_opts to suppress perf event auto-enablement;

BPF-side features

* USDT SIB (Scale-Index-Base) addressing support;
* dynptr helper signatures (bpf_dynptr_from_mem, bpf_dynptr_read, bpf_dynptr_write, bpf_dynptr_data) widened from 32-bit to 64-bit size/offset parameters;

Bug fixes
 * As usual, a number of bug fixes included, see full commit log for details.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-03-30 19:46:38 -07:00
Gyorgy Sarvari
ba323d198f
bpftool: add missing build dependency
Add openssl as a dependency. Fixes compilation error:

| sign.c:16:10: fatal error: openssl/opensslv.h: No such file or directory
|    16 | #include <openssl/opensslv.h>

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-03-20 14:13:09 -07:00
Khem Raj
0f254f6b0f
agent-proxy: Ensure that OE cflags are passed properly to build
Current builds were extracting the relevance from LDFLAGS, which is
not the right thing to do. cflags carry the right elements to ensure
reproducibility with OE, so ensure its respected by makefile

Fixes
WARNING: agent-proxy-1.97-r0 do_package_qa: QA Issue: File /usr/bin/.debug/agent-proxy in package agent-proxy-dbg contains reference to TMPDIR [buildpaths]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-03-20 14:13:05 -07:00
Gyorgy Sarvari
ede40e0d90
minicoredumper: backport patch to build with glibc 2.43
As the subject says.

Fixes compilation error:
| ../../../sources/minicoredumper-2.0.7/src/coreinject/main.c: In function 'inject_data':
| ../../../sources/minicoredumper-2.0.7/src/coreinject/main.c:248:11: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
|   248 |         p = strrchr(b_fname, '/');

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-03-20 09:51:43 -07:00
Peter Bergin
46ae413c63
rtla: add recipe for real-time linux analysis tool
rtla source code is present in the kernel source tree at tools/tracing/rtla.
There is another build option for rtla to enable bpf bindings, this was
not a quick one to get working and left as a future improvement.

Makefile for rtla has evolved in newer kernels (v6.9). Some fixes needed for
support with older kernels. This commit was tested against 6.18 and 6.8.

Also add rtla to packagegroup-meta-oe-benchmarks.

Signed-off-by: Peter Bergin <peter@berginkonsult.se>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-03-17 13:25:12 -07:00
Peter Bergin
d6815efa84
cpupower: keep header files for other packages and package systemd service
When having a DEPENDS against cpupower it need to leave its header files.
Remove that cleanup that has been present since the beginning of the recipe
without any (to me) known reason.

cpupower ship a systemd service and config file in kernel source tree
since kernel 6.16. Package them as a separate package cpupower-systemd to
be installed if wanted.

Add cpupower to packagegroup-meta-oe to be included in builds of all
packages.

Signed-off-by: Peter Bergin <peter@berginkonsult.se>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-03-17 13:25:12 -07:00
Wang Mingyu
b293419af6
python3-drgn: upgrade 0.0.33 -> 0.1.0
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-03-02 19:25:51 -08:00
Mingli Yu
d3cdd51235
agent-proxy: Restore DEBUG_PREFIX_MAP in TARGET_LDFLAGS
oe-core has removed DEBUG_PREFIX_MAP from TARGET_LDFLAGS [1], restore
it to fix the below error.

ERROR: agent-proxy-1.97-r0.wr2600 do_package_qa: QA Issue: File /usr/bin/.debug/agent-proxy in package agent-proxy-dbg contains reference to TMPDIR [buildpaths]
ERROR: agent-proxy-1.97-r0.wr2600 do_package_qa: Fatal QA errors were found, failing task.

[1] https://git.openembedded.org/openembedded-core/commit/?id=1797741aad02b8bf429fac4b81e30cdda64b5448

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-02-06 10:06:20 -08:00
Weisser, Pascal
c3754d7d90
minicoredumper: Add HOMEPAGE variable
Add HOMEPAGE variable to minicoredumper recipe.

Signed-off-by: Weisser, Pascal <pascal.weisser.ext@karlstorz.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-01-22 22:01:05 -08:00
Liwei Song
461e5620bc
tmon: add a new recipe to generate tmon
tmon is a monitoring and testing tool for Linux kernel thermal
subsystem, it help visualize, tune, and test this complex system.

Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-01-21 15:29:20 -08:00
Wang Mingyu
0fbbddd537
libtracefs: upgrade 1.8.2 -> 1.8.3
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-01-12 08:53:43 -08:00
Weisser, Pascal
63bb5dc590
trace-cmd: Add HOMEPAGE variable
Add HOMEPAGE variable to trace-cmd recipe.

Signed-off-by: Weisser, Pascal <pascal.weisser.ext@karlstorz.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-12-10 08:58:47 -08:00
Jiaying Song
b5685fb375
minicoredumper: fix 2038 year problem in timestamp handling
The minicoredumper has multiple 2038 year problems where 'long' type
variables and strtol() function calls cause overflow on 32-bit systems
when handling timestamps after 2038-01-19.

This leads to incorrect timestamp formatting in core dump directory
names (e.g., sleep40s.20380119.031407+0000.598).

Fix by changing 'long timestamp' to 'time_t timestamp' and replacing
strtol() with strtoll() to properly handle 64-bit timestamps on
32-bit systems.

Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-12-10 08:56:16 -08:00
Khem Raj
07e4d9797b
ktls-utils: Fix build with musl
CMSG_NXTHDR results in different signed-ness for cmsghdr
on musl.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-12-10 08:56:15 -08:00
Khem Raj
a5bf664a15
ktls-utils: Fix out of tree builds
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-12-10 08:56:14 -08:00
Khem Raj
1ccdc56c01
ktls-utils: Upgrade to 1.3.0
Drop musl patch as it is fixed upstream [1]

[1] 3b419faa9f

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-12-10 08:56:13 -08:00
Mingli Yu
31a08525be
bpftool-native: Empty DEBUG_PREFIX_MAP_EXTRA
Most host gcc doesn't support -fcanon-prefix-map right now, so
empty DEBUG_PREFIX_MAP_EXTRA to fix the below build error.
 | gcc: error: unrecognized command-line option ‘-fcanon-prefix-map’; did you mean ‘-fmacro-prefix-map=’?

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-12-05 17:01:11 -08:00
Yi Zhao
bd745115de
crash: add zlib-native to depends for crash-cross
Fix the following error when using buildtools-extended:

va_server.c:20:10: fatal error: zlib.h: No such file or directory
   20 | #include <zlib.h>
      |          ^~~~~~~~

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-12-02 09:18:19 -08:00
yuyu
f00b6ad12f
trace-cmd: Update SRC_URI to use HTTPS protocol
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-11-29 08:40:33 -08:00
Changqing Li
20b8ac86a1
libtracefs: support reproducible builds
[snip of Makefile]
 # bison will create both sqlhist.tab.c and sqlhist.tab.h
sqlhist.tab.h:
sqlhist.tab.c: sqlhist.y sqlhist.tab.h
    bison --debug -v --report-file=bison.report -d -o $@ $<
[snip]

sources of libtracefs is fetched by git, the mtime of sqlhist.y,
sqlhist.tab.c is random. so sometimes, sqlhist.tab.c is regenerated,
sometimes, sqlhist.tab.c in original sources in used. bison used to
gernerate sqlhist.tab.c by upstream libtracefs maybe has different
version with the build host one. This make the final libtracefs.so not
reproducible. This fix touch sqlhist.tab.c to make it has the newest
mtime, and sqlhist.tab.c is not regenerated during build.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-11-20 02:01:29 -08:00
Ankur Tyagi
6b15a5a293
libtracefs: upgrade 1.8.1 -> 1.8.2
New version added trace_sql.bash for tracefs_sql() bash completions.

Changelog:
https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/tag/?h=libtracefs-1.8.2

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-11-14 07:39:48 -08:00
Ankur Tyagi
11a10b9661
libbpf: upgrade 1.5.0 -> 1.6.2
Dropped patches which are now merged in the upstream

Changelog:
https://github.com/libbpf/libbpf/releases/tag/v1.5.1
https://github.com/libbpf/libbpf/releases/tag/v1.6.0
https://github.com/libbpf/libbpf/releases/tag/v1.6.1
https://github.com/libbpf/libbpf/releases/tag/v1.6.2

Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-11-14 07:39:47 -08:00
Wang Mingyu
353a0af12a
python3-drgn: upgrade 0.0.32 -> 0.0.33
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-11-06 16:00:50 -08:00
Tudor Ambarus
6bb43f7a55
kernel-selftest: add cpufreq and cpu-hotplug tests
Add cpufreq and cpu-hotplug tests to kernel-selftest.
Tested with pixel6.

Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-09-10 09:17:25 -07:00
Khem Raj
6d3a650372
bpftool,bpftool-native: Separate out native recipe
build uses prepared sourcedir for kernel and relying
on target kernel recipe to prepare this is not the correct
thing for native package. Since the kernel will need target
dependencies cross-compiler etc. to build/prepare the kernel sourcedir

This issue is revealed when bpftool-native is built for riscv64
it ends up in build errors

ERROR: bpftool-native-1.0-r0 do_configure: The sstate manifest for task 'linux-libc-headers:populate_sysroot' (multilib variant '') could not be found.
The pkgarchs considered were: qemuriscv64, allarch, x86_64_x86_64-nativesdk.
But none of these manifests exists:
    /mnt/b/yoe/master/sources/poky/build/tmp/sstate-control/manifest-qemuriscv64-linux-libc-headers.populate_sysroot
    /mnt/b/yoe/master/sources/poky/build/tmp/sstate-control/manifest-allarch-linux-libc-headers.populate_sysroot
    /mnt/b/yoe/master/sources/poky/build/tmp/sstate-control/manifest-x86_64_x86_64-nativesdk-linux-libc-headers.populate_sysroot
ERROR: Logfile of failure stored in: /mnt/b/yoe/master/sources/poky/build/tmp/work/x86_64-linux/bpftool-native/1.0/temp/log.do_configure.2509356

Therefore separate it out into independent recipe and use latest stable
kernel to build it.

Enable musl builds as well for bpftool, it works now.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-09-06 14:17:15 -07:00
Nylon Chen
9472f4a728
kernel-selftest: handle missing -64.h headers
Some toolchains ship only bits/*.h without the -64.h suffix,
causing the recipe to fail. Add a fallback to use *.h if
*-64.h is not found, and warn if neither exists.

Signed-off-by: Nylon Chen <nylon.chen@sifive.com>
Signed-off-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-08-28 07:56:01 -07:00
Khem Raj
7b7d912e7a
oprofile: Adjust ptests for UNPACKDIR changes
Location of S have moved under UNPACKDIR and this
needs to reflect in ptest install structure as some
of tests access the sourcedirs relative to itself
during run, these locations are built into tests

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-08-13 10:09:25 -07:00
Wang Mingyu
318697a2ba
ktls-utils: upgrade 1.0.0 -> 1.2.1
0002-tlshd-configure.ac-Use-AC_CHECK_HEADER-instead-of-AC.patch
removed since it's included in 1.2.1

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-30 08:03:06 -07:00
jacobpanov
f30afbe04c
kernel-selftest: Fix PTP selftest compilation for kernel 6.7+
The PTP selftest fails to compile with kernel versions 6.7+ due to
missing header definitions for PTP_MASK_CLEAR_ALL and PTP_MASK_EN_SINGLE.
These definitions were introduced in kernel v6.7 with commit c5a445b.

This fix adds kernel headers to CFLAGS during compilation to ensure
the required definitions are available.

Error before fix:
testptp.c:613:31: error: 'PTP_MASK_CLEAR_ALL' undeclared
testptp.c:615:38: error: 'PTP_MASK_EN_SINGLE' undeclared

Fixes: #878
Signed-off-by: Jacob Panov <jacobpanov@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-09 09:16:08 -07:00
Khem Raj
87d1e803f5
kernel-selftest: Remove duplicate setting for S
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-28 11:04:23 -07:00
Wang Mingyu
e407873280
python3-drgn: upgrade 0.0.31 -> 0.0.32
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-26 07:24:02 -07:00
Alexander Kanavin
fc78d37ff0
meta-openembedded/all: adapt to UNPACKDIR changes
Please see
https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265
for what changes are needed, and sed commands that can be used to make them en masse.

I've verified that bitbake -c patch world works with these, but did not run a world
build; the majority of recipes shouldn't need further fixups, but if there are
some that still fall out, they can be fixed in followups.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-25 06:44:52 -07:00
Kéléfa Sané
df7e1b55d5
crash: fix reproducibility
Fix reproducibility issue by retrieving the compiler version from the CC
env variable, which define the compiler used in the build and not from
the native gcc compiler install in the host machine.

Signed-off-by: Kéléfa Sané <kelefa.sane@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-05-27 10:33:01 -07:00
Peter Marko
bf2b63535e
libbpf: patch CVE-2025-29481
Backport patch which mentions PoC [1] which is also linked from [2].

[1] 806b4e0a9f
[2] https://nvd.nist.gov/vuln/detail/CVE-2025-29481

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-05-06 13:13:20 -07:00
Alistair Francis
54a25bdc67
ktls-utils: Update to version 1.0
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-05-05 23:13:19 -07:00
Alistair Francis
4f7e8bd6e1
blktests: Initial commit
Add support for building the Linux blktests [1] into a guest image.

Once booted the tests can be run with commands like this:

```shell
cd /usr/blktests/; NVMET_TRTYPES=tcp ./check nvme/062
```

1: https://github.com/osandov/blktests

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-30 22:42:38 -07:00
Wang Mingyu
784461c084
python3-drgn: upgrade 0.0.30 -> 0.0.31
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-23 19:35:04 -07:00
Khem Raj
ac107efa0c
bpftool: Use -ffile-prefix-map instead of -fdebug-prefix-map
ffile-prefix-map is superset for reproducibility

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-22 09:10:56 -07:00
Changqing Li
d6c334c526
turbostat: make turbostat's version align with kernel version
* Current PV 3.4 is the kernel version when the recipe is newly added,
set PKGV to KERNEL_VERSION to make it always align with kernel version
* turbostat has its runtime version, set CHECK_VERSION_PV to this version to mute
the version mismatch warning
[snip of turbostat.c]
void print_version()
{
    fprintf(outf, "turbostat version 2024.07.26 - Len Brown <lenb@kernel.org>\n");
}
[snip]

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-15 12:52:20 -07:00
Khem Raj
528df68be6
kernel-selftest: Convert to use a dedicated UNPACKDIR
Avoid following warning by using a dedicated unpack directory for sources.

WARNING: kernel-selftest-1.0-r0 do_unpack: kernel-selftest: the directory ${WORKDIR}/${BP} (/home/kraj200/yoe/build/tmp/work/qemux86_64-yoe-linux/kernel-self test/1.0/kernel-selftest-1.0) pointed to by the S variable doesn't exist - please set S within the recipe to point to where the source has been unpacked to

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-11 20:51:29 -07:00