mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-04 04:37:39 -04:00
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 <dongml2@chinatelecom.cn> Tested-by: Björn Töpel <bjorn@kernel.org> Acked-by: Björn Töpel <bjorn@kernel.org> Link: https://lore.kernel.org/r/20260208053311.698352-4-dongml2@chinatelecom.cn Signed-off-by: Alexei Starovoitov <ast@kernel.org> Reviewed-by: Pu Lehui <pulehui@huawei.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
committed by
Alexei Starovoitov
parent
35b3515be0
commit
0265c1fd91
@@ -167,7 +167,7 @@ int BPF_PROG(tp_test2)
|
||||
}
|
||||
|
||||
__u64 test7_result = 0;
|
||||
#if defined(bpf_target_x86) || defined(bpf_target_arm64)
|
||||
#if defined(bpf_target_x86) || defined(bpf_target_arm64) || defined(bpf_target_riscv)
|
||||
SEC("fsession/bpf_fentry_test1")
|
||||
int BPF_PROG(test7)
|
||||
{
|
||||
|
||||
@@ -106,7 +106,7 @@ int BPF_URETPROBE(test8, int ret)
|
||||
|
||||
__u64 test9_entry_result = 0;
|
||||
__u64 test9_exit_result = 0;
|
||||
#if defined(bpf_target_x86) || defined(bpf_target_arm64)
|
||||
#if defined(bpf_target_x86) || defined(bpf_target_arm64) || defined(bpf_target_riscv)
|
||||
SEC("fsession/bpf_fentry_test1")
|
||||
int BPF_PROG(test9, int a)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user