Home
last modified time | relevance | path

Searched refs:tlinks (Results 1 – 9 of 9) sorted by relevance

/linux-6.15/kernel/bpf/
H A Dtrampoline.c236 struct bpf_tramp_links *tlinks; in bpf_trampoline_get_progs() local
241 tlinks = kcalloc(BPF_TRAMP_MAX, sizeof(*tlinks), GFP_KERNEL); in bpf_trampoline_get_progs()
242 if (!tlinks) in bpf_trampoline_get_progs()
248 links = tlinks[kind].links; in bpf_trampoline_get_progs()
255 return tlinks; in bpf_trampoline_get_progs()
401 struct bpf_tramp_links *tlinks; in bpf_trampoline_update() local
407 if (IS_ERR(tlinks)) in bpf_trampoline_update()
408 return PTR_ERR(tlinks); in bpf_trampoline_update()
441 tlinks, tr->func.addr); in bpf_trampoline_update()
501 kfree(tlinks); in bpf_trampoline_update()
[all …]
H A Dbpf_struct_ops.c587 int bpf_struct_ops_prepare_trampoline(struct bpf_tramp_links *tlinks, in bpf_struct_ops_prepare_trampoline() argument
598 tlinks[BPF_TRAMP_FENTRY].links[0] = link; in bpf_struct_ops_prepare_trampoline()
599 tlinks[BPF_TRAMP_FENTRY].nr_links = 1; in bpf_struct_ops_prepare_trampoline()
604 size = arch_bpf_trampoline_size(model, flags, tlinks, NULL); in bpf_struct_ops_prepare_trampoline()
621 model, flags, tlinks, stub_func); in bpf_struct_ops_prepare_trampoline()
686 struct bpf_tramp_links *tlinks; in bpf_struct_ops_map_update_elem() local
713 tlinks = kcalloc(BPF_TRAMP_MAX, sizeof(*tlinks), GFP_KERNEL); in bpf_struct_ops_map_update_elem()
714 if (!tlinks) in bpf_struct_ops_map_update_elem()
822 err = bpf_struct_ops_prepare_trampoline(tlinks, link, in bpf_struct_ops_map_update_elem()
900 kfree(tlinks); in bpf_struct_ops_map_update_elem()
/linux-6.15/net/bpf/
H A Dbpf_dummy_struct_ops.c135 struct bpf_tramp_links *tlinks = NULL; in bpf_struct_ops_test_run() local
161 tlinks = kcalloc(BPF_TRAMP_MAX, sizeof(*tlinks), GFP_KERNEL); in bpf_struct_ops_test_run()
162 if (!tlinks) { in bpf_struct_ops_test_run()
177 err = bpf_struct_ops_prepare_trampoline(tlinks, link, in bpf_struct_ops_test_run()
200 kfree(tlinks); in bpf_struct_ops_test_run()
/linux-6.15/arch/powerpc/net/
H A Dbpf_jit_comp.c651 struct bpf_tramp_links *tlinks, in __arch_prepare_bpf_trampoline() argument
656 struct bpf_tramp_links *fmod_ret = &tlinks[BPF_TRAMP_MODIFY_RETURN]; in __arch_prepare_bpf_trampoline()
657 struct bpf_tramp_links *fentry = &tlinks[BPF_TRAMP_FENTRY]; in __arch_prepare_bpf_trampoline()
658 struct bpf_tramp_links *fexit = &tlinks[BPF_TRAMP_FEXIT]; in __arch_prepare_bpf_trampoline()
973 struct bpf_tramp_links *tlinks, void *func_addr) in arch_bpf_trampoline_size() argument
992 m, flags, tlinks, func_addr); in arch_bpf_trampoline_size()
1000 struct bpf_tramp_links *tlinks, in arch_prepare_bpf_trampoline() argument
1016 flags, tlinks, func_addr); in arch_prepare_bpf_trampoline()
/linux-6.15/arch/s390/net/
H A Dbpf_jit_comp.c2571 struct bpf_tramp_links *tlinks, in __arch_prepare_bpf_trampoline() argument
2574 struct bpf_tramp_links *fmod_ret = &tlinks[BPF_TRAMP_MODIFY_RETURN]; in __arch_prepare_bpf_trampoline()
2575 struct bpf_tramp_links *fentry = &tlinks[BPF_TRAMP_FENTRY]; in __arch_prepare_bpf_trampoline()
2576 struct bpf_tramp_links *fexit = &tlinks[BPF_TRAMP_FEXIT]; in __arch_prepare_bpf_trampoline()
2866 struct bpf_tramp_links *tlinks, void *orig_call) in arch_bpf_trampoline_size() argument
2875 tlinks, orig_call); in arch_bpf_trampoline_size()
2882 u32 flags, struct bpf_tramp_links *tlinks, in arch_prepare_bpf_trampoline() argument
2891 tlinks, func_addr); in arch_prepare_bpf_trampoline()
2905 tlinks, func_addr); in arch_prepare_bpf_trampoline()
/linux-6.15/arch/riscv/net/
H A Dbpf_jit_comp64.c804 struct bpf_tramp_links *tlinks, in __arch_prepare_bpf_trampoline() argument
812 struct bpf_tramp_links *fentry = &tlinks[BPF_TRAMP_FENTRY]; in __arch_prepare_bpf_trampoline()
813 struct bpf_tramp_links *fexit = &tlinks[BPF_TRAMP_FEXIT]; in __arch_prepare_bpf_trampoline()
814 struct bpf_tramp_links *fmod_ret = &tlinks[BPF_TRAMP_MODIFY_RETURN]; in __arch_prepare_bpf_trampoline()
1061 struct bpf_tramp_links *tlinks, void *func_addr) in arch_bpf_trampoline_size() argument
1070 ret = __arch_prepare_bpf_trampoline(&im, m, tlinks, func_addr, flags, &ctx); in arch_bpf_trampoline_size()
1087 u32 flags, struct bpf_tramp_links *tlinks, in arch_prepare_bpf_trampoline() argument
1102 ret = __arch_prepare_bpf_trampoline(im, m, tlinks, func_addr, flags, &ctx); in arch_prepare_bpf_trampoline()
/linux-6.15/arch/arm64/net/
H A Dbpf_jit_comp.c2245 struct bpf_tramp_links *tlinks, void *func_addr, in prepare_trampoline() argument
2257 struct bpf_tramp_links *fentry = &tlinks[BPF_TRAMP_FENTRY]; in prepare_trampoline()
2258 struct bpf_tramp_links *fexit = &tlinks[BPF_TRAMP_FEXIT]; in prepare_trampoline()
2259 struct bpf_tramp_links *fmod_ret = &tlinks[BPF_TRAMP_MODIFY_RETURN]; in prepare_trampoline()
2473 struct bpf_tramp_links *tlinks, void *func_addr) in arch_bpf_trampoline_size() argument
2487 ret = prepare_trampoline(&ctx, &im, tlinks, func_addr, nregs, flags); in arch_bpf_trampoline_size()
2511 u32 flags, struct bpf_tramp_links *tlinks, in arch_prepare_bpf_trampoline() argument
2538 ret = prepare_trampoline(&ctx, im, tlinks, func_addr, nregs, flags); in arch_prepare_bpf_trampoline()
/linux-6.15/arch/x86/net/
H A Dbpf_jit_comp.c3069 struct bpf_tramp_links *tlinks, in __arch_prepare_bpf_trampoline() argument
3074 struct bpf_tramp_links *fentry = &tlinks[BPF_TRAMP_FENTRY]; in __arch_prepare_bpf_trampoline()
3075 struct bpf_tramp_links *fexit = &tlinks[BPF_TRAMP_FEXIT]; in __arch_prepare_bpf_trampoline()
3076 struct bpf_tramp_links *fmod_ret = &tlinks[BPF_TRAMP_MODIFY_RETURN]; in __arch_prepare_bpf_trampoline()
3365 struct bpf_tramp_links *tlinks, in arch_prepare_bpf_trampoline() argument
3380 flags, tlinks, func_addr); in arch_prepare_bpf_trampoline()
3393 struct bpf_tramp_links *tlinks, void *func_addr) in arch_bpf_trampoline_size() argument
3411 m, flags, tlinks, func_addr); in arch_bpf_trampoline_size()
/linux-6.15/include/linux/
H A Dbpf.h1198 struct bpf_tramp_links *tlinks,
1204 struct bpf_tramp_links *tlinks, void *func_addr);
1901 int bpf_struct_ops_prepare_trampoline(struct bpf_tramp_links *tlinks,