77 #include <include/hpctoolkit-config.h> 104 fileName = _fileName;
106 elf_version(EV_CURRENT);
107 elf = elf_memory(memPtr, memLen);
108 if (elf == 0 || elf_kind(elf) != ELF_K_ELF) {
112 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_v);
118 if (ehdr->e_machine == EM_CUDA) {
119 #ifdef DYNINST_USE_CUDA 147 bool nonempty =
false;
150 while ((scn = elf_nextscn(elf, scn)) !=
NULL) {
151 sections->push_back(scn);
155 if (nonempty)
return sections;
170 char *sectionData = obj_ptr + shdr->sh_offset;
bool relocateCubin(char *cubin_ptr, Elf *cubin_elf)
bool open(char *_memPtr, size_t _memLen, std::string _fileName)
ElfSectionVector * elfGetSectionVector(Elf *elf)
char * elfSectionGetData(char *obj_ptr, GElf_Shdr *shdr)