Home
last modified time | relevance | path

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

/tools/perf/util/
Dsymbol-minimal.c87 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 …]
Dgenelf.c193 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()
Dsymbol-elf.c726 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()
Dprobe-event.c307 if (ehdr.e_ident[EI_CLASS] == ELFCLASS32) in find_module_name()
/tools/testing/selftests/vDSO/
Dparse_vdso.c104 if (hdr->e_ident[EI_CLASS] != in vdso_init_from_sysinfo_ehdr()
/tools/lib/bpf/
Dlibbpf.c465 switch (obj->efile.ehdr.e_ident[EI_DATA]) { in bpf_object__check_endianness()
/tools/lguest/
Dlguest.c530 if (memcmp(hdr.e_ident, ELFMAG, SELFMAG) == 0) in load_kernel()