]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
selftests/bpf: Enable get_func_args and get_func_ip tests on arm64
authorLeon Hwang <leon.hwang@linux.dev>
Sat, 31 Jan 2026 14:49:50 +0000 (22:49 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 31 Jan 2026 21:51:04 +0000 (13:51 -0800)
Allow get_func_args, and get_func_ip fsession selftests to run on arm64.

Acked-by: Puranjay Mohan <puranjay@kernel.org>
Tested-by: Puranjay Mohan <puranjay@kernel.org>
Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
Link: https://lore.kernel.org/r/20260131144950.16294-4-leon.hwang@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/get_func_args_test.c
tools/testing/selftests/bpf/progs/get_func_ip_test.c

index 0a3236a7a1097ab4f20773ee0ff469315b7d862b..180ba5098ca12b0e722e6fb23d0fd251bd4c32f8 100644 (file)
@@ -167,7 +167,7 @@ int BPF_PROG(tp_test2)
 }
 
 __u64 test7_result = 0;
-#ifdef __TARGET_ARCH_x86
+#if defined(bpf_target_x86) || defined(bpf_target_arm64)
 SEC("fsession/bpf_fentry_test1")
 int BPF_PROG(test7)
 {
index 65f7e1f182bfe0e816f81d6949841a63ffdcfeb3..43ff836a8ed86de53c19aba3f917253912dd9f28 100644 (file)
@@ -106,7 +106,7 @@ int BPF_URETPROBE(test8, int ret)
 
 __u64 test9_entry_result = 0;
 __u64 test9_exit_result = 0;
-#ifdef __TARGET_ARCH_x86
+#if defined(bpf_target_x86) || defined(bpf_target_arm64)
 SEC("fsession/bpf_fentry_test1")
 int BPF_PROG(test9, int a)
 {