Home
last modified time | relevance | path

Searched refs:elf_fd (Results 1 – 2 of 2) sorted by relevance

/linux/tools/lib/bpf/
H A Delf.c25 int elf_open(const char *binary_path, struct elf_fd *elf_fd) in elf_open() argument
30 elf_fd->elf = NULL; in elf_open()
31 elf_fd->fd = -1; in elf_open()
49 elf_fd->fd = fd; in elf_open()
50 elf_fd->elf = elf; in elf_open()
54 void elf_close(struct elf_fd *elf_fd) in elf_close() argument
56 if (!elf_fd) in elf_close()
58 elf_end(elf_fd->elf); in elf_close()
59 close(elf_fd->fd); in elf_close()
378 struct elf_fd elf_fd; in elf_find_func_offset_from_file() local
[all …]
H A Dusdt.c969 struct elf_fd elf_fd; in usdt_manager_attach_usdt() local
975 err = elf_open(path, &elf_fd); in usdt_manager_attach_usdt()
979 err = sanity_check_usdt_elf(elf_fd.elf, path); in usdt_manager_attach_usdt()
992 err = collect_usdt_targets(man, elf_fd.elf, path, pid, usdt_provider, usdt_name, in usdt_manager_attach_usdt()
1116 elf_close(&elf_fd); in usdt_manager_attach_usdt()
1128 elf_close(&elf_fd); in usdt_manager_attach_usdt()