Repository navigation
xtask: the sdbpf boot test runs the systemd unit tests for cgroup BPF programs - #705
Merged
Merged
Conversation
… programs The sdbpf test runs test-bpf-devices, test-bpf-firewall and test-bpf-foreign-programs of systemd in the systemd tree. RK_SYSTEMD_PACKAGES of tools/systemd/build.sh adds the packages that the test needs (#537).
This was referenced Nov 12, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the
sdbpfboot test for the cgroup programs item of #537.The test boots the systemd tree and runs three unit tests of systemd from /usr/lib/systemd/tests/unit-tests:
BPF_PROG_TYPE_CGROUP_DEVICEprograms to cgroups.BPF_PROG_TYPE_CGROUP_SKBprograms withBPF_PROG_ATTACHandBPF_LINK_CREATE, and pings the loopback interface through them.These tests use
BPF_PROG_ATTACH,BPF_PROG_DETACH,BPF_PROG_QUERYandBPF_LINK_CREATE, and the effective arrays of the cgroup tree. The kernel needs no change for them. The pass is the linerk-sdbpf: passand QEMU exit 1 (the power off).RK_SYSTEMD_PACKAGESof tools/systemd/build.sh adds packages to the systemd tree. Thesdbpftest needsRK_SYSTEMD_PACKAGES="systemd-tests iputils-ping". Without these packages, the test fails with a message that names the variable. Like the other systemd tests, it is skipped when no systemd tree is built.Test results
cargo xtask boot-test -- only sdbpf, x86_64rk-sdbpf: pass, QEMU exit 1-- only bpf(from #701)-- only bpf(from #701)xtask has no systemd tests on arm64, so the arm64 cgroup programs are covered only by the init test.
systemd logs "Failed to get cgroup ID of cgroup ..., ignoring: Operation not supported" two times. This is probably
name_to_handle_aton cgroupfs. systemd ignores it, and it is not part of #537.The full gate did not run.