| /linux/tools/perf/util/ |
| H A D | kvm-stat.c | 9 uint16_t e_machine = evsel__e_machine(evsel, /*e_flags=*/NULL); in kvm_exit_event() local 11 return evsel__name_is(evsel, kvm_exit_trace(e_machine)); in kvm_exit_event() 18 uint16_t e_machine = evsel__e_machine(evsel, /*e_flags=*/NULL); in exit_event_get_key() local 21 key->key = evsel__intval(evsel, sample, kvm_exit_reason(e_machine)); in exit_event_get_key() 38 uint16_t e_machine = evsel__e_machine(evsel, /*e_flags=*/NULL); in kvm_entry_event() local 40 return evsel__name_is(evsel, kvm_entry_trace(e_machine)); in kvm_entry_event() 75 int setup_kvm_events_tp(struct perf_kvm_stat *kvm, uint16_t e_machine) in setup_kvm_events_tp() argument 77 switch (e_machine) { in setup_kvm_events_tp() 86 int cpu_isa_init(struct perf_kvm_stat *kvm, uint16_t e_machine, const char *cpuid) in cpu_isa_init() argument 88 switch (e_machine) { in cpu_isa_init() [all …]
|
| H A D | perf_regs.c | 10 int perf_sdt_arg_parse_op(uint16_t e_machine, char *old_op, char **new_op) in perf_sdt_arg_parse_op() argument 14 switch (e_machine) { in perf_sdt_arg_parse_op() 31 e_machine); in perf_sdt_arg_parse_op() 38 uint64_t perf_intr_reg_mask(uint16_t e_machine) in perf_intr_reg_mask() 42 switch (e_machine) { in perf_intr_reg_mask() 74 e_machine); in perf_intr_reg_mask() 81 uint64_t perf_user_reg_mask(uint16_t e_machine) in perf_user_reg_mask() 85 switch (e_machine) { in perf_user_reg_mask() 117 e_machine); in perf_user_reg_mask() 124 const char *perf_reg_name(int id, uint16_t e_machine, uint32_ in perf_reg_name() 35 perf_intr_reg_mask(uint16_t e_machine) perf_intr_reg_mask() argument 78 perf_user_reg_mask(uint16_t e_machine) perf_user_reg_mask() argument 121 perf_reg_name(int id,uint16_t e_machine,uint32_t e_flags) perf_reg_name() argument 192 perf_arch_reg_ip(uint16_t e_machine) perf_arch_reg_ip() argument 221 perf_arch_reg_sp(uint16_t e_machine) perf_arch_reg_sp() argument [all...] |
| H A D | perf_regs.h | 15 int perf_sdt_arg_parse_op(uint16_t e_machine, char *old_op, char **new_op); 16 uint64_t perf_intr_reg_mask(uint16_t e_machine); 17 uint64_t perf_user_reg_mask(uint16_t e_machine); 19 const char *perf_reg_name(int id, uint16_t e_machine, uint32_t e_flags); 21 uint64_t perf_arch_reg_ip(uint16_t e_machine); 22 uint64_t perf_arch_reg_sp(uint16_t e_machine); 73 static inline uint64_t DWARF_MINIMAL_REGS(uint16_t e_machine) in DWARF_MINIMAL_REGS() 75 return (1ULL << perf_arch_reg_ip(e_machine)) | (1ULL << perf_arch_reg_sp(e_machine)); in DWARF_MINIMAL_REGS() 72 DWARF_MINIMAL_REGS(uint16_t e_machine) DWARF_MINIMAL_REGS() argument
|
| H A D | kvm-stat.h | 143 int setup_kvm_events_tp(struct perf_kvm_stat *kvm, uint16_t e_machine); 146 int cpu_isa_init(struct perf_kvm_stat *kvm, uint16_t e_machine, const char *cpuid); 154 const char *vcpu_id_str(uint16_t e_machine); 155 const char *kvm_exit_reason(uint16_t e_machine); 156 const char *kvm_entry_trace(uint16_t e_machine); 157 const char *kvm_exit_trace(uint16_t e_machine); 159 const char * const *kvm_events_tp(uint16_t e_machine); 167 const struct kvm_reg_events_ops *kvm_reg_events_ops(uint16_t e_machine); 175 const char * const *kvm_skip_events(uint16_t e_machine); 183 int kvm_add_default_arch_event(uint16_t e_machine, int *argc, const char **argv); [all …]
|
| H A D | sample.c | 61 static int elf_machine_max_instruction_length(uint16_t e_machine) in elf_machine_max_instruction_length() 63 switch (e_machine) { in elf_machine_max_instruction_length() 103 uint16_t e_machine; in perf_sample__fetch_insn() 108 e_machine = thread__e_machine(thread, machine, /*e_flags=*/NULL); in perf_sample__fetch_insn() 109 len = elf_machine_max_instruction_length(e_machine); in perf_sample__fetch_insn() 118 if (e_machine == EM_386 || e_machine == EM_X86_64) { in perf_sample__fetch_insn() 54 elf_machine_max_instruction_length(uint16_t e_machine) elf_machine_max_instruction_length() argument 96 uint16_t e_machine; perf_sample__fetch_insn() local
|
| H A D | thread.c | 456 uint16_t e_machine = EM_NONE; in read_proc_e_machine_for_pid() local 461 e_machine = dso__read_e_machine(/*optional_dso=*/NULL, fd, e_flags); in read_proc_e_machine_for_pid() 464 return e_machine; in read_proc_e_machine_for_pid() 470 uint16_t e_machine; member 481 args->e_machine = dso__e_machine(dso, args->machine, &args->e_flags); in thread__e_machine_callback() 482 return args->e_machine != EM_NONE ? 1 /* stop search */ : 0 /* continue search */; in thread__e_machine_callback() 488 uint16_t e_machine = RC_CHK_ACCESS(thread)->e_machine; in thread__e_machine() local 493 .e_machine = EM_NONE, in thread__e_machine() 496 if (e_machine != EM_NONE) { in thread__e_machine() 499 return e_machine; in thread__e_machine() [all …]
|
| H A D | unwind-libdw.c | 225 perf_arch_reg_sp(ui->e_machine)); in memory_read() 261 uint16_t e_machine = ui->e_machine; in libdw_set_initial_registers() local 263 uint64_t ip_perf_reg = perf_arch_reg_ip(e_machine); in libdw_set_initial_registers() 274 get_dwarf_regnum_for_perf_regnum(perf_reg, e_machine, in libdw_set_initial_registers() 289 get_dwarf_regnum_for_perf_regnum(perf_reg, e_machine, in libdw_set_initial_registers() 351 uint16_t e_machine = thread__e_machine(thread, machine, &e_flags); in unwind__get_entries() local 372 .e_machine = e_machine, in unwind__get_entries() 395 err = perf_reg_value(&ip, data->user_regs, perf_arch_reg_ip(e_machine)); in unwind__get_entries()
|
| H A D | disasm.c | 113 if (val1->e_machine == val2->e_machine) { in e_machine_and_eflags__cmp() 114 if (val1->e_machine != EM_CSKY) in e_machine_and_eflags__cmp() 120 return val1->e_machine < val2->e_machine ? -1 : 1; in e_machine_and_eflags__cmp() 138 const struct arch *arch__find(uint16_t e_machine, uint32_t e_flags, const char *cpuid) in arch__find() argument 160 .e_machine = e_machine, in arch__find() 174 if (e_machine >= ARRAY_SIZE(arch_new_fn) || arch_new_fn[e_machine] == NULL) { in arch__find() 183 result = arch_new_fn[e_machine](&key, cpuid); in arch__find() 186 __func__, result->name, e_machine); in arch__find() 198 return arch->id.e_machine == EM_386 || arch->id.e_machine == EM_X86_64; in arch__is_x86() 203 return arch->id.e_machine == EM_PPC || arch->id.e_machine == EM_PPC64; in arch__is_powerpc()
|
| H A D | thread.h | 71 uint16_t e_machine; in DECLARE_RC_STRUCT() local 316 static inline void thread__set_e_machine(struct thread *thread, uint16_t e_machine) in thread__set_e_machine() argument 318 RC_CHK_ACCESS(thread)->e_machine = e_machine; in thread__set_e_machine()
|
| H A D | dso.c | 1225 uint16_t e_machine = EM_NONE; in dso__read_e_machine() local 1261 _Static_assert(offsetof(Elf32_Ehdr, e_machine) == 18, "Unexpected offset"); in dso__read_e_machine() 1262 _Static_assert(offsetof(Elf64_Ehdr, e_machine) == 18, "Unexpected offset"); in dso__read_e_machine() 1264 if (pread(fd, &e_machine, sizeof(e_machine), 18) != sizeof(e_machine)) in dso__read_e_machine() 1267 e_machine = DSO_SWAP_TYPE__SWAP(swap_type, uint16_t, e_machine); in dso__read_e_machine() 1268 if (e_machine >= EM_NUM) in dso__read_e_machine() 1273 need_e_flags = e_flags && e_machine == EM_CSKY; in dso__read_e_machine() 1288 return e_machine; in dso__read_e_machine() 1293 uint16_t e_machine = EM_NONE; in dso__e_machine() local 1341 e_machine = dso__read_e_machine(dso, fd, e_flags); in dso__e_machine() [all …]
|
| H A D | session.c | 969 static void regs_dump__printf(u64 mask, u64 *regs, uint16_t e_machine, uint32_t e_flags) in regs_dump__printf() 977 perf_reg_name(rid, e_machine, e_flags), val); 996 uint16_t e_machine, uint32_t e_flags) in regs__printf() 1005 regs_dump__printf(mask, regs->regs, e_machine, e_flags); in regs_user__printf() 1008 static void regs_user__printf(struct perf_sample *sample, uint16_t e_machine, uint32_t e_flags) in regs_user__printf() 1018 regs__printf("user", user_regs, e_machine, e_flags); in regs_intr__printf() 1021 static void regs_intr__printf(struct perf_sample *sample, uint16_t e_machine, uint32_t e_flags) in regs_intr__printf() 1031 regs__printf("intr", intr_regs, e_machine, e_flags); in stack_user__printf() 1125 uint16_t e_machine = EM_NONE; in dump_sample() 1136 e_machine in dump_sample() 962 regs_dump__printf(u64 mask,u64 * regs,uint16_t e_machine,uint32_t e_flags) regs_dump__printf() argument 989 regs__printf(const char * type,struct regs_dump * regs,uint16_t e_machine,uint32_t e_flags) regs__printf() argument 1001 regs_user__printf(struct perf_sample * sample,uint16_t e_machine,uint32_t e_flags) regs_user__printf() argument 1014 regs_intr__printf(struct perf_sample * sample,uint16_t e_machine,uint32_t e_flags) regs_intr__printf() argument 1118 uint16_t e_machine = EM_NONE; dump_sample() local 2969 uint16_t e_machine; global() member [all...] |
| H A D | symbol-elf.c | 331 return ehdr->e_machine == EM_X86_64 && ri->is_rela && in addend_may_be_ifunc() 369 switch (ehdr->e_machine) { in get_plt_sizes() 407 static bool machine_is_x86(GElf_Half e_machine) in get_plt_sizes() 409 return e_machine == EM_386 || e_machine == EM_X86_64; in machine_is_x86() argument 578 if (ehdr->e_machine == EM_X86_64) in dso__synthesize_plt_got_symbols() 644 if (machine_is_x86(ehdr.e_machine) && in dso__synthesize_plt_symbols() 649 if (machine_is_x86(ehdr.e_machine) && in dso__synthesize_plt_symbols() 738 if (machine_is_x86(ehdr.e_machine) && sort_rel(&ri)) in dso__synthesize_plt_symbols() 1276 if (ehdr->e_machine in max_text_section() [all...] |
| H A D | disasm.h | 22 uint16_t e_machine; member 111 const struct arch *arch__find(uint16_t e_machine, uint32_t e_flags, const char *cpuid);
|
| /linux/arch/openrisc/include/asm/ |
| H A D | elf.h | 26 (((x)->e_machine == EM_OR32) || ((x)->e_machine == EM_OPENRISC))
|
| /linux/scripts/ |
| H A D | recordmcount.c | 565 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 D | builtin-trace.c | 1465 int e_machine; member 2174 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 …]
|
| H A D | builtin-kvm.c | 619 static bool register_kvm_events_ops(struct perf_kvm_stat *kvm, uint16_t e_machine) in register_kvm_events_ops() argument 623 for (events_ops = kvm_reg_events_ops(e_machine); events_ops->name; events_ops++) { in register_kvm_events_ops() 845 static bool skip_event(uint16_t e_machine, const char *event) in skip_event() argument 849 for (skip_events = kvm_skip_events(e_machine); *skip_events; skip_events++) in skip_event() 905 uint16_t e_machine = perf_session__e_machine(kvm->session, /*e_flags=*/NULL); in handle_end_event() local 908 if (!skip_event(e_machine, decode)) { in handle_end_event() 927 uint16_t e_machine = thread__e_machine(thread, machine, /*e_flags=*/NULL); in per_vcpu_record() local 935 vcpu_record->vcpu_id = evsel__intval(evsel, sample, vcpu_id_str(e_machine)); in per_vcpu_record() 1170 uint16_t e_machine; in cpu_isa_config() local 1190 e_machine = perf_session__e_machine(kvm->session, /*e_flags=*/NULL); in cpu_isa_config() [all …]
|
| /linux/arch/csky/include/asm/ |
| H A D | elf.h | 46 #define elf_check_arch(x) (((x)->e_machine == ELF_ARCH) || \ 47 ((x)->e_machine == EM_CSKY_OLD))
|
| /linux/arch/x86/um/asm/ |
| H A D | elf.h | 32 (((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 D | elf.h | 28 #define elf_check_arch(x) ((x)->e_machine == EM_MICROBLAZE \ 29 || (x)->e_machine == EM_MICROBLAZE_OLD)
|
| /linux/arch/powerpc/boot/ |
| H A D | elf_util.c | 32 elf64->e_machine == EM_PPC64)) in parse_elf64() 64 elf32->e_machine == EM_PPC)) in parse_elf32()
|
| H A D | elf.h | 58 Elf32_Half e_machine; member 75 Elf64_Half e_machine; member
|
| /linux/arch/xtensa/include/asm/ |
| H A D | elf.h | 93 #define elf_check_arch(x) ( ( (x)->e_machine == EM_XTENSA ) || \ 94 ( (x)->e_machine == EM_XTENSA_OLD ) )
|
| /linux/arch/powerpc/include/asm/ |
| H A D | elf.h | 16 #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 D | vdsomunge.c | 164 if (read_elf_half(inhdr->e_machine, swap) != EM_ARM) in main() 165 fail("Unsupported architecture %#x\n", inhdr->e_machine); in main()
|