Lines Matching refs:tgt_prog
13588 const struct bpf_prog *tgt_prog, in bpf_check_attach_target() argument
13605 btf = tgt_prog ? tgt_prog->aux->btf : prog->aux->attach_btf; in bpf_check_attach_target()
13621 if (tgt_prog) { in bpf_check_attach_target()
13622 struct bpf_prog_aux *aux = tgt_prog->aux; in bpf_check_attach_target()
13646 if (!tgt_prog->jited) { in bpf_check_attach_target()
13650 if (tgt_prog->type == prog->type) { in bpf_check_attach_target()
13658 if (tgt_prog->type == BPF_PROG_TYPE_TRACING && in bpf_check_attach_target()
13660 (tgt_prog->expected_attach_type == BPF_TRACE_FENTRY || in bpf_check_attach_target()
13661 tgt_prog->expected_attach_type == BPF_TRACE_FEXIT)) { in bpf_check_attach_target()
13689 if (tgt_prog) { in bpf_check_attach_target()
13749 (!tgt_prog || prog->aux->saved_dst_prog_type != tgt_prog->type || in bpf_check_attach_target()
13750 prog->aux->saved_dst_attach_type != tgt_prog->expected_attach_type)) in bpf_check_attach_target()
13753 if (tgt_prog && conservative) in bpf_check_attach_target()
13760 if (tgt_prog) { in bpf_check_attach_target()
13762 addr = (long) tgt_prog->bpf_func; in bpf_check_attach_target()
13764 addr = (long) tgt_prog->aux->func[subprog]->bpf_func; in bpf_check_attach_target()
13801 if (tgt_prog) { in bpf_check_attach_target()
13838 struct bpf_prog *tgt_prog = prog->aux->dst_prog; in BTF_SET_START() local
13867 ret = bpf_check_attach_target(&env->log, prog, tgt_prog, btf_id, &tgt_info); in BTF_SET_START()
13871 if (tgt_prog && prog->type == BPF_PROG_TYPE_EXT) { in BTF_SET_START()
13876 env->ops = bpf_verifier_ops[tgt_prog->type]; in BTF_SET_START()
13877 prog->expected_attach_type = tgt_prog->expected_attach_type; in BTF_SET_START()
13884 if (tgt_prog) { in BTF_SET_START()
13885 prog->aux->saved_dst_prog_type = tgt_prog->type; in BTF_SET_START()
13886 prog->aux->saved_dst_attach_type = tgt_prog->expected_attach_type; in BTF_SET_START()
13907 key = bpf_trampoline_compute_key(tgt_prog, prog->aux->attach_btf, btf_id); in BTF_SET_START()