Home
last modified time | relevance | path

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

/Linux-v6.6/net/bpf/
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()
/Linux-v6.6/kernel/bpf/
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()
242 tlinks[kind].nr_links = tr->progs_cnt[kind]; 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
401 tlinks = bpf_trampoline_get_progs(tr, &total, &ip_arg); in bpf_trampoline_update()
402 if (IS_ERR(tlinks)) in bpf_trampoline_update()
403 return PTR_ERR(tlinks); in bpf_trampoline_update()
[all …]
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()
/Linux-v6.6/arch/riscv/net/
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()
/Linux-v6.6/arch/arm64/net/
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()
/Linux-v6.6/arch/s390/net/
Dbpf_jit_comp.c2208 struct bpf_tramp_links *tlinks, in __arch_prepare_bpf_trampoline() argument
2211 struct bpf_tramp_links *fmod_ret = &tlinks[BPF_TRAMP_MODIFY_RETURN]; in __arch_prepare_bpf_trampoline()
2212 struct bpf_tramp_links *fentry = &tlinks[BPF_TRAMP_FENTRY]; in __arch_prepare_bpf_trampoline()
2213 struct bpf_tramp_links *fexit = &tlinks[BPF_TRAMP_FEXIT]; in __arch_prepare_bpf_trampoline()
2503 u32 flags, struct bpf_tramp_links *tlinks, in arch_prepare_bpf_trampoline() argument
2520 tlinks, func_addr); in arch_prepare_bpf_trampoline()
/Linux-v6.6/arch/x86/net/
Dbpf_jit_comp.c2355 struct bpf_tramp_links *tlinks, in arch_prepare_bpf_trampoline() argument
2360 struct bpf_tramp_links *fentry = &tlinks[BPF_TRAMP_FENTRY]; in arch_prepare_bpf_trampoline()
2361 struct bpf_tramp_links *fexit = &tlinks[BPF_TRAMP_FEXIT]; in arch_prepare_bpf_trampoline()
2362 struct bpf_tramp_links *fmod_ret = &tlinks[BPF_TRAMP_MODIFY_RETURN]; in arch_prepare_bpf_trampoline()
/Linux-v6.6/include/linux/
Dbpf.h1073 struct bpf_tramp_links *tlinks,
1630 int bpf_struct_ops_prepare_trampoline(struct bpf_tramp_links *tlinks,