Home
last modified time | relevance | path

Searched refs:elf_fd (Results 1 – 3 of 3) 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
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
380 ret = elf_open(binary_path, &elf_fd); in elf_find_func_offset_from_file()
383 ret = elf_find_func_offset(elf_fd.elf, binary_path, name); in elf_find_func_offset_from_file()
[all …]
H A Dlibbpf_internal.h674 struct elf_fd { struct
679 int elf_open(const char *binary_path, struct elf_fd *elf_fd); argument
680 void elf_close(struct elf_fd *elf_fd);
H A 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()