Home
last modified time | relevance | path

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

/linux-6.1.9/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()
141 kfree(tlinks); in bpf_struct_ops_test_run()
/linux-6.1.9/kernel/bpf/
Dtrampoline.c260 struct bpf_tramp_links *tlinks; in bpf_trampoline_get_progs() local
265 tlinks = kcalloc(BPF_TRAMP_MAX, sizeof(*tlinks), GFP_KERNEL); in bpf_trampoline_get_progs()
266 if (!tlinks) in bpf_trampoline_get_progs()
270 tlinks[kind].nr_links = tr->progs_cnt[kind]; in bpf_trampoline_get_progs()
272 links = tlinks[kind].links; in bpf_trampoline_get_progs()
279 return tlinks; in bpf_trampoline_get_progs()
419 struct bpf_tramp_links *tlinks; in bpf_trampoline_update() local
424 tlinks = bpf_trampoline_get_progs(tr, &total, &ip_arg); in bpf_trampoline_update()
425 if (IS_ERR(tlinks)) in bpf_trampoline_update()
426 return PTR_ERR(tlinks); in bpf_trampoline_update()
[all …]
Dbpf_struct_ops.c335 int bpf_struct_ops_prepare_trampoline(struct bpf_tramp_links *tlinks, in bpf_struct_ops_prepare_trampoline() argument
342 tlinks[BPF_TRAMP_FENTRY].links[0] = link; in bpf_struct_ops_prepare_trampoline()
343 tlinks[BPF_TRAMP_FENTRY].nr_links = 1; in bpf_struct_ops_prepare_trampoline()
349 model, flags, tlinks, NULL); in bpf_struct_ops_prepare_trampoline()
360 struct bpf_tramp_links *tlinks = NULL; in bpf_struct_ops_map_update_elem() local
384 tlinks = kcalloc(BPF_TRAMP_MAX, sizeof(*tlinks), GFP_KERNEL); in bpf_struct_ops_map_update_elem()
385 if (!tlinks) in bpf_struct_ops_map_update_elem()
481 err = bpf_struct_ops_prepare_trampoline(tlinks, link, in bpf_struct_ops_map_update_elem()
523 kfree(tlinks); in bpf_struct_ops_map_update_elem()
/linux-6.1.9/arch/arm64/net/
Dbpf_jit_comp.c1771 struct bpf_tramp_links *tlinks, void *orig_call, in prepare_trampoline() argument
1783 struct bpf_tramp_links *fentry = &tlinks[BPF_TRAMP_FENTRY]; in prepare_trampoline()
1784 struct bpf_tramp_links *fexit = &tlinks[BPF_TRAMP_FEXIT]; in prepare_trampoline()
1785 struct bpf_tramp_links *fmod_ret = &tlinks[BPF_TRAMP_MODIFY_RETURN]; in prepare_trampoline()
1970 u32 flags, struct bpf_tramp_links *tlinks, in arch_prepare_bpf_trampoline() argument
1991 ret = prepare_trampoline(&ctx, im, tlinks, orig_call, nargs, flags); in arch_prepare_bpf_trampoline()
2002 ret = prepare_trampoline(&ctx, im, tlinks, orig_call, nargs, flags); in arch_prepare_bpf_trampoline()
/linux-6.1.9/arch/x86/net/
Dbpf_jit_comp.c2046 struct bpf_tramp_links *tlinks, in arch_prepare_bpf_trampoline() argument
2051 struct bpf_tramp_links *fentry = &tlinks[BPF_TRAMP_FENTRY]; in arch_prepare_bpf_trampoline()
2052 struct bpf_tramp_links *fexit = &tlinks[BPF_TRAMP_FEXIT]; in arch_prepare_bpf_trampoline()
2053 struct bpf_tramp_links *fmod_ret = &tlinks[BPF_TRAMP_MODIFY_RETURN]; in arch_prepare_bpf_trampoline()
/linux-6.1.9/include/linux/
Dbpf.h856 struct bpf_tramp_links *tlinks,
1332 int bpf_struct_ops_prepare_trampoline(struct bpf_tramp_links *tlinks,