| /linux/tools/perf/util/ |
| H A D | kvm-stat.c | 11 uint16_t e_machine = evsel__e_machine(evsel, /*e_flags=*/NULL); in kvm_exit_event() 13 return evsel__name_is(evsel, kvm_exit_trace(e_machine)); 19 uint16_t e_machine = evsel__e_machine(sample->evsel, /*e_flags=*/NULL); in exit_event_get_key() 22 key->key = perf_sample__intval(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() 74 int setup_kvm_events_tp(struct perf_kvm_stat *kvm, uint16_t e_machine) 76 switch (e_machine) { in setup_kvm_events_tp() 85 int cpu_isa_init(struct perf_kvm_stat *kvm, uint16_t e_machine, const char *cpuid) 87 switch (e_machine) { in cpu_isa_init() 9 uint16_t e_machine = evsel__e_machine(evsel, /*e_flags=*/NULL); kvm_exit_event() local 18 uint16_t e_machine = evsel__e_machine(evsel, /*e_flags=*/NULL); exit_event_get_key() local 75 setup_kvm_events_tp(struct perf_kvm_stat * kvm,uint16_t e_machine) setup_kvm_events_tp() argument 86 cpu_isa_init(struct perf_kvm_stat * kvm,uint16_t e_machine,const char * cpuid) cpu_isa_init() argument 109 vcpu_id_str(uint16_t e_machine) vcpu_id_str() argument 128 kvm_exit_reason(uint16_t e_machine) kvm_exit_reason() argument 151 kvm_entry_trace(uint16_t e_machine) kvm_entry_trace() argument 172 kvm_exit_trace(uint16_t e_machine) kvm_exit_trace() argument 192 kvm_events_tp(uint16_t e_machine) kvm_events_tp() argument 215 kvm_reg_events_ops(uint16_t e_machine) kvm_reg_events_ops() argument 238 kvm_skip_events(uint16_t e_machine) kvm_skip_events() argument 261 kvm_add_default_arch_event(uint16_t e_machine,int * argc,const char ** argv) kvm_add_default_arch_event() argument [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() 34 e_machine); 41 uint64_t perf_intr_reg_mask(uint16_t e_machine) in perf_intr_reg_mask() 45 switch (e_machine) { in perf_intr_reg_mask() 77 e_machine); 84 uint64_t perf_user_reg_mask(uint16_t e_machine) in perf_user_reg_mask() 88 switch (e_machine) { in perf_user_reg_mask() 120 e_machine); 127 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); 74 static inline uint64_t DWARF_MINIMAL_REGS(uint16_t e_machine) in DWARF_MINIMAL_REGS() 76 return (1ULL << perf_arch_reg_ip(e_machine)) | (1ULL << perf_arch_reg_sp(e_machine)); 72 DWARF_MINIMAL_REGS(uint16_t e_machine) DWARF_MINIMAL_REGS() argument
|
| H A D | kvm-stat.h | 137 int setup_kvm_events_tp(struct perf_kvm_stat *kvm, uint16_t e_machine); 140 int cpu_isa_init(struct perf_kvm_stat *kvm, uint16_t e_machine, const char *cpuid); 148 const char *vcpu_id_str(uint16_t e_machine); 149 const char *kvm_exit_reason(uint16_t e_machine); 150 const char *kvm_entry_trace(uint16_t e_machine); 151 const char *kvm_exit_trace(uint16_t e_machine); 153 const char * const *kvm_events_tp(uint16_t e_machine); 161 const struct kvm_reg_events_ops *kvm_reg_events_ops(uint16_t e_machine); 169 const char * const *kvm_skip_events(uint16_t e_machine); 177 bool kvm_need_default_arch_event(uint16_t e_machine, in [all...] |
| H A D | sample.c | 68 static int elf_machine_max_instruction_length(uint16_t e_machine) in elf_machine_max_instruction_length() 70 switch (e_machine) { in elf_machine_max_instruction_length() 110 uint16_t e_machine; in perf_sample__fetch_insn() 115 e_machine = thread__e_machine(thread, machine, /*e_flags=*/NULL); in perf_sample__fetch_insn() 116 len = elf_machine_max_instruction_length(e_machine); in perf_sample__fetch_insn() 125 if (e_machine == EM_386 || e_machine == EM_X86_64) { 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 | 367 uint16_t e_machine; in thread__insert_map() 373 e_machine = thread__e_machine(thread, /*machine=*/NULL, /*e_flags=*/NULL); 374 return unwind__prepare_access(thread__maps(thread), e_machine); in thread__prepare_access_maps_cb() 379 uint16_t e_machine = thread__e_machine(thread, /*machine=*/NULL, /*e_flags=*/NULL); in thread__prepare_access_maps_cb() 381 return unwind__prepare_access(thread__maps(thread), e_machine); in thread__prepare_access_maps_cb() 442 uint16_t e_machine = EM_NONE; in thread__find_cpumode_addr_location() 447 e_machine = dso__read_e_machine_endian(/*optional_dso=*/NULL, fd, e_flags, in thread__find_cpumode_addr_location() 451 return e_machine; 457 uint16_t e_machine; in read_proc_e_machine_for_pid() 469 args->e_machine 456 uint16_t e_machine = EM_NONE; read_proc_e_machine_for_pid() local 470 uint16_t e_machine; global() member 488 uint16_t e_machine = RC_CHK_ACCESS(thread)->e_machine; thread__e_machine() local [all...] |
| H A D | unwind-libdw.c | 242 perf_arch_reg_sp(ui->e_machine)); in memory_read() 278 uint16_t e_machine = ui->e_machine; in libdw_set_initial_registers() 280 uint64_t ip_perf_reg = perf_arch_reg_ip(e_machine); in libdw_set_initial_registers() 291 get_dwarf_regnum_for_perf_regnum(perf_reg, e_machine, in libdw_set_initial_registers() 306 get_dwarf_regnum_for_perf_regnum(perf_reg, e_machine, 369 uint16_t e_machine = thread__e_machine(thread, machine, &e_flags); in unwind__get_entries() 390 .e_machine = e_machine, in unwind__get_entries() 413 err = perf_reg_value(&ip, data->user_regs, perf_arch_reg_ip(e_machine)); in unwind__get_entries() 261 uint16_t e_machine = ui->e_machine; libdw_set_initial_registers() local 351 uint16_t e_machine = thread__e_machine(thread, machine, &e_flags); unwind__get_entries() local [all...] |
| H A D | thread.h | 64 * @e_flags: The ELF EF_* associated with the thread. Valid if e_machine != EM_NONE. in DECLARE_RC_STRUCT() 68 * @e_machine: The ELF EM_* associated with the thread. EM_NONE if not in DECLARE_RC_STRUCT() 71 uint16_t e_machine; in DECLARE_RC_STRUCT() local 74 * Valid if e_machine != EM_NONE. in DECLARE_RC_STRUCT() 327 static inline void thread__set_e_machine(struct thread *thread, uint16_t e_machine) in thread__set_e_flags() 329 RC_CHK_ACCESS(thread)->e_machine = e_machine; in thread__set_e_flags() 316 thread__set_e_machine(struct thread * thread,uint16_t e_machine) thread__set_e_machine() argument
|
| 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] in arch__find() [all...] |
| H A D | dso.c | 1277 /* Reads e_machine from fd, optionally caching data in dso. */ in dso__read_e_machine() 1281 uint16_t e_machine = EM_NONE; in dso__read_e_machine() 1320 _Static_assert(offsetof(Elf32_Ehdr, e_machine) == 18, "Unexpected offset"); in dso__e_machine() 1321 _Static_assert(offsetof(Elf64_Ehdr, e_machine) == 18, "Unexpected offset"); in dso__e_machine() 1323 if (pread(fd, &e_machine, sizeof(e_machine), 18) != sizeof(e_machine)) in dso__e_machine() 1324 return EM_NONE; // e_machine read failed. in dso__e_machine() 1326 e_machine = DSO_SWAP_TYPE__SWAP(swap_type, uint16_t, e_machine); in dso__e_machine() 1225 uint16_t e_machine = EM_NONE; dso__read_e_machine() local 1293 uint16_t e_machine = EM_NONE; dso__e_machine() local [all...] |
| H A D | session.c | 1419 static void regs_dump__printf(u64 mask, u64 *regs, uint16_t e_machine, uint32_t e_flags) in session__flush_deferred_samples() 1427 perf_reg_name(rid, e_machine, e_flags), val); in session__flush_deferred_samples() 1446 uint16_t e_machine, uint32_t e_flags) in machines__deliver_event() 1455 regs_dump__printf(mask, regs->regs, e_machine, e_flags); in machines__deliver_event() 1458 static void regs_user__printf(struct perf_sample *sample, uint16_t e_machine, uint32_t e_flags) in machines__deliver_event() 1468 regs__printf("user", user_regs, e_machine, e_flags); in machines__deliver_event() 1471 static void regs_intr__printf(struct perf_sample *sample, uint16_t e_machine, uint32_t e_flags) in machines__deliver_event() 1481 regs__printf("intr", intr_regs, e_machine, e_flags); in machines__deliver_event() 1576 uint16_t e_machine = EM_NONE; in perf_session__deliver_event() 1587 e_machine in perf_session__process_user_event() 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 | unwind-libdw.h | 24 uint16_t e_machine; member
|
| /linux/arch/x86/include/asm/ |
| H A D | elf.h | 85 (((x)->e_machine == EM_386) || ((x)->e_machine == EM_486)) 146 ((x)->e_machine == EM_X86_64) 150 (IS_ENABLED(CONFIG_X86_X32_ABI) && (x)->e_machine == EM_X86_64)) 173 compat_start_thread(regs, new_ip, new_sp, ex->e_machine == EM_X86_64) 177 set_personality_ia32((ex).e_machine == EM_X86_64) 349 if (exec->e_machine == EM_X86_64) \ 373 (ex->e_machine == EM_X86_64))
|
| /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/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/tools/perf/ |
| H A D | builtin-trace.c | 182 * syscall_stats. If there is >1 e_machine, such as i386 and x86-64 184 * the non EM_HOST system calls. A fix would be to add the e_machine 1458 /** @e_machine: The ELF machine associated with the entry. */ in syscall_fmt__find_by_alias() 1459 int e_machine; 2237 name = syscalltbl__name(sc->e_machine, sc->id); in syscall__read_info() 2567 static struct syscall *syscall__new(int e_machine, int id) in trace__find_syscall() 2574 sc->e_machine = e_machine; in trace__find_syscall() 2592 if (a->e_machine != b->e_machine) in trace__syscall_info() 1465 int e_machine; global() member 2504 syscall__new(int e_machine,int id) syscall__new() argument 2546 trace__find_syscall(struct trace * trace,int e_machine,int id) trace__find_syscall() argument 2587 trace__syscall_info(struct trace * trace,struct evsel * evsel,int e_machine,int id) trace__syscall_info() argument 2786 int augmented_args_size = 0, e_machine; trace__sys_enter() local 2866 int augmented_args_size, e_machine; trace__fprintf_sys_enter() local 2932 int alignment = trace->args_alignment, e_machine; trace__sys_exit() local 3288 int e_machine = thread trace__event_handler() local 3783 trace__init_syscall_bpf_progs(struct trace * trace,int e_machine,int id) trace__init_syscall_bpf_progs() argument 3794 trace__bpf_prog_sys_enter_fd(struct trace * trace,int e_machine,int id) trace__bpf_prog_sys_enter_fd() argument 3800 trace__bpf_prog_sys_exit_fd(struct trace * trace,int e_machine,int id) trace__bpf_prog_sys_exit_fd() argument 3806 trace__bpf_sys_enter_beauty_map(struct trace * trace,int e_machine,int key,unsigned int * beauty_array) trace__bpf_sys_enter_beauty_map() argument 3993 trace__init_syscalls_bpf_prog_array_maps(struct trace * trace,int e_machine) trace__init_syscalls_bpf_prog_array_maps() argument 4844 syscall__dump_stats(struct trace * trace,int e_machine,FILE * fp,struct hashmap * syscall_stats) syscall__dump_stats() argument 4907 thread__dump_stats(struct thread_trace * ttrace,struct trace * trace,int e_machine,FILE * fp) thread__dump_stats() argument 4912 system__dump_stats(struct trace * trace,int e_machine,FILE * fp) system__dump_stats() argument 4921 int e_machine = thread__e_machine(thread, trace->host, /*e_flags=*/NULL); trace__fprintf_thread() local [all...] |
| H A D | builtin-kvm.c | 621 static bool register_kvm_events_ops(struct perf_kvm_stat *kvm, uint16_t e_machine) in register_kvm_events_ops() 625 for (events_ops = kvm_reg_events_ops(e_machine); events_ops->name; events_ops++) { in register_kvm_events_ops() 846 static bool skip_event(uint16_t e_machine, const char *event) in skip_event() 850 for (skip_events = kvm_skip_events(e_machine); *skip_events; skip_events++) in skip_event() 906 uint16_t e_machine = perf_session__e_machine(kvm->session, /*e_flags=*/NULL); in handle_end_event() 909 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 = perf_sample__intval(sample, vcpu_id_str(e_machine)); in per_vcpu_record() 1173 uint16_t e_machine; in cpu_isa_config() 1193 e_machine in cpu_isa_config() 619 register_kvm_events_ops(struct perf_kvm_stat * kvm,uint16_t e_machine) register_kvm_events_ops() argument 845 skip_event(uint16_t e_machine,const char * event) skip_event() argument 905 uint16_t e_machine = perf_session__e_machine(kvm->session, /*e_flags=*/NULL); handle_end_event() local 1170 uint16_t e_machine; cpu_isa_config() local 1552 uint16_t e_machine; read_events() local 1665 uint16_t e_machine = EM_HOST; kvm_events_record() local [all...] |
| /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()
|