Skip to content

Commit a307e4b

Browse files
image-dragonKernel Patches Daemon
authored andcommitted
selftests/bpf: enable fsession_test on riscv64
Now that the RISC-V trampoline JIT supports BPF_TRACE_FSESSION, run the fsession selftest on riscv64 as well as x86_64. Signed-off-by: Menglong Dong <[email protected]>
1 parent 323a054 commit a307e4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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-
#if defined(bpf_target_x86) || defined(bpf_target_arm64)
170+
#if defined(bpf_target_x86) || defined(bpf_target_arm64) || defined(bpf_target_riscv)
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-
#if defined(bpf_target_x86) || defined(bpf_target_arm64)
109+
#if defined(bpf_target_x86) || defined(bpf_target_arm64) || defined(bpf_target_riscv)
110110
SEC("fsession/bpf_fentry_test1")
111111
int BPF_PROG(test9, int a)
112112
{

0 commit comments

Comments
 (0)