]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf, riscv: add fsession support for trampolines
authorMenglong Dong <menglong8.dong@gmail.com>
Sun, 8 Feb 2026 05:33:10 +0000 (13:33 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 13 Feb 2026 22:14:27 +0000 (14:14 -0800)
commit35b3515be0ecb9dd82e9b237d8c3b0f6b2057f2e
tree863d709af672619a99b8b5fd2a25e3032ea37d36
parent93fd420d71beed5f17e690921acfdee252b4e234
bpf, riscv: add fsession support for trampolines

Implement BPF_TRACE_FSESSION support in the RISC-V trampoline JIT. The
logic here is similar to what we did in x86_64.

In order to simply the logic, we factor out the function invoke_bpf() for
fentry and fexit.

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-3-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>
arch/riscv/net/bpf_jit_comp64.c