/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_static_linked2.c | 14 /* same "subprog" name in both files */ 15 static __noinline int subprog(int x) function 24 var2 = subprog(rovar2) + static_var1 + static_var2;
|
H A D | test_static_linked1.c | 14 /* same "subprog" name in both files */ 15 static __noinline int subprog(int x) function 24 var1 = subprog(rovar1) + static_var1 + static_var2;
|
H A D | linked_funcs2.c | 18 /* same "subprog" name in all files, but it's ok because they all are static */ 19 static __noinline int subprog(int x) function 28 output_val2 = 2 * x + 2 * subprog(x);
|
H A D | linked_funcs1.c | 18 /* same "subprog" name in all files, but it's ok because they all are static */ 19 static __noinline int subprog(int x) function 28 output_val1 = x + subprog(x);
|
H A D | exceptions.c | 53 * static subprog, hence verifier will DCE the remaining instructions. Ensure we 158 __noinline static int subprog(struct __sk_buff *ctx) function 187 return subprog(ctx);
|
/linux-master/drivers/net/ethernet/netronome/nfp/bpf/ |
H A D | verifier.c | 686 nfp_prog->subprog[index].needs_reg_push = 1; 714 frame_depths[frame] = nfp_prog->subprog[idx].stack_depth; 726 * return to and subprog id. 738 /* End of for() loop means the last instruction of the subprog was 773 nfp_prog->subprog = kcalloc(nfp_prog->subprog_cnt, 774 sizeof(nfp_prog->subprog[0]), GFP_KERNEL); 775 if (!nfp_prog->subprog) 782 nfp_prog->subprog[i].stack_depth = info[i].stack_depth; 788 nfp_prog->subprog[i].stack_depth += REG_WIDTH; 790 if (nfp_prog->subprog[ [all...] |
H A D | main.h | 509 * @subprog: pointer to an array of objects holding info about sub-programs 541 struct nfp_bpf_subprog_info *subprog; member in struct:nfp_prog
|
H A D | offload.c | 182 kfree(nfp_prog->subprog);
|
H A D | jit.c | 3315 if (nfp_prog->subprog[meta->jmp_dst->subprog_idx].needs_reg_push) { 3391 if (nfp_prog->subprog[meta->subprog_idx].needs_reg_push) { 3611 nfp_prog->subprog[jmp_dst->subprog_idx].needs_reg_push) { 3649 unsigned int depth = nfp_prog->subprog[meta->subprog_idx].stack_depth; 3755 if (nfp_prog->subprog[idx].needs_reg_push) 3837 depth = nfp_prog->subprog[0].stack_depth;
|
/linux-master/include/linux/ |
H A D | bpf_verifier.h | 295 /* subprog number == index within subprog_info 296 * zero == main subprog 746 static inline struct bpf_func_info_aux *subprog_aux(struct bpf_verifier_env *env, int subprog) argument 748 return &env->prog->aux->func_info_aux[subprog]; 751 static inline struct bpf_subprog_info *subprog_info(struct bpf_verifier_env *env, int subprog) argument 753 return &env->subprog_info[subprog];
|
H A D | bpf.h | 1500 * The subprog can access its first linfo by 1508 * The subprog can access its first jited_linfo by 1514 /* subprog can use linfo_idx to access its first linfo and 2585 int btf_prepare_func_args(struct bpf_verifier_env *env, int subprog);
|
/linux-master/kernel/bpf/ |
H A D | verifier.c | 424 static bool subprog_is_global(const struct bpf_verifier_env *env, int subprog) argument 428 return aux && aux[subprog].linkage == BTF_FUNC_GLOBAL; 431 static const char *subprog_name(const struct bpf_verifier_env *env, int subprog) argument 438 info = &env->prog->aux->func_info[subprog]; 442 static void mark_subprog_exc_cb(struct bpf_verifier_env *env, int subprog) argument 444 struct bpf_subprog_info *info = subprog_info(env, subprog); 451 static bool subprog_is_exc_cb(struct bpf_verifier_env *env, int subprog) argument 453 return subprog_info(env, subprog)->is_exception_cb; 2405 int subprog) 2438 subprog /* subpro 2403 push_async_cb(struct bpf_verifier_env *env, int insn_idx, int prev_insn_idx, int subprog) argument 2897 struct bpf_subprog_info *subprog = env->subprog_info; local 2961 struct bpf_subprog_info *subprog = env->subprog_info; local 3678 int subprog_insn_idx, subprog; local 5867 struct bpf_subprog_info *subprog = env->subprog_info; local 6023 int start = idx + insn->imm + 1, subprog; local 9297 setup_func_entry(struct bpf_verifier_env *env, int subprog, int callsite, set_callee_state_fn set_callee_state_cb, struct bpf_verifier_state *state) argument 9348 btf_check_func_arg_match(struct bpf_verifier_env *env, int subprog, const struct btf *btf, struct bpf_reg_state *regs) argument 9440 btf_check_subprog_call(struct bpf_verifier_env *env, int subprog, struct bpf_reg_state *regs) argument 9468 push_callback_call(struct bpf_verifier_env *env, struct bpf_insn *insn, int insn_idx, int subprog, set_callee_state_fn set_callee_state_cb) argument 9541 int err, subprog, target_insn; local 19114 int i, j, subprog_start, subprog_end = 0, len, subprog; local 20405 do_check_common(struct bpf_verifier_env *env, int subprog) argument 20754 int ret = 0, subprog = -1, i; local [all...] |
H A D | btf.c | 7123 * is cached in subprog info for reuse. 7129 int btf_prepare_func_args(struct bpf_verifier_env *env, int subprog) argument 7131 bool is_global = subprog_aux(env, subprog)->linkage == BTF_FUNC_GLOBAL; 7132 struct bpf_subprog_info *sub = subprog_info(env, subprog); 7150 btf_id = prog->aux->func_info[subprog].type_id; 7164 subprog); 7169 if (prog->aux->func_info_aux[subprog].unreliable) {
|
/linux-master/tools/lib/bpf/ |
H A D | libbpf.c | 4451 /* loading subprog addresses */ 4457 pr_warn("prog '%s': bad subprog addr relo against '%s' at offset %zu+%d\n", 5819 /* When __weak subprog is "overridden" by another instance 5820 * of the subprog from a different object file, linker still 5825 * subprog instructions when discovering subprograms. 6199 static int append_subprog_relos(struct bpf_program *main_prog, struct bpf_program *subprog) argument 6201 int new_cnt = main_prog->nr_reloc + subprog->nr_reloc; 6205 if (main_prog == subprog) 6214 if (subprog->nr_reloc) 6215 memcpy(relos + main_prog->nr_reloc, subprog 6229 bpf_object__append_subprog_code(struct bpf_object *obj, struct bpf_program *main_prog, struct bpf_program *subprog) argument 6265 struct bpf_program *subprog; local 6453 struct bpf_program *subprog; local 6564 struct bpf_program *subprog = &obj->programs[j]; local 6982 struct bpf_program *subprog = &obj->programs[prog->exception_cb_idx]; local [all...] |
/linux-master/kernel/events/ |
H A D | core.c | 9288 struct bpf_prog *subprog = prog->aux->func[i]; local 9292 (u64)(unsigned long)subprog->bpf_func, 9293 subprog->jited_len, unregister, 9294 subprog->aux->ksym.name);
|