Searched refs:elf_fd (Results 1 – 5 of 5) sorted by relevance
/external/elfutils/libdwfl/ |
D | linux-pid-attach.c | 336 close (pid_arg->elf_fd); in pid_detach() 436 int elf_fd = open (name, O_RDONLY); in dwfl_linux_proc_attach() local 437 if (elf_fd >= 0) in dwfl_linux_proc_attach() 439 elf = elf_begin (elf_fd, ELF_C_READ_MMAP, NULL); in dwfl_linux_proc_attach() 445 close (elf_fd); in dwfl_linux_proc_attach() 446 elf_fd = -1; in dwfl_linux_proc_attach() 455 close (elf_fd); in dwfl_linux_proc_attach() 462 pid_arg->elf_fd = elf_fd; in dwfl_linux_proc_attach() 470 close (elf_fd); in dwfl_linux_proc_attach()
|
D | libdwflP.h | 429 int elf_fd; member
|
D | ChangeLog | 522 * libdwflP.h (struct __libdwfl_pid_arg): Add elf and elf_fd.
|
/external/iproute2/lib/ |
D | bpf.c | 1090 Elf *elf_fd; member 1739 sec_fd = elf_getscn(ctx->elf_fd, section); in bpf_fill_section_data() 1745 sec_name = elf_strptr(ctx->elf_fd, ctx->elf_hdr.e_shstrndx, in bpf_fill_section_data() 2422 ctx->elf_fd = elf_begin(ctx->obj_fd, ELF_C_READ, NULL); in bpf_elf_ctx_init() 2423 if (!ctx->elf_fd) { in bpf_elf_ctx_init() 2428 if (elf_kind(ctx->elf_fd) != ELF_K_ELF) { in bpf_elf_ctx_init() 2433 if (gelf_getehdr(ctx->elf_fd, &ctx->elf_hdr) != in bpf_elf_ctx_init() 2462 elf_end(ctx->elf_fd); in bpf_elf_ctx_init() 2501 elf_end(ctx->elf_fd); in bpf_elf_ctx_destroy()
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_btf.c | 2308 int elf_fd; in file_has_btf_elf() local 2316 elf_fd = open(fn, O_RDONLY); in file_has_btf_elf() 2317 if (CHECK(elf_fd == -1, "open(%s): errno:%d", fn, errno)) in file_has_btf_elf() 2320 elf = elf_begin(elf_fd, ELF_C_READ, NULL); in file_has_btf_elf() 2351 close(elf_fd); in file_has_btf_elf()
|