Skip to content

Commit 7f10da2

Browse files
AsphalttAlexei Starovoitov
authored andcommitted
selftests/bpf: Enable get_func_args and get_func_ip tests on arm64
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>
1 parent e3aa56b commit 7f10da2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tools/testing/selftests/bpf/progs/get_func_args_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ int BPF_PROG(tp_test2)
167167
}
168168

169169
__u64 test7_result = 0;
170-
#ifdef __TARGET_ARCH_x86
170+
#if defined(bpf_target_x86) || defined(bpf_target_arm64)
171171
SEC("fsession/bpf_fentry_test1")
172172
int BPF_PROG(test7)
173173
{

tools/testing/selftests/bpf/progs/get_func_ip_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ int BPF_URETPROBE(test8, int ret)
106106

107107
__u64 test9_entry_result = 0;
108108
__u64 test9_exit_result = 0;
109-
#ifdef __TARGET_ARCH_x86
109+
#if defined(bpf_target_x86) || defined(bpf_target_arm64)
110110
SEC("fsession/bpf_fentry_test1")
111111
int BPF_PROG(test9, int a)
112112
{

0 commit comments

Comments
 (0)