Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dglobal_func_dead_code.c13 int err, tgt_fd; in test_global_func_dead_code() local
26 tgt_fd = bpf_program__fd(tgt_skel->progs.chained_global_func_calls_success); in test_global_func_dead_code()
33 err = bpf_program__set_attach_target(skel->progs.freplace_prog, tgt_fd, "global_good"); in test_global_func_dead_code()
48 err = bpf_program__set_attach_target(skel->progs.freplace_prog, tgt_fd, "global_dead"); in test_global_func_dead_code()
H A Dfexit_bpf2bpf.c68 int err, tgt_fd, i; in test_fexit_bpf2bpf_common() local
77 &tgt_obj, &tgt_fd); in test_fexit_bpf2bpf_common()
82 err = bpf_prog_get_info_by_fd(tgt_fd, &prog_info, &info_len); in test_fexit_bpf2bpf_common()
102 err = bpf_program__set_attach_target(p, tgt_fd, NULL); in test_fexit_bpf2bpf_common()
158 err = bpf_prog_test_run_opts(tgt_fd, &topts); in test_fexit_bpf2bpf_common()
236 int err = 0, tgt_fd; in test_second_attach() local
248 &tgt_obj, &tgt_fd); in test_second_attach()
252 link = bpf_program__attach_freplace(prog, tgt_fd, tgt_name); in test_second_attach()
256 err = bpf_prog_test_run_opts(tgt_fd, &topts); in test_second_attach()
/linux/tools/perf/util/
H A Dbpf_counter.c63 static char *bpf_target_prog_name(int tgt_fd) in bpf_target_prog_name() argument
71 info_linear = get_bpf_prog_info_linear(tgt_fd, 1UL << PERF_BPIL_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()
/linux/tools/bpf/bpftool/
H A Dprog.c2207 static char *profile_target_name(int tgt_fd) in profile_target_name()
2218 err = bpf_prog_get_info_by_fd(tgt_fd, &info, &info_len); in profile_target_name()
2220 p_err("failed to get info for prog FD %d", tgt_fd); in profile_target_name()
2225 p_err("prog FD %d doesn't have valid btf", tgt_fd); in profile_target_name()
2231 p_err("found 0 func_info for prog FD %d", tgt_fd); in profile_target_name()
2240 err = bpf_prog_get_info_by_fd(tgt_fd, &info, &info_len); in profile_target_name()
2242 p_err("failed to get func_info for prog FD %d", tgt_fd); in profile_target_name()
2248 p_err("failed to load btf for prog FD %d", tgt_fd); in profile_target_name()
2200 profile_target_name(int tgt_fd) profile_target_name() argument