Home
last modified time | relevance | path

Searched refs:subprog (Results 1 – 13 of 13) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_static_linked1.c15 static __noinline int subprog(int x) in subprog() function
24 var1 = subprog(rovar1) + static_var1 + static_var2; in handler1()
H A Dtest_static_linked2.c15 static __noinline int subprog(int x) in subprog() function
24 var2 = subprog(rovar2) + static_var1 + static_var2; in handler2()
H A Dlinked_funcs2.c19 static __noinline int subprog(int x) in subprog() function
28 output_val2 = 2 * x + 2 * subprog(x); in set_output_val2()
H A Dlinked_funcs1.c19 static __noinline int subprog(int x) in subprog() function
28 output_val1 = x + subprog(x); in set_output_val1()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Dverifier.c686 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()
H A Dmain.h541 struct nfp_bpf_subprog_info *subprog; member
H A Doffload.c182 kfree(nfp_prog->subprog); in nfp_prog_free()
H A Djit.c3315 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()
/openbmc/linux/kernel/bpf/
H A Dverifier.c2582 int subprog) in push_async_cb() argument
3767 if (subprog < 0) in backtrack_insn()
5974 if (subprog < 0) { in get_callee_stack_depth()
9329 if (subprog < 0) { in check_func_call()
18482 if (subprog < 0) { in jit_subprogs()
18490 insn->off = subprog; in jit_subprogs()
18647 insn->imm = subprog; in jit_subprogs()
19599 subprog); in do_check_common()
19864 subprog = i; in bpf_check_attach_target()
19867 if (subprog == -1) { in bpf_check_attach_target()
[all …]
H A Dbtf.c6882 btf_id = prog->aux->func_info[subprog].type_id; in btf_check_subprog_arg_match()
6886 if (prog->aux->func_info_aux[subprog].unreliable) in btf_check_subprog_arg_match()
6897 prog->aux->func_info_aux[subprog].unreliable = true; in btf_check_subprog_arg_match()
6925 btf_id = prog->aux->func_info[subprog].type_id; in btf_check_subprog_call()
6929 if (prog->aux->func_info_aux[subprog].unreliable) in btf_check_subprog_call()
6940 prog->aux->func_info_aux[subprog].unreliable = true; in btf_check_subprog_call()
6951 int btf_prepare_func_args(struct bpf_verifier_env *env, int subprog, in btf_prepare_func_args() argument
6969 btf_id = prog->aux->func_info[subprog].type_id; in btf_prepare_func_args()
6981 subprog); in btf_prepare_func_args()
6988 tname, subprog); in btf_prepare_func_args()
[all …]
/openbmc/linux/tools/lib/bpf/
H A Dlibbpf.c6220 if (main_prog == subprog) in append_subprog_relos()
6229 if (subprog->nr_reloc) in append_subprog_relos()
6248 struct bpf_program *subprog; in bpf_object__reloc_code() local
6308 if (!subprog) { in bpf_object__reloc_code()
6324 if (subprog->sub_insn_off == 0) { in bpf_object__reloc_code()
6336 memcpy(main_prog->insns + subprog->sub_insn_off, subprog->insns, in bpf_object__reloc_code()
6340 main_prog->name, subprog->insns_cnt, subprog->name); in bpf_object__reloc_code()
6364 prog->name, insn_idx, insn->imm, subprog->name, subprog->sub_insn_off); in bpf_object__reloc_code()
6454 struct bpf_program *subprog; in bpf_object__relocate_calls() local
6461 subprog = &obj->programs[i]; in bpf_object__relocate_calls()
[all …]
/openbmc/linux/include/linux/
H A Dbpf.h2451 int btf_check_subprog_arg_match(struct bpf_verifier_env *env, int subprog,
2453 int btf_check_subprog_call(struct bpf_verifier_env *env, int subprog,
2455 int btf_prepare_func_args(struct bpf_verifier_env *env, int subprog,
/openbmc/linux/kernel/events/
H A Dcore.c9322 struct bpf_prog *subprog = prog->aux->func[i]; in perf_event_bpf_emit_ksymbols() local
9326 (u64)(unsigned long)subprog->bpf_func, in perf_event_bpf_emit_ksymbols()
9327 subprog->jited_len, unregister, in perf_event_bpf_emit_ksymbols()
9328 subprog->aux->ksym.name); in perf_event_bpf_emit_ksymbols()