Home
last modified time | relevance | path

Searched refs:e_machine (Results 1 – 25 of 80) sorted by relevance

1234

/linux/tools/perf/util/
H A Dthread.c456 uint16_t e_machine = EM_NONE; in read_proc_e_machine_for_pid() local
461 _Static_assert(offsetof(Elf32_Ehdr, e_machine) == 18, "Unexpected offset"); in read_proc_e_machine_for_pid()
462 _Static_assert(offsetof(Elf64_Ehdr, e_machine) == 18, "Unexpected offset"); in read_proc_e_machine_for_pid()
463 if (pread(fd, &e_machine, sizeof(e_machine), 18) != sizeof(e_machine)) in read_proc_e_machine_for_pid()
464 e_machine = EM_NONE; in read_proc_e_machine_for_pid()
467 return e_machine; in read_proc_e_machine_for_pid()
484 uint16_t e_machine = RC_CHK_ACCESS(thread)->e_machine; in thread__e_machine() local
486 if (e_machine != EM_NONE) in thread__e_machine()
487 return e_machine; in thread__e_machine()
495 e_machine = thread__e_machine(parent, machine); in thread__e_machine()
[all …]
H A Dthread.h67 uint16_t e_machine; in DECLARE_RC_STRUCT() local
312 static inline void thread__set_e_machine(struct thread *thread, uint16_t e_machine) in thread__set_e_machine() argument
314 RC_CHK_ACCESS(thread)->e_machine = e_machine; in thread__set_e_machine()
H A Dsymbol-elf.c331 return ehdr->e_machine == EM_X86_64 && ri->is_rela && in addend_may_be_ifunc()
369 switch (ehdr->e_machine) { in get_plt_sizes()
409 static bool machine_is_x86(GElf_Half e_machine) in machine_is_x86() argument
411 return e_machine == EM_386 || e_machine == EM_X86_64; in machine_is_x86()
580 if (ehdr->e_machine == EM_X86_64) in dso__synthesize_plt_got_symbols()
646 if (machine_is_x86(ehdr.e_machine) && in dso__synthesize_plt_symbols()
651 if (machine_is_x86(ehdr.e_machine) && in dso__synthesize_plt_symbols()
740 if (machine_is_x86(ehdr.e_machine) && sort_rel(&ri)) in dso__synthesize_plt_symbols()
1278 if (ehdr->e_machine in max_text_section()
[all...]
H A Ddso.c1199 uint16_t e_machine = EM_NONE; in dso__e_machine() local
1243 _Static_assert(offsetof(Elf32_Ehdr, e_machine) == 18, "Unexpected offset"); in dso__e_machine()
1244 _Static_assert(offsetof(Elf64_Ehdr, e_machine) == 18, "Unexpected offset"); in dso__e_machine()
1252 pread(fd, &e_machine, sizeof(e_machine), 18) == sizeof(e_machine)) in dso__e_machine()
1253 e_machine = DSO__SWAP(dso, uint16_t, e_machine); in dso__e_machine()
1256 return e_machine; in dso__e_machine()
/linux/arch/x86/include/asm/
H A Delf.h86 (((x)->e_machine == EM_386) || ((x)->e_machine == EM_486))
147 ((x)->e_machine == EM_X86_64)
151 (IS_ENABLED(CONFIG_X86_X32_ABI) && (x)->e_machine == EM_X86_64))
174 compat_start_thread(regs, new_ip, new_sp, ex->e_machine == EM_X86_64)
178 set_personality_ia32((ex).e_machine == EM_X86_64)
351 if (exec->e_machine == EM_X86_64) \
375 (ex->e_machine == EM_X86_64))
/linux/arch/openrisc/include/asm/
H A Delf.h26 (((x)->e_machine == EM_OR32) || ((x)->e_machine == EM_OPENRISC))
/linux/scripts/
H A Drecordmcount.c565 switch (w2(ehdr->e_machine)) { in do_file()
568 w2(ehdr->e_machine), fname); in do_file()
622 if (w2(ehdr->e_machine) == EM_MIPS) { in do_file()
626 if (w2(ehdr->e_machine) == EM_LOONGARCH) { in do_file()
641 if (w2(ghdr->e_machine) == EM_S390) { in do_file()
645 if (w2(ghdr->e_machine) == EM_MIPS) { in do_file()
651 if (w2(ghdr->e_machine) == EM_LOONGARCH) { in do_file()
/linux/tools/perf/
H A Dbuiltin-trace.c1469 int e_machine; member
2172 name = syscalltbl__name(sc->e_machine, sc->id); in syscall__read_info()
2504 static struct syscall *syscall__new(int e_machine, int id) in syscall__new() argument
2511 sc->e_machine = e_machine; in syscall__new()
2529 if (a->e_machine != b->e_machine) in syscall__bsearch_cmp()
2530 return a->e_machine - b->e_machine; in syscall__bsearch_cmp()
2540 if (a->e_machine != b->e_machine) in syscall__cmp()
2541 return a->e_machine - b->e_machine; in syscall__cmp()
2546 static struct syscall *trace__find_syscall(struct trace *trace, int e_machine, int id) in trace__find_syscall() argument
2549 .e_machine = e_machine, in trace__find_syscall()
[all …]
/linux/arch/csky/include/asm/
H A Delf.h46 #define elf_check_arch(x) (((x)->e_machine == ELF_ARCH) || \
47 ((x)->e_machine == EM_CSKY_OLD))
/linux/arch/x86/um/asm/
H A Delf.h32 (((x)->e_machine == EM_386) || ((x)->e_machine == EM_486))
99 ((x)->e_machine == EM_X86_64)
/linux/arch/microblaze/include/uapi/asm/
H A Delf.h28 #define elf_check_arch(x) ((x)->e_machine == EM_MICROBLAZE \
29 || (x)->e_machine == EM_MICROBLAZE_OLD)
/linux/arch/powerpc/boot/
H A Delf_util.c32 elf64->e_machine == EM_PPC64)) in parse_elf64()
64 elf32->e_machine == EM_PPC)) in parse_elf32()
H A Delf.h58 Elf32_Half e_machine; member
75 Elf64_Half e_machine; member
/linux/arch/xtensa/include/asm/
H A Delf.h93 #define elf_check_arch(x) ( ( (x)->e_machine == EM_XTENSA ) || \
94 ( (x)->e_machine == EM_XTENSA_OLD ) )
/linux/arch/powerpc/include/asm/
H A Delf.h16 #define elf_check_arch(x) ((x)->e_machine == ELF_ARCH)
17 #define compat_elf_check_arch(x) ((x)->e_machine == EM_PPC)
/linux/arch/arm/vdso/
H A Dvdsomunge.c164 if (read_elf_half(inhdr->e_machine, swap) != EM_ARM) in main()
165 fail("Unsupported architecture %#x\n", inhdr->e_machine); in main()
/linux/arch/alpha/boot/tools/
H A Dobjstrip.c33 # define elf_check_arch(x) ((x)->e_machine == EM_ALPHA)
159 prog_name, elf->e_machine); in main()
/linux/arch/parisc/include/asm/
H A Delf.h311 ((x)->e_machine == EM_PARISC && (x)->e_ident[EI_CLASS] == ELF_CLASS)
313 ((x)->e_machine == EM_PARISC && (x)->e_ident[EI_CLASS] == ELFCLASS32)
/linux/arch/s390/tools/
H A Drelocs.c133 ehdr.e_machine = elf_half_to_cpu(ehdr.e_machine); in read_ehdr()
151 if (ehdr.e_machine != ELF_MACHINE) in read_ehdr()
/linux/arch/sparc/include/asm/
H A Delf_32.h99 #define elf_check_arch(x) ((x)->e_machine == EM_SPARC)
/linux/arch/x86/um/
H A Dptrace.c285 .name = "i386", .e_machine = EM_386,
287 .name = "x86_64", .e_machine = EM_X86_64,
/linux/tools/perf/arch/arm/annotate/
H A Dinstructions.c57 arch->e_machine = EM_ARM; in arm__annotate_init()
/linux/arch/arm/kernel/
H A Delf.c15 if (x->e_machine != EM_ARM) in elf_check_arch()
/linux/arch/alpha/include/asm/
H A Delf.h77 #define elf_check_arch(x) (((x)->e_machine == EM_ALPHA) && !((x)->e_flags & EF_ALPHA_32BIT))
/linux/tools/perf/jvmti/
H A Djvmti_agent.c62 uint16_t e_machine; in get_e_machine() member
81 hdr->elf_mach = info.e_machine; in get_e_machine()

1234