diff options
| author | Hengqi Chen <hengqi.chen@gmail.com> | 2026-04-23 12:49:36 +0800 |
|---|---|---|
| committer | Huacai Chen <chenhuacai@loongson.cn> | 2026-04-23 12:49:36 +0800 |
| commit | e815df29b6a5e59293500085a010d5882374cb3e (patch) | |
| tree | bdeb7066709bd9621f902740b865a9211c8ed037 /lib/tests/string_kunit.c | |
| parent | 6ef04707e8eee09360f70812c0ac63c712460bd0 (diff) | |
LoongArch: BPF: Add fsession support for trampolines
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>
Diffstat (limited to 'lib/tests/string_kunit.c')
0 files changed, 0 insertions, 0 deletions
