Home
last modified time | relevance | path

Searched refs:tgt_prog_fd (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Drecursive_attach.c118 int err, link_fd, tgt_prog_fd; in test_fentry_attach_btf_presence() local
129 tgt_prog_fd = bpf_program__fd(target_skel->progs.fentry_target); in test_fentry_attach_btf_presence()
130 err = bpf_program__set_attach_target(prog, tgt_prog_fd, "fentry_target"); in test_fentry_attach_btf_presence()
138 tgt_prog_fd = bpf_program__fd(tracing_skel->progs.recursive_attach); in test_fentry_attach_btf_presence()
139 link_fd = bpf_link_create(tgt_prog_fd, 0, BPF_TRACE_FENTRY, NULL); in test_fentry_attach_btf_presence()
/linux/kernel/bpf/
H A Dsyscall.c3278 int tgt_prog_fd, in bpf_tracing_prog_attach() argument
3315 if (!!tgt_prog_fd != !!btf_id) { in bpf_tracing_prog_attach()
3320 if (tgt_prog_fd) { in bpf_tracing_prog_attach()
3332 tgt_prog = bpf_prog_get(tgt_prog_fd); in bpf_tracing_prog_attach()
3451 (tgt_prog_fd || tr != prog->aux->dst_trampoline)) in bpf_tracing_prog_attach()
3469 if (tgt_prog_fd && tgt_prog) in bpf_tracing_prog_attach()