/linux/arch/x86/kernel/ |
H A D | perf_regs.c | 137 struct pt_regs *user_regs = task_pt_regs(current); in perf_get_regs_user() local 140 regs_user->regs = user_regs; in perf_get_regs_user() 151 if (regs->sp > (unsigned long)&user_regs->r11 && in perf_get_regs_user() 152 regs->sp <= (unsigned long)(user_regs + 1)) { in perf_get_regs_user() 162 regs_user_copy->ip = user_regs->ip; in perf_get_regs_user() 163 regs_user_copy->ax = user_regs->ax; in perf_get_regs_user() 164 regs_user_copy->cx = user_regs->cx; in perf_get_regs_user() 165 regs_user_copy->dx = user_regs->dx; in perf_get_regs_user() 166 regs_user_copy->si = user_regs->si; in perf_get_regs_user() 167 regs_user_copy->di = user_regs->di; in perf_get_regs_user() [all …]
|
/linux/tools/perf/util/ |
H A D | arm64-frame-pointer-unwind-support.c | 19 return callchain_param.record_mode == CALLCHAIN_FP && sample->user_regs.regs in get_leaf_frame_caller_enabled() 20 && sample->user_regs.mask & SMPL_REG_MASK(PERF_REG_ARM64_LR); in get_leaf_frame_caller_enabled() 35 struct regs_dump old_regs = sample->user_regs; in get_leaf_frame_caller_aarch64() 46 if (!(sample->user_regs.mask & SMPL_REG_MASK(PERF_REG_ARM64_PC))) { in get_leaf_frame_caller_aarch64() 47 sample->user_regs.cache_mask |= SMPL_REG_MASK(PERF_REG_ARM64_PC); in get_leaf_frame_caller_aarch64() 48 sample->user_regs.cache_regs[PERF_REG_ARM64_PC] = sample->callchain->ips[usr_idx+1]; in get_leaf_frame_caller_aarch64() 51 if (!(sample->user_regs.mask & SMPL_REG_MASK(PERF_REG_ARM64_SP))) { in get_leaf_frame_caller_aarch64() 52 sample->user_regs.cache_mask |= SMPL_REG_MASK(PERF_REG_ARM64_SP); in get_leaf_frame_caller_aarch64() 53 sample->user_regs.cache_regs[PERF_REG_ARM64_SP] = 0; in get_leaf_frame_caller_aarch64() 57 sample->user_regs = old_regs; in get_leaf_frame_caller_aarch64()
|
H A D | unwind-libunwind-local.c | 582 if (__write || !stack || !ui->sample->user_regs.regs) { in access_mem() 587 ret = perf_reg_value(&start, &ui->sample->user_regs, in access_mem() 631 if (!ui->sample->user_regs.regs) { in access_reg() 640 ret = perf_reg_value(&val, &ui->sample->user_regs, id); in access_reg() 744 ret = perf_reg_value(&val, &ui->sample->user_regs, in get_entries() 811 if (!data->user_regs.regs) in _unwind__get_entries()
|
H A D | unwind-libdw.c | 193 ret = perf_reg_value(&start, &ui->sample->user_regs, in memory_read() 276 if (!data->user_regs.regs) in unwind__get_entries() 289 err = perf_reg_value(&ip, &data->user_regs, perf_arch_reg_ip(arch)); in unwind__get_entries()
|
/linux/tools/perf/arch/x86/util/ |
H A D | unwind-libdw.c | 11 struct regs_dump *user_regs = &ui->sample->user_regs; in libdw__arch_set_initial_registers() local 17 perf_reg_value(&val, user_regs, PERF_REG_X86_##r); \ in libdw__arch_set_initial_registers() 21 if (user_regs->abi == PERF_SAMPLE_REGS_ABI_32) { in libdw__arch_set_initial_registers()
|
/linux/tools/perf/tests/ |
H A D | sample-parsing.c | 129 size_t sz = hweight_long(s1->user_regs.mask) * sizeof(u64); in samples_same() 131 COMP(user_regs.mask); in samples_same() 132 COMP(user_regs.abi); in samples_same() 133 if (s1->user_regs.abi && in samples_same() 134 (!s1->user_regs.regs || !s2->user_regs.regs || in samples_same() 135 memcmp(s1->user_regs.regs, s2->user_regs.regs, sz))) { in samples_same() 244 .user_regs = { in do_test()
|
/linux/tools/perf/arch/powerpc/util/ |
H A D | unwind-libdw.c | 19 struct regs_dump *user_regs = &ui->sample->user_regs; in libdw__arch_set_initial_registers() local 25 perf_reg_value(&val, user_regs, PERF_REG_POWERPC_##r); \ in libdw__arch_set_initial_registers() 68 perf_reg_value(&val, user_regs, special_regs[i][1]); in libdw__arch_set_initial_registers()
|
/linux/tools/perf/arch/arm/util/ |
H A D | unwind-libdw.c | 11 struct regs_dump *user_regs = &ui->sample->user_regs; in libdw__arch_set_initial_registers() local 16 perf_reg_value(&val, user_regs, PERF_REG_ARM_##r); \ in libdw__arch_set_initial_registers()
|
/linux/arch/x86/xen/ |
H A D | smp_pv.c | 247 ctxt->user_regs.eip = (unsigned long)asm_cpu_bringup_and_idle; in cpu_initialize_context() 249 ctxt->user_regs.eflags = 0x1000; /* IOPL_RING1 */ in cpu_initialize_context() 250 ctxt->user_regs.ds = __USER_DS; in cpu_initialize_context() 251 ctxt->user_regs.es = __USER_DS; in cpu_initialize_context() 252 ctxt->user_regs.ss = __KERNEL_DS; in cpu_initialize_context() 253 ctxt->user_regs.cs = __KERNEL_CS; in cpu_initialize_context() 254 ctxt->user_regs.esp = (unsigned long)task_pt_regs(idle); in cpu_initialize_context()
|
/linux/tools/perf/arch/loongarch/util/ |
H A D | unwind-libdw.c | 13 struct regs_dump *user_regs = &ui->sample->user_regs; in libdw__arch_set_initial_registers() local 18 perf_reg_value(&val, user_regs, PERF_REG_LOONGARCH_##r); \ in libdw__arch_set_initial_registers()
|
/linux/tools/perf/arch/riscv/util/ |
H A D | unwind-libdw.c | 13 struct regs_dump *user_regs = &ui->sample->user_regs; in libdw__arch_set_initial_registers() local 18 perf_reg_value(&val, user_regs, PERF_REG_RISCV_##r); \ in libdw__arch_set_initial_registers()
|
/linux/tools/perf/arch/s390/util/ |
H A D | unwind-libdw.c | 14 struct regs_dump *user_regs = &ui->sample->user_regs; in libdw__arch_set_initial_registers() local 19 perf_reg_value(&val, user_regs, PERF_REG_S390_##r); \ in libdw__arch_set_initial_registers()
|
/linux/tools/perf/arch/arm64/util/ |
H A D | unwind-libdw.c | 11 struct regs_dump *user_regs = &ui->sample->user_regs; in libdw__arch_set_initial_registers() local 16 perf_reg_value(&val, user_regs, PERF_REG_ARM64_##r); \ in libdw__arch_set_initial_registers()
|
/linux/tools/perf/arch/csky/util/ |
H A D | unwind-libdw.c | 13 struct regs_dump *user_regs = &ui->sample->user_regs; in libdw__arch_set_initial_registers() local 18 perf_reg_value(&val, user_regs, PERF_REG_CSKY_##r); \ in libdw__arch_set_initial_registers()
|
/linux/arch/openrisc/include/asm/ |
H A D | processor.h | 58 #define user_regs(thread_info) (((struct pt_regs *)((unsigned long)(thread_info) + THREAD_SIZE - S… macro 64 #define task_pt_regs(task) user_regs(task_thread_info(task))
|
/linux/arch/powerpc/include/asm/ |
H A D | perf_event.h | 28 #define perf_arch_bpf_user_pt_regs(regs) ®s->user_regs
|
/linux/arch/arm64/include/asm/ |
H A D | perf_event.h | 17 #define perf_arch_bpf_user_pt_regs(regs) ®s->user_regs
|
/linux/arch/sh/include/asm/ |
H A D | suspend.h | 11 struct pt_regs user_regs; member
|
/linux/arch/arm64/kernel/ |
H A D | armv8_deprecated.c | 190 address = (u32)regs->user_regs.regs[rn]; in swp_handler() 191 data = (u32)regs->user_regs.regs[rt2]; in swp_handler() 210 regs->user_regs.regs[destreg] = data; in swp_handler()
|
H A D | debug-monitors.c | 156 #define set_regs_spsr_ss(r) set_user_regs_spsr_ss(&(r)->user_regs) 157 #define clear_regs_spsr_ss(r) clear_user_regs_spsr_ss(&(r)->user_regs)
|
/linux/tools/perf/arch/arm64/tests/ |
H A D | dwarf-unwind.c | 48 struct regs_dump *regs = &sample->user_regs; in test__arch_unwind_sample()
|
/linux/tools/perf/arch/arm/tests/ |
H A D | dwarf-unwind.c | 48 struct regs_dump *regs = &sample->user_regs; in test__arch_unwind_sample()
|
/linux/tools/perf/arch/powerpc/tests/ |
H A D | dwarf-unwind.c | 48 struct regs_dump *regs = &sample->user_regs; in test__arch_unwind_sample()
|
/linux/arch/s390/include/asm/ |
H A D | perf_event.h | 43 #define perf_arch_bpf_user_pt_regs(regs) ®s->user_regs
|
/linux/tools/perf/arch/x86/tests/ |
H A D | dwarf-unwind.c | 56 struct regs_dump *regs = &sample->user_regs; in test__arch_unwind_sample()
|