Home
last modified time | relevance | path

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

/linux-6.6.21/tools/lib/bpf/
Delf.c13 int elf_open(const char *binary_path, struct elf_fd *elf_fd) in elf_open() argument
36 elf_fd->fd = fd; in elf_open()
37 elf_fd->elf = elf; in elf_open()
41 void elf_close(struct elf_fd *elf_fd) in elf_close() argument
43 if (!elf_fd) in elf_close()
45 elf_end(elf_fd->elf); in elf_close()
46 close(elf_fd->fd); in elf_close()
260 struct elf_fd elf_fd; in elf_find_func_offset_from_file() local
263 ret = elf_open(binary_path, &elf_fd); in elf_find_func_offset_from_file()
266 ret = elf_find_func_offset(elf_fd.elf, binary_path, name); in elf_find_func_offset_from_file()
[all …]
Dlibbpf_internal.h588 struct elf_fd { struct
593 int elf_open(const char *binary_path, struct elf_fd *elf_fd); argument
594 void elf_close(struct elf_fd *elf_fd);
Dusdt.c967 struct elf_fd elf_fd; in usdt_manager_attach_usdt() local
973 err = elf_open(path, &elf_fd); in usdt_manager_attach_usdt()
977 err = sanity_check_usdt_elf(elf_fd.elf, path); in usdt_manager_attach_usdt()
990 err = collect_usdt_targets(man, elf_fd.elf, path, pid, usdt_provider, usdt_name, in usdt_manager_attach_usdt()
1114 elf_close(&elf_fd); in usdt_manager_attach_usdt()
1126 elf_close(&elf_fd); in usdt_manager_attach_usdt()