Searched refs:tgt_fd (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | fexit_bpf2bpf.c | 68 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()
|
/openbmc/linux/tools/perf/util/ |
H A D | bpf_counter.c | 63 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()
|
/openbmc/linux/tools/bpf/bpftool/ |
H A D | prog.c | 2203 static char *profile_target_name(int tgt_fd) in profile_target_name() argument 2214 err = bpf_prog_get_info_by_fd(tgt_fd, &info, &info_len); in profile_target_name() 2216 p_err("failed to get info for prog FD %d", tgt_fd); in profile_target_name() 2221 p_err("prog FD %d doesn't have valid btf", tgt_fd); in profile_target_name() 2227 p_err("found 0 func_info for prog FD %d", tgt_fd); in profile_target_name() 2236 err = bpf_prog_get_info_by_fd(tgt_fd, &info, &info_len); in profile_target_name() 2238 p_err("failed to get func_info for prog FD %d", tgt_fd); in profile_target_name() 2244 p_err("failed to load btf for prog FD %d", tgt_fd); in profile_target_name()
|