Home
last modified time | relevance | path

Searched refs:tgt_fd (Results 1 – 3 of 3) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
Dfexit_bpf2bpf.c65 int err, tgt_fd, i; in test_fexit_bpf2bpf_common() local
69 &tgt_obj, &tgt_fd); in test_fexit_bpf2bpf_common()
73 .attach_prog_fd = tgt_fd, in test_fexit_bpf2bpf_common()
77 err = bpf_obj_get_info_by_fd(tgt_fd, &prog_info, &info_len); in test_fexit_bpf2bpf_common()
139 err = bpf_prog_test_run(tgt_fd, 1, &pkt_v6, sizeof(pkt_v6), in test_fexit_bpf2bpf_common()
219 int err = 0, tgt_fd; in test_second_attach() local
226 &tgt_obj, &tgt_fd); in test_second_attach()
231 link = bpf_program__attach_freplace(prog, tgt_fd, tgt_name); in test_second_attach()
235 err = bpf_prog_test_run(tgt_fd, 1, &pkt_v6, sizeof(pkt_v6), in test_second_attach()
/tools/perf/util/
Dbpf_counter.c62 static char *bpf_target_prog_name(int tgt_fd) in bpf_target_prog_name() argument
71 tgt_fd, 1UL << BPF_PROG_INFO_FUNC_INFO); in bpf_target_prog_name()
73 pr_debug("failed to get info_linear for prog FD %d\n", tgt_fd); in bpf_target_prog_name()
78 pr_debug("prog FD %d doesn't have valid btf\n", tgt_fd); in bpf_target_prog_name()
84 pr_debug("failed to load btf for prog FD %d\n", tgt_fd); in bpf_target_prog_name()
/tools/bpf/bpftool/
Dprog.c2010 static char *profile_target_name(int tgt_fd) in profile_target_name() argument
2019 tgt_fd, 1UL << BPF_PROG_INFO_FUNC_INFO); in profile_target_name()
2021 p_err("failed to get info_linear for prog FD %d", tgt_fd); in profile_target_name()
2026 p_err("prog FD %d doesn't have valid btf", tgt_fd); in profile_target_name()
2032 p_err("failed to load btf for prog FD %d", tgt_fd); in profile_target_name()