Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
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 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 Depilogue_tailcall.c12 static __noinline __used int subprog(struct st_ops_args *args) in subprog() function
21 subprog(args); in BPF_PROG()
H A Dexceptions.c158 __noinline static int subprog(struct __sk_buff *ctx) in subprog() function
187 return subprog(ctx); in exception_throw_subprog()
H A Dpro_epilogue.c17 static __noinline __used int subprog(struct st_ops_args *args) in subprog() function
/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()
/linux/kernel/bpf/
H A Dliveness.c181 struct bpf_subprog_info *subprog; in __lookup_instance() local
190 subprog = bpf_find_containing_subprog(env, callchain->sp_starts[callchain->curframe]); in __lookup_instance()
191 subprog_sz = (subprog + 1)->start - subprog->start; in __lookup_instance()
616 struct bpf_subprog_info *subprog; in update_instance() local
638 subprog = bpf_find_containing_subprog(env, this_subprog_start); in update_instance()
639 po_start = subprog->postorder_start; in update_instance()
640 po_end = (subprog + 1)->postorder_start; in update_instance()
H A Dverifier.c431 static bool subprog_is_global(const struct bpf_verifier_env *env, int subprog) in subprog_is_global() argument
435 return aux && aux[subprog].linkage == BTF_FUNC_GLOBAL; in subprog_is_global()
438 static const char *subprog_name(const struct bpf_verifier_env *env, int subprog) in subprog_name() argument
445 info = &env->prog->aux->func_info[subprog]; in subprog_name()
449 static void mark_subprog_exc_cb(struct bpf_verifier_env *env, int subprog) in mark_subprog_exc_cb() argument
451 struct bpf_subprog_info *info = subprog_info(env, subprog); in mark_subprog_exc_cb()
458 static bool subprog_is_exc_cb(struct bpf_verifier_env *env, int subprog) in subprog_is_exc_cb() argument
460 return subprog_info(env, subprog)->is_exception_cb; in subprog_is_exc_cb()
2926 int subprog, bool is_sleepable) in push_async_cb() argument
2960 subprog /* subprog number within this prog */); in push_async_cb()
[all …]
/linux/kernel/events/
H A Dcore.c9967 struct bpf_prog *subprog = prog->aux->func[i]; in perf_event_bpf_emit_ksymbols() local
9971 (u64)(unsigned long)subprog->bpf_func, in perf_event_bpf_emit_ksymbols()
9972 subprog->jited_len, unregister, in perf_event_bpf_emit_ksymbols()
9973 subprog->aux->ksym.name); in perf_event_bpf_emit_ksymbols()