Searched refs:e_ident (Results 1 – 7 of 7) sorted by relevance
/tools/perf/util/ |
D | symbol-minimal.c | 87 u8 e_ident[EI_NIDENT]; in filename__read_build_id() local 96 if (fread(e_ident, sizeof(e_ident), 1, fp) != 1) in filename__read_build_id() 99 if (memcmp(e_ident, ELFMAG, SELFMAG) || in filename__read_build_id() 100 e_ident[EI_VERSION] != EV_CURRENT) in filename__read_build_id() 103 need_swap = check_need_swap(e_ident[EI_DATA]); in filename__read_build_id() 108 if (e_ident[EI_CLASS] == ELFCLASS32) { in filename__read_build_id() 297 u8 e_ident[EI_NIDENT]; in fd__is_64_bit() local 302 if (readn(fd, e_ident, sizeof(e_ident)) != sizeof(e_ident)) in fd__is_64_bit() 305 if (memcmp(e_ident, ELFMAG, SELFMAG) || in fd__is_64_bit() 306 e_ident[EI_VERSION] != EV_CURRENT) in fd__is_64_bit() [all …]
|
D | genelf.c | 193 ehdr->e_ident[EI_DATA] = GEN_ELF_ENDIAN; in jit_write_elf() 194 ehdr->e_ident[EI_CLASS] = GEN_ELF_CLASS; in jit_write_elf()
|
D | symbol-elf.c | 726 if (dso__swap_init(dso, ehdr.e_ident[EI_DATA])) { in symsrc__init() 1349 memcpy(ehdr->e_ident, kehdr->e_ident, EI_NIDENT); in kcore__copy_hdr()
|
D | probe-event.c | 307 if (ehdr.e_ident[EI_CLASS] == ELFCLASS32) in find_module_name()
|
/tools/testing/selftests/vDSO/ |
D | parse_vdso.c | 104 if (hdr->e_ident[EI_CLASS] != in vdso_init_from_sysinfo_ehdr()
|
/tools/lib/bpf/ |
D | libbpf.c | 465 switch (obj->efile.ehdr.e_ident[EI_DATA]) { in bpf_object__check_endianness()
|
/tools/lguest/ |
D | lguest.c | 530 if (memcmp(hdr.e_ident, ELFMAG, SELFMAG) == 0) in load_kernel()
|