Home
last modified time | relevance | path

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

/openbmc/linux/net/bpf/
H A Dbpf_dummy_struct_ops.c83 struct bpf_tramp_links *tlinks; in bpf_struct_ops_test_run() local
98 tlinks = kcalloc(BPF_TRAMP_MAX, sizeof(*tlinks), GFP_KERNEL); in bpf_struct_ops_test_run()
99 if (!tlinks) { in bpf_struct_ops_test_run()
121 err = bpf_struct_ops_prepare_trampoline(tlinks, link, in bpf_struct_ops_test_run()
140 kfree(tlinks); in bpf_struct_ops_test_run()
/openbmc/linux/kernel/bpf/
H A Dtrampoline.c232 struct bpf_tramp_links *tlinks; in bpf_trampoline_get_progs() local
237 tlinks = kcalloc(BPF_TRAMP_MAX, sizeof(*tlinks), GFP_KERNEL); in bpf_trampoline_get_progs()
238 if (!tlinks) in bpf_trampoline_get_progs()
244 links = tlinks[kind].links; in bpf_trampoline_get_progs()
251 return tlinks; in bpf_trampoline_get_progs()
396 struct bpf_tramp_links *tlinks; in bpf_trampoline_update() local
402 if (IS_ERR(tlinks)) in bpf_trampoline_update()
403 return PTR_ERR(tlinks); in bpf_trampoline_update()
421 if (tlinks[BPF_TRAMP_FEXIT].nr_links || in bpf_trampoline_update()
483 kfree(tlinks); in bpf_trampoline_update()
[all …]
H A Dbpf_struct_ops.c352 int bpf_struct_ops_prepare_trampoline(struct bpf_tramp_links *tlinks, in bpf_struct_ops_prepare_trampoline() argument
359 tlinks[BPF_TRAMP_FENTRY].links[0] = link; in bpf_struct_ops_prepare_trampoline()
360 tlinks[BPF_TRAMP_FENTRY].nr_links = 1; in bpf_struct_ops_prepare_trampoline()
366 model, flags, tlinks, NULL); in bpf_struct_ops_prepare_trampoline()
377 struct bpf_tramp_links *tlinks; in bpf_struct_ops_map_update_elem() local
401 tlinks = kcalloc(BPF_TRAMP_MAX, sizeof(*tlinks), GFP_KERNEL); in bpf_struct_ops_map_update_elem()
402 if (!tlinks) in bpf_struct_ops_map_update_elem()
498 err = bpf_struct_ops_prepare_trampoline(tlinks, link, in bpf_struct_ops_map_update_elem()
558 kfree(tlinks); in bpf_struct_ops_map_update_elem()
/openbmc/linux/arch/riscv/net/
H A Dbpf_jit_comp64.c787 struct bpf_tramp_links *tlinks, in __arch_prepare_bpf_trampoline() argument
795 struct bpf_tramp_links *fentry = &tlinks[BPF_TRAMP_FENTRY]; in __arch_prepare_bpf_trampoline()
796 struct bpf_tramp_links *fexit = &tlinks[BPF_TRAMP_FEXIT]; in __arch_prepare_bpf_trampoline()
797 struct bpf_tramp_links *fmod_ret = &tlinks[BPF_TRAMP_MODIFY_RETURN]; in __arch_prepare_bpf_trampoline()
1034 u32 flags, struct bpf_tramp_links *tlinks, in arch_prepare_bpf_trampoline() argument
1043 ret = __arch_prepare_bpf_trampoline(im, m, tlinks, func_addr, flags, &ctx); in arch_prepare_bpf_trampoline()
1060 ret = __arch_prepare_bpf_trampoline(im, m, tlinks, func_addr, flags, &ctx); in arch_prepare_bpf_trampoline()
/openbmc/linux/arch/arm64/net/
H A Dbpf_jit_comp.c1831 struct bpf_tramp_links *tlinks, void *orig_call, in prepare_trampoline() argument
1843 struct bpf_tramp_links *fentry = &tlinks[BPF_TRAMP_FENTRY]; in prepare_trampoline()
1844 struct bpf_tramp_links *fexit = &tlinks[BPF_TRAMP_FEXIT]; in prepare_trampoline()
1845 struct bpf_tramp_links *fmod_ret = &tlinks[BPF_TRAMP_MODIFY_RETURN]; in prepare_trampoline()
2031 u32 flags, struct bpf_tramp_links *tlinks, in arch_prepare_bpf_trampoline() argument
2053 ret = prepare_trampoline(&ctx, im, tlinks, orig_call, nregs, flags); in arch_prepare_bpf_trampoline()
2064 ret = prepare_trampoline(&ctx, im, tlinks, orig_call, nregs, flags); in arch_prepare_bpf_trampoline()
/openbmc/linux/arch/s390/net/
H A Dbpf_jit_comp.c2202 struct bpf_tramp_links *tlinks, in __arch_prepare_bpf_trampoline() argument
2205 struct bpf_tramp_links *fmod_ret = &tlinks[BPF_TRAMP_MODIFY_RETURN]; in __arch_prepare_bpf_trampoline()
2206 struct bpf_tramp_links *fentry = &tlinks[BPF_TRAMP_FENTRY]; in __arch_prepare_bpf_trampoline()
2207 struct bpf_tramp_links *fexit = &tlinks[BPF_TRAMP_FEXIT]; in __arch_prepare_bpf_trampoline()
2497 u32 flags, struct bpf_tramp_links *tlinks, in arch_prepare_bpf_trampoline() argument
2514 tlinks, func_addr); in arch_prepare_bpf_trampoline()
/openbmc/linux/arch/x86/net/
H A Dbpf_jit_comp.c2357 struct bpf_tramp_links *tlinks, in arch_prepare_bpf_trampoline() argument
2362 struct bpf_tramp_links *fentry = &tlinks[BPF_TRAMP_FENTRY]; in arch_prepare_bpf_trampoline()
2363 struct bpf_tramp_links *fexit = &tlinks[BPF_TRAMP_FEXIT]; in arch_prepare_bpf_trampoline()
2364 struct bpf_tramp_links *fmod_ret = &tlinks[BPF_TRAMP_MODIFY_RETURN]; in arch_prepare_bpf_trampoline()
/openbmc/linux/include/linux/
H A Dbpf.h1091 struct bpf_tramp_links *tlinks,
1662 int bpf_struct_ops_prepare_trampoline(struct bpf_tramp_links *tlinks,