+66
−10
Loading
Implement BPF_TRACE_FSESSION support in LoongArch BPF JIT. The logic
here is almost identical to what has been done in RISC-V JIT.
The key changes are:
- Allocate stack space for function meta and session cookies
- Introduce invoke_bpf() as a wrapper around invoke_bpf_prog() that
populates session cookies before each invocation
- Implement bpf_jit_supports_fsession() callback
Tested-by:
Vincent Li <vincent.mc.li@gmail.com>
Reviewed-by:
Menglong Dong <menglong8.dong@gmail.com>
Signed-off-by:
Hengqi Chen <hengqi.chen@gmail.com>
Signed-off-by:
Huacai Chen <chenhuacai@loongson.cn>