/linux-6.1.9/tools/testing/selftests/bpf/progs/ |
D | test_static_linked2.c | 15 static __noinline int subprog(int x) in subprog() function 24 var2 = subprog(rovar2) + static_var1 + static_var2; in handler2()
|
D | test_static_linked1.c | 15 static __noinline int subprog(int x) in subprog() function 24 var1 = subprog(rovar1) + static_var1 + static_var2; in handler1()
|
D | linked_funcs1.c | 18 static __noinline int subprog(int x) in subprog() function 27 output_val1 = x + subprog(x); in set_output_val1()
|
D | linked_funcs2.c | 18 static __noinline int subprog(int x) in subprog() function 27 output_val2 = 2 * x + 2 * subprog(x); in set_output_val2()
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/bpf/ |
D | verifier.c | 686 nfp_prog->subprog[index].needs_reg_push = 1; in nfp_assign_subprog_idx_and_regs() 714 frame_depths[frame] = nfp_prog->subprog[idx].stack_depth; in nfp_bpf_get_stack_usage() 773 nfp_prog->subprog = kcalloc(nfp_prog->subprog_cnt, in nfp_bpf_finalize() 774 sizeof(nfp_prog->subprog[0]), GFP_KERNEL); in nfp_bpf_finalize() 775 if (!nfp_prog->subprog) in nfp_bpf_finalize() 782 nfp_prog->subprog[i].stack_depth = info[i].stack_depth; in nfp_bpf_finalize() 788 nfp_prog->subprog[i].stack_depth += REG_WIDTH; in nfp_bpf_finalize() 790 if (nfp_prog->subprog[i].needs_reg_push) in nfp_bpf_finalize() 791 nfp_prog->subprog[i].stack_depth += BPF_REG_SIZE * 4; in nfp_bpf_finalize()
|
D | main.h | 541 struct nfp_bpf_subprog_info *subprog; member
|
D | offload.c | 182 kfree(nfp_prog->subprog); in nfp_prog_free()
|
D | jit.c | 3315 if (nfp_prog->subprog[meta->jmp_dst->subprog_idx].needs_reg_push) { in bpf_to_bpf_call() 3391 if (nfp_prog->subprog[meta->subprog_idx].needs_reg_push) { in nfp_subprog_epilogue() 3611 nfp_prog->subprog[jmp_dst->subprog_idx].needs_reg_push) { in nfp_fixup_branches() 3649 unsigned int depth = nfp_prog->subprog[meta->subprog_idx].stack_depth; in nfp_start_subprog() 3755 if (nfp_prog->subprog[idx].needs_reg_push) in nfp_prog_needs_callee_reg_save() 3837 depth = nfp_prog->subprog[0].stack_depth; in nfp_translate()
|
/linux-6.1.9/kernel/bpf/ |
D | verifier.c | 1785 int subprog) in push_async_cb() argument 1818 subprog /* subprog number within this prog */); in push_async_cb() 2183 struct bpf_subprog_info *subprog = env->subprog_info; in add_subprog_and_kfunc() local 2214 subprog[env->subprog_cnt].start = insn_cnt; in add_subprog_and_kfunc() 2218 verbose(env, "func#%d @%d\n", i, subprog[i].start); in add_subprog_and_kfunc() 2226 struct bpf_subprog_info *subprog = env->subprog_info; in check_subprogs() local 2231 subprog_start = subprog[cur_subprog].start; in check_subprogs() 2232 subprog_end = subprog[cur_subprog + 1].start; in check_subprogs() 2239 subprog[cur_subprog].has_tail_call = true; in check_subprogs() 2242 subprog[cur_subprog].has_ld_abs = true; in check_subprogs() [all …]
|
D | btf.c | 6582 int btf_check_subprog_arg_match(struct bpf_verifier_env *env, int subprog, in btf_check_subprog_arg_match() argument 6594 btf_id = prog->aux->func_info[subprog].type_id; in btf_check_subprog_arg_match() 6598 if (prog->aux->func_info_aux[subprog].unreliable) in btf_check_subprog_arg_match() 6601 is_global = prog->aux->func_info_aux[subprog].linkage == BTF_FUNC_GLOBAL; in btf_check_subprog_arg_match() 6609 prog->aux->func_info_aux[subprog].unreliable = true; in btf_check_subprog_arg_match() 6625 int btf_check_subprog_call(struct bpf_verifier_env *env, int subprog, in btf_check_subprog_call() argument 6637 btf_id = prog->aux->func_info[subprog].type_id; in btf_check_subprog_call() 6641 if (prog->aux->func_info_aux[subprog].unreliable) in btf_check_subprog_call() 6644 is_global = prog->aux->func_info_aux[subprog].linkage == BTF_FUNC_GLOBAL; in btf_check_subprog_call() 6652 prog->aux->func_info_aux[subprog].unreliable = true; in btf_check_subprog_call() [all …]
|
/linux-6.1.9/tools/lib/bpf/ |
D | libbpf.c | 6057 static int append_subprog_relos(struct bpf_program *main_prog, struct bpf_program *subprog) in append_subprog_relos() argument 6059 int new_cnt = main_prog->nr_reloc + subprog->nr_reloc; in append_subprog_relos() 6063 if (main_prog == subprog) in append_subprog_relos() 6068 if (subprog->nr_reloc) in append_subprog_relos() 6069 memcpy(relos + main_prog->nr_reloc, subprog->reloc_desc, in append_subprog_relos() 6070 sizeof(*relos) * subprog->nr_reloc); in append_subprog_relos() 6073 relos[i].insn_idx += subprog->sub_insn_off; in append_subprog_relos() 6087 struct bpf_program *subprog; in bpf_object__reloc_code() local 6146 subprog = find_prog_by_sec_insn(obj, obj->efile.text_shndx, sub_insn_idx); in bpf_object__reloc_code() 6147 if (!subprog) { in bpf_object__reloc_code() [all …]
|
/linux-6.1.9/include/linux/ |
D | bpf.h | 2060 int btf_check_subprog_arg_match(struct bpf_verifier_env *env, int subprog, 2062 int btf_check_subprog_call(struct bpf_verifier_env *env, int subprog, 2068 int btf_prepare_func_args(struct bpf_verifier_env *env, int subprog,
|
/linux-6.1.9/kernel/events/ |
D | core.c | 9036 struct bpf_prog *subprog = prog->aux->func[i]; in perf_event_bpf_emit_ksymbols() local 9040 (u64)(unsigned long)subprog->bpf_func, in perf_event_bpf_emit_ksymbols() 9041 subprog->jited_len, unregister, in perf_event_bpf_emit_ksymbols() 9042 subprog->aux->ksym.name); in perf_event_bpf_emit_ksymbols()
|