Lines Matching refs:tgt_prog
3265 /* tgt_prog is NULL if target is a kernel function */
3266 if (tr_link->tgt_prog)
3267 bpf_prog_put(tr_link->tgt_prog);
3323 struct bpf_prog *tgt_prog = NULL;
3372 tgt_prog = bpf_prog_get(tgt_prog_fd);
3373 if (IS_ERR(tgt_prog)) {
3374 err = PTR_ERR(tgt_prog);
3375 tgt_prog = NULL;
3379 key = bpf_trampoline_compute_key(tgt_prog, NULL, btf_id);
3403 * - if tgt_prog != NULL, the caller specified tgt_prog_fd +
3406 * - if tgt_prog == NULL when this function was called using the old
3409 * - if prog->aux->dst_trampoline and tgt_prog is NULL, the program
3412 * - if prog->aux->dst_trampoline is NULL and tgt_prog and prog->aux->attach_btf
3416 if (!prog->aux->dst_trampoline && !tgt_prog) {
3445 err = bpf_check_attach_target(NULL, prog, tgt_prog, btf_id,
3469 tgt_prog = prog->aux->dst_prog;
3483 link->tgt_prog = tgt_prog;
3509 if (tgt_prog_fd && tgt_prog)
3510 bpf_prog_put(tgt_prog);