/linux/net/bpf/ |
H A D | bpf_dummy_struct_ops.c | 135 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/kernel/bpf/ |
H A D | bpf_struct_ops.c | 565 int bpf_struct_ops_prepare_trampoline(struct bpf_tramp_links *tlinks, in bpf_struct_ops_prepare_trampoline() argument 576 tlinks[BPF_TRAMP_FENTRY].links[0] = link; in bpf_struct_ops_prepare_trampoline() 577 tlinks[BPF_TRAMP_FENTRY].nr_links = 1; in bpf_struct_ops_prepare_trampoline() 582 size = arch_bpf_trampoline_size(model, flags, tlinks, NULL); in bpf_struct_ops_prepare_trampoline() 599 model, flags, tlinks, stub_func); in bpf_struct_ops_prepare_trampoline() 664 struct bpf_tramp_links *tlinks; in bpf_struct_ops_map_update_elem() local 691 tlinks = kcalloc(BPF_TRAMP_MAX, sizeof(*tlinks), GFP_KERNEL); in bpf_struct_ops_map_update_elem() 692 if (!tlinks) in bpf_struct_ops_map_update_elem() 800 err = bpf_struct_ops_prepare_trampoline(tlinks, link, in bpf_struct_ops_map_update_elem() 878 kfree(tlinks); in bpf_struct_ops_map_update_elem()
|
/linux/arch/s390/net/ |
H A D | bpf_jit_comp.c | 2571 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/arch/riscv/net/ |
H A D | bpf_jit_comp64.c | 804 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/arch/arm64/net/ |
H A D | bpf_jit_comp.c | 2115 struct bpf_tramp_links *tlinks, void *func_addr, in prepare_trampoline() argument 2127 struct bpf_tramp_links *fentry = &tlinks[BPF_TRAMP_FENTRY]; in prepare_trampoline() 2128 struct bpf_tramp_links *fexit = &tlinks[BPF_TRAMP_FEXIT]; in prepare_trampoline() 2129 struct bpf_tramp_links *fmod_ret = &tlinks[BPF_TRAMP_MODIFY_RETURN]; in prepare_trampoline() 2343 struct bpf_tramp_links *tlinks, void *func_addr) in arch_bpf_trampoline_size() argument 2357 ret = prepare_trampoline(&ctx, &im, tlinks, func_addr, nregs, flags); in arch_bpf_trampoline_size() 2381 u32 flags, struct bpf_tramp_links *tlinks, in arch_prepare_bpf_trampoline() argument 2408 ret = prepare_trampoline(&ctx, im, tlinks, func_addr, nregs, flags); in arch_prepare_bpf_trampoline()
|
/linux/arch/x86/net/ |
H A D | bpf_jit_comp.c | 2938 struct bpf_tramp_links *tlinks, in __arch_prepare_bpf_trampoline() argument 2943 struct bpf_tramp_links *fentry = &tlinks[BPF_TRAMP_FENTRY]; in __arch_prepare_bpf_trampoline() 2944 struct bpf_tramp_links *fexit = &tlinks[BPF_TRAMP_FEXIT]; in __arch_prepare_bpf_trampoline() 2945 struct bpf_tramp_links *fmod_ret = &tlinks[BPF_TRAMP_MODIFY_RETURN]; in __arch_prepare_bpf_trampoline() 3232 struct bpf_tramp_links *tlinks, in arch_prepare_bpf_trampoline() argument 3247 flags, tlinks, func_addr); in arch_prepare_bpf_trampoline() 3260 struct bpf_tramp_links *tlinks, void *func_addr) in arch_bpf_trampoline_size() argument 3278 m, flags, tlinks, func_addr); in arch_bpf_trampoline_size()
|
/linux/include/linux/ |
H A D | bpf.h | 1172 struct bpf_tramp_links *tlinks, 1178 struct bpf_tramp_links *tlinks, void *func_addr); 1870 int bpf_struct_ops_prepare_trampoline(struct bpf_tramp_links *tlinks,
|