Home
last modified time | relevance | path

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

/tools/perf/util/
Dsymbol-minimal.c92 u8 e_ident[EI_NIDENT]; in filename__read_build_id() local
101 if (fread(e_ident, sizeof(e_ident), 1, fp) != 1) in filename__read_build_id()
104 if (memcmp(e_ident, ELFMAG, SELFMAG) || in filename__read_build_id()
105 e_ident[EI_VERSION] != EV_CURRENT) in filename__read_build_id()
108 need_swap = check_need_swap(e_ident[EI_DATA]); in filename__read_build_id()
113 if (e_ident[EI_CLASS] == ELFCLASS32) { in filename__read_build_id()
301 u8 e_ident[EI_NIDENT]; in fd__is_64_bit() local
306 if (readn(fd, e_ident, sizeof(e_ident)) != sizeof(e_ident)) in fd__is_64_bit()
309 if (memcmp(e_ident, ELFMAG, SELFMAG) || in fd__is_64_bit()
310 e_ident[EI_VERSION] != EV_CURRENT) in fd__is_64_bit()
[all …]
Dgenelf.c286 ehdr->e_ident[EI_DATA] = GEN_ELF_ENDIAN; in jit_write_elf()
287 ehdr->e_ident[EI_CLASS] = GEN_ELF_CLASS; in jit_write_elf()
Dsymbol-elf.c773 if (dso__swap_init(dso, ehdr.e_ident[EI_DATA])) { in symsrc__init()
1426 memcpy(ehdr->e_ident, kehdr->e_ident, EI_NIDENT); in kcore__copy_hdr()
Dprobe-event.c304 if (ehdr.e_ident[EI_CLASS] == ELFCLASS32) in find_module_name()
/tools/testing/selftests/proc/
Dproc-pid-vm.c79 uint8_t e_ident[16]; member
162 h.e_ident[0] = 0x7f; in make_exe()
163 h.e_ident[1] = 'E'; in make_exe()
164 h.e_ident[2] = 'L'; in make_exe()
165 h.e_ident[3] = 'F'; in make_exe()
166 h.e_ident[4] = 2; in make_exe()
167 h.e_ident[5] = 1; in make_exe()
168 h.e_ident[6] = 1; in make_exe()
169 h.e_ident[7] = 0; in make_exe()
/tools/testing/selftests/vDSO/
Dparse_vdso.c104 if (hdr->e_ident[EI_CLASS] != in vdso_init_from_sysinfo_ehdr()
/tools/testing/selftests/powerpc/ptrace/
Dcore-pkey.c205 ret = memcmp(ehdr->e_ident, ELFMAG, SELFMAG); in check_core_file()
/tools/lib/bpf/
Dbtf.c370 return ehdr->e_ident[EI_DATA] == ELFDATA2LSB; in btf_check_endianness()
372 return ehdr->e_ident[EI_DATA] == ELFDATA2MSB; in btf_check_endianness()
Dlibbpf.c619 if (obj->efile.ehdr.e_ident[EI_DATA] == ELFDATA2LSB) in bpf_object__check_endianness()
622 if (obj->efile.ehdr.e_ident[EI_DATA] == ELFDATA2MSB) in bpf_object__check_endianness()