From 5e8a27296be1eb559c0a727884a380ad65c31b3c Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Sat, 4 Feb 2023 13:58:07 +0900 Subject: [PATCH] nixosTests.bpf: disable kfunc test on aarch64 commit fd5d7b258694 ("tests/bpf: add module BTF test") added a new test for module BTF, but that test does not work on aarch64. (merged in https://github.com/NixOS/nixpkgs/pull/214001 ) This is not a regression (kfuncs didn't work on bpftrace 0.16, even if you do not use features requiring BTF like argument name or type), so just disable the test on aarch64 until it is fixed. --- nixos/tests/bpf.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nixos/tests/bpf.nix b/nixos/tests/bpf.nix index 5dc97404772b..150ed0958862 100644 --- a/nixos/tests/bpf.nix +++ b/nixos/tests/bpf.nix @@ -26,8 +26,11 @@ import ./make-test-python.nix ({ pkgs, ... }: { " printf(\"tgid: %d\", ((struct task_struct*) curtask)->tgid); exit() " "}'")) # module BTF (bpftrace >= 0.17) - print(machine.succeed("bpftrace -e 'kfunc:nft_trans_alloc_gfp { " - " printf(\"portid: %d\\n\",args->ctx->portid); " + # test is currently disabled on aarch64 as kfunc does not work there yet + # https://github.com/iovisor/bpftrace/issues/2496 + print(machine.succeed("uname -m | grep aarch64 || " + "bpftrace -e 'kfunc:nft_trans_alloc_gfp { " + " printf(\"portid: %d\\n\", args->ctx->portid); " "} BEGIN { exit() }'")) ''; })