Searched refs:elf_fd (Results 1 – 3 of 3) sorted by relevance
| /linux/tools/lib/bpf/ |
| H A D | elf.c | 24 int elf_open(const char *binary_path, struct elf_fd *elf_fd) in elf_open() argument 29 elf_fd->elf = NULL; in elf_open() 30 elf_fd->fd = -1; in elf_open() 48 elf_fd->fd = fd; in elf_open() 49 elf_fd->elf = elf; in elf_open() 53 void elf_close(struct elf_fd *elf_fd) in elf_close() argument 55 if (!elf_fd) in elf_close() 57 elf_end(elf_fd->elf); in elf_close() 58 close(elf_fd->fd); in elf_close() 377 struct elf_fd elf_fd; in elf_find_func_offset_from_file() local [all …]
|
| H A D | usdt.c | 624 static int collect_usdt_targets(struct usdt_manager *man, struct elf_fd *elf_fd, const char *path, in collect_usdt_targets() argument 632 Elf *elf = elf_fd->elf; in collect_usdt_targets() 832 if (man->has_uprobe_syscall && has_nop_combo(elf_fd->fd, usdt_rel_ip)) { in collect_usdt_targets() 1028 struct elf_fd elf_fd; in usdt_manager_attach_usdt() local 1034 err = elf_open(path, &elf_fd); in usdt_manager_attach_usdt() 1038 err = sanity_check_usdt_elf(elf_fd.elf, path); in usdt_manager_attach_usdt() 1051 err = collect_usdt_targets(man, &elf_fd, path, pid, usdt_provider, usdt_name, in usdt_manager_attach_usdt() 1175 elf_close(&elf_fd); in usdt_manager_attach_usdt() 1187 elf_close(&elf_fd); in usdt_manager_attach_usdt()
|
| H A D | libbpf_internal.h | 754 struct elf_fd { struct 759 int elf_open(const char *binary_path, struct elf_fd *elf_fd); argument 760 void elf_close(struct elf_fd *elf_fd);
|