Home
last modified time | relevance | path

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

12345

/linux-6.15/tools/perf/util/
H A Dsyscalltbl.c20 static const struct syscalltbl *find_table(int e_machine) in find_table() argument
26 if (e_machine == EM_SPARCV9) in find_table()
27 e_machine = EM_SPARC; in find_table()
35 if (entry->e_machine != e_machine && entry->e_machine != EM_NONE) in find_table()
39 last_table_machine = e_machine; in find_table()
45 const char *syscalltbl__name(int e_machine, int id) in syscalltbl__name() argument
47 const struct syscalltbl *table = find_table(e_machine); in syscalltbl__name()
49 if (e_machine == EM_MIPS && id > 1000) { in syscalltbl__name()
75 int syscalltbl__id(int e_machine, const char *name) in syscalltbl__id() argument
92 int syscalltbl__num_idx(int e_machine) in syscalltbl__num_idx() argument
[all …]
H A Dsyscalltbl.h5 const char *syscalltbl__name(int e_machine, int id);
6 int syscalltbl__id(int e_machine, const char *name);
7 int syscalltbl__num_idx(int e_machine);
8 int syscalltbl__id_at_idx(int e_machine, int idx);
10 int syscalltbl__strglobmatch_first(int e_machine, const char *syscall_glob, int *idx);
11 int syscalltbl__strglobmatch_next(int e_machine, const char *syscall_glob, int *idx);
H A Dthread.c441 if (pread(fd, &e_machine, sizeof(e_machine), 18) != sizeof(e_machine)) in read_proc_e_machine_for_pid()
442 e_machine = EM_NONE; in read_proc_e_machine_for_pid()
445 return e_machine; in read_proc_e_machine_for_pid()
462 uint16_t e_machine = RC_CHK_ACCESS(thread)->e_machine; in thread__e_machine() local
464 if (e_machine != EM_NONE) in thread__e_machine()
465 return e_machine; in thread__e_machine()
475 return e_machine; in thread__e_machine()
483 if (e_machine == EM_NONE) { in thread__e_machine()
499 if (e_machine != EM_NONE) in thread__e_machine()
502 e_machine = EM_HOST; in thread__e_machine()
[all …]
H A Dthread.h67 uint16_t e_machine; in DECLARE_RC_STRUCT() local
311 static inline void thread__set_e_machine(struct thread *thread, uint16_t e_machine) in thread__set_e_machine() argument
313 RC_CHK_ACCESS(thread)->e_machine = e_machine; in thread__set_e_machine()
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()
H A Dsymbol-elf.c440 switch (ehdr->e_machine) { in get_plt_sizes()
482 return e_machine == EM_386 || e_machine == EM_X86_64; in machine_is_x86()
651 if (ehdr->e_machine == EM_X86_64) in dso__synthesize_plt_got_symbols()
717 if (machine_is_x86(ehdr.e_machine) && in dso__synthesize_plt_symbols()
722 if (machine_is_x86(ehdr.e_machine) && in dso__synthesize_plt_symbols()
1415 if (ehdr->e_machine == EM_PARISC || in max_text_section()
1416 ehdr->e_machine == EM_ALPHA) in max_text_section()
1730 if (ehdr.e_machine == EM_ARM || ehdr.e_machine == EM_AARCH64) { in dso__load_sym_internal()
1798 if ((ehdr.e_machine == EM_ARM) && in dso__load_sym_internal()
2012 if (ehdr.e_machine == EM_X86_64) in dso__type_fd()
[all …]
/linux-6.15/tools/perf/trace/beauty/
H A Dsyscalltbl.sh38 e_machine="$4"
48 echo "static const char *const syscall_num_to_name_${e_machine}[] = {" >> "$outfile"
56 echo "static const uint16_t syscall_sorted_names_${e_machine}[] = {" >> "$outfile"
82 uint16_t e_machine;
181 e_machine=$1
185 .num_to_name = syscall_num_to_name_$e_machine,
186 .sorted_names = syscall_sorted_names_$e_machine,
187 .e_machine = $e_machine,
188 .num_to_name_len = ARRAY_SIZE(syscall_num_to_name_$e_machine),
189 .sorted_names_len = ARRAY_SIZE(syscall_sorted_names_$e_machine),
/linux-6.15/arch/x86/include/asm/
H A Delf.h90 (((x)->e_machine == EM_386) || ((x)->e_machine == EM_486))
151 ((x)->e_machine == EM_X86_64)
155 (IS_ENABLED(CONFIG_X86_X32_ABI) && (x)->e_machine == EM_X86_64))
178 compat_start_thread(regs, new_ip, new_sp, ex->e_machine == EM_X86_64)
182 set_personality_ia32((ex).e_machine == EM_X86_64)
355 if (exec->e_machine == EM_X86_64) \
379 (ex->e_machine == EM_X86_64))
/linux-6.15/arch/s390/include/asm/
H A Delf.h184 (((x)->e_machine == EM_S390 || (x)->e_machine == EM_S390_OLD) \
187 (((x)->e_machine == EM_S390 || (x)->e_machine == EM_S390_OLD) \
/linux-6.15/arch/openrisc/include/asm/
H A Delf.h26 (((x)->e_machine == EM_OR32) || ((x)->e_machine == EM_OPENRISC))
/linux-6.15/arch/sparc/include/asm/
H A Delf_64.h179 #define elf_check_arch(x) ((x)->e_machine == ELF_ARCH)
180 #define compat_elf_check_arch(x) ((x)->e_machine == EM_SPARC || \
181 (x)->e_machine == EM_SPARC32PLUS)
/linux-6.15/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-6.15/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-6.15/tools/perf/
H A Dbuiltin-trace.c1474 int e_machine; member
2483 sc->e_machine = e_machine; in syscall__new()
2501 if (a->e_machine != b->e_machine) in syscall__bsearch_cmp()
2502 return a->e_machine - b->e_machine; in syscall__bsearch_cmp()
2512 if (a->e_machine != b->e_machine) in syscall__cmp()
2513 return a->e_machine - b->e_machine; in syscall__cmp()
2521 .e_machine = e_machine, in trace__find_syscall()
2536 sc = syscall__new(e_machine, id); in trace__find_syscall()
2559 int e_machine, int id) in trace__syscall_info() argument
2757 int augmented_args_size = 0, e_machine; in trace__sys_enter() local
[all …]
/linux-6.15/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-6.15/arch/x86/um/asm/
H A Delf.h32 (((x)->e_machine == EM_386) || ((x)->e_machine == EM_486))
127 ((x)->e_machine == EM_X86_64)
/linux-6.15/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-6.15/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-6.15/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-6.15/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-6.15/tools/perf/arch/arc/annotate/
H A Dinstructions.c8 arch->e_machine = EM_ARC; in arc__annotate_init()
/linux-6.15/tools/perf/arch/riscv64/annotate/
H A Dinstructions.c31 arch->e_machine = EM_RISCV; in riscv64__annotate_init()
/linux-6.15/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-6.15/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()

12345