| /tools/perf/util/ |
| A D | syscalltbl.c | 20 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 …]
|
| A D | syscalltbl.h | 5 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);
|
| A D | thread.c | 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() 498 return e_machine; in thread__e_machine() 506 if (e_machine == EM_NONE) { in thread__e_machine() 522 if (e_machine != EM_NONE) in thread__e_machine() 525 e_machine = EM_HOST; in thread__e_machine() [all …]
|
| A D | thread.h | 67 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()
|
| A D | probe-finder.h | 75 unsigned int e_machine; /* ELF target machine arch */ member
|
| A D | symbol-elf.c | 380 switch (ehdr->e_machine) { in get_plt_sizes() 422 return e_machine == EM_386 || e_machine == EM_X86_64; in machine_is_x86() 591 if (ehdr->e_machine == EM_X86_64) in dso__synthesize_plt_got_symbols() 657 if (machine_is_x86(ehdr.e_machine) && in dso__synthesize_plt_symbols() 1350 if (ehdr->e_machine == EM_PARISC || in max_text_section() 1351 ehdr->e_machine == EM_ALPHA) in max_text_section() 1665 if (ehdr.e_machine == EM_ARM || ehdr.e_machine == EM_AARCH64) { in dso__load_sym_internal() 1672 if (ehdr.e_machine == EM_RISCV) { in dso__load_sym_internal() 1739 if ((ehdr.e_machine == EM_ARM) && in dso__load_sym_internal() 1953 if (ehdr.e_machine == EM_X86_64) in dso__type_fd() [all …]
|
| A D | disasm.h | 48 unsigned int e_machine; member
|
| A D | dso.c | 1199 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()
|
| /tools/perf/trace/beauty/ |
| A D | syscalltbl.sh | 38 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),
|
| /tools/perf/arch/arc/annotate/ |
| A D | instructions.c | 8 arch->e_machine = EM_ARC; in arc__annotate_init()
|
| /tools/perf/ |
| A D | builtin-trace.c | 1468 int e_machine; member 2487 sc->e_machine = e_machine; in syscall__new() 2505 if (a->e_machine != b->e_machine) in syscall__bsearch_cmp() 2506 return a->e_machine - b->e_machine; in syscall__bsearch_cmp() 2516 if (a->e_machine != b->e_machine) in syscall__cmp() 2517 return a->e_machine - b->e_machine; in syscall__cmp() 2525 .e_machine = e_machine, in trace__find_syscall() 2540 sc = syscall__new(e_machine, id); in trace__find_syscall() 2563 int e_machine, int id) in trace__syscall_info() argument 2844 int augmented_args_size, e_machine; in trace__fprintf_sys_enter() local [all …]
|
| /tools/perf/arch/riscv64/annotate/ |
| A D | instructions.c | 31 arch->e_machine = EM_RISCV; in riscv64__annotate_init()
|
| /tools/perf/arch/csky/annotate/ |
| A D | instructions.c | 46 arch->e_machine = EM_CSKY; in csky__annotate_init()
|
| /tools/perf/arch/mips/annotate/ |
| A D | instructions.c | 43 arch->e_machine = EM_MIPS; in mips__annotate_init()
|
| /tools/perf/arch/arm/annotate/ |
| A D | instructions.c | 56 arch->e_machine = EM_ARM; in arm__annotate_init()
|
| /tools/perf/arch/sparc/annotate/ |
| A D | instructions.c | 166 arch->e_machine = EM_SPARC; in sparc__annotate_init()
|
| /tools/perf/jvmti/ |
| A D | jvmti_agent.c | 62 uint16_t e_machine; in get_e_machine() member 81 hdr->elf_mach = info.e_machine; in get_e_machine()
|
| /tools/perf/arch/arm64/annotate/ |
| A D | instructions.c | 116 arch->e_machine = EM_AARCH64; in arm64__annotate_init()
|
| /tools/include/uapi/linux/ |
| A D | elf.h | 220 Elf32_Half e_machine; member 237 Elf64_Half e_machine; member
|
| /tools/objtool/arch/loongarch/ |
| A D | decode.c | 63 if (elf->ehdr.e_machine == EM_LOONGARCH) in is_loongarch() 66 ERROR("unexpected ELF machine type %d", elf->ehdr.e_machine); in is_loongarch()
|
| /tools/perf/arch/loongarch/annotate/ |
| A D | instructions.c | 134 arch->e_machine = EM_LOONGARCH; in loongarch__annotate_init()
|
| /tools/perf/arch/s390/annotate/ |
| A D | instructions.c | 169 arch->e_machine = EM_S390; in s390__annotate_init()
|
| /tools/testing/selftests/proc/ |
| A D | proc-pid-vm.c | 84 uint16_t e_machine; member 174 h.e_machine = 0x3e; in make_exe()
|
| /tools/perf/arch/powerpc/annotate/ |
| A D | instructions.c | 312 arch->e_machine = EM_PPC; in powerpc__annotate_init()
|
| /tools/objtool/arch/x86/ |
| A D | decode.c | 33 switch (elf->ehdr.e_machine) { in is_x86_64() 39 ERROR("unexpected ELF machine type %d", elf->ehdr.e_machine); in is_x86_64()
|