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()
175 int err, i, tgt_prog_fd; in test_fentry_attach_stress() local
182 tgt_prog_fd = bpf_program__fd(target_skel->progs.fentry_target); in test_fentry_attach_stress()
184 fentry_target_test_run, &tgt_prog_fd); in test_fentry_attach_stress()
194 err = bpf_program__set_attach_target(prog, tgt_prog_fd, in test_fentry_attach_stress()
212 __atomic_store_n(&tgt_prog_fd, -1, __ATOMIC_SEQ_CST); in test_fentry_attach_stress()
/linux/kernel/bpf/
H A Dsyscall.c3453 int tgt_prog_fd, in bpf_tracing_prog_attach() argument
3491 if (!!tgt_prog_fd != !!btf_id) { in bpf_tracing_prog_attach()
3496 if (tgt_prog_fd) { in bpf_tracing_prog_attach()
3508 tgt_prog = bpf_prog_get(tgt_prog_fd); in bpf_tracing_prog_attach()
3627 (tgt_prog_fd || tr != prog->aux->dst_trampoline)) in bpf_tracing_prog_attach()
3645 if (tgt_prog_fd && tgt_prog) in bpf_tracing_prog_attach()