Home
last modified time | relevance | path

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

/system/core/debuggerd/
Delf_utils.cpp36 Backtrace* backtrace, uintptr_t base_addr, uint8_t* e_ident, std::string* build_id) { in get_build_id() argument
39 memcpy(&hdr.e_ident[0], e_ident, EI_NIDENT); in get_build_id()
100 uint8_t e_ident[EI_NIDENT]; in elf_get_build_id() local
101 if (backtrace->Read(addr, e_ident, SELFMAG) != SELFMAG) { in elf_get_build_id()
105 if (memcmp(e_ident, ELFMAG, SELFMAG) != 0) { in elf_get_build_id()
110 …if (backtrace->Read(addr + SELFMAG, e_ident + SELFMAG, EI_NIDENT - SELFMAG) != EI_NIDENT - SELFMAG… in elf_get_build_id()
114 if (e_ident[EI_CLASS] == ELFCLASS32) { in elf_get_build_id()
115 return get_build_id<Elf32_Ehdr, Elf32_Phdr, Elf32_Nhdr>(backtrace, addr, e_ident, build_id); in elf_get_build_id()
116 } else if (e_ident[EI_CLASS] == ELFCLASS64) { in elf_get_build_id()
117 return get_build_id<Elf64_Ehdr, Elf64_Phdr, Elf64_Nhdr>(backtrace, addr, e_ident, build_id); in elf_get_build_id()
/system/core/crash_reporter/
Duser_collector_test.cc402 char e_ident[EI_NIDENT]; in TEST_F() local
403 e_ident[EI_MAG0] = ELFMAG0; in TEST_F()
404 e_ident[EI_MAG1] = ELFMAG1; in TEST_F()
405 e_ident[EI_MAG2] = ELFMAG2; in TEST_F()
406 e_ident[EI_MAG3] = ELFMAG3; in TEST_F()
408 e_ident[EI_CLASS] = ELFCLASS32; in TEST_F()
410 e_ident[EI_CLASS] = ELFCLASS64; in TEST_F()
416 ASSERT_TRUE(base::WriteFile(core_file, e_ident, sizeof(e_ident))); in TEST_F()
422 e_ident[EI_CLASS] = ELFCLASS32; in TEST_F()
423 ASSERT_TRUE(base::WriteFile(core_file, e_ident, sizeof(e_ident))); in TEST_F()
[all …]
Duser_collector.cc277 char e_ident[EI_NIDENT]; in ValidateCoreFile() local
278 bool read_ok = base::ReadFromFD(fd, e_ident, sizeof(e_ident)); in ValidateCoreFile()
285 if (e_ident[EI_MAG0] != ELFMAG0 || e_ident[EI_MAG1] != ELFMAG1 || in ValidateCoreFile()
286 e_ident[EI_MAG2] != ELFMAG2 || e_ident[EI_MAG3] != ELFMAG3) { in ValidateCoreFile()
294 if (e_ident[EI_CLASS] == ELFCLASS32) { in ValidateCoreFile()