| /arch/powerpc/kernel/ptrace/ |
| A D | ptrace-adv.c | 224 regs_set_return_msr(child->thread.regs, child->thread.regs->msr | MSR_DE); in set_instruction_bp() 241 child->thread.debug.iac1 = 0; in del_instruction_bp() 251 child->thread.debug.iac2 = 0; in del_instruction_bp() 264 child->thread.debug.iac3 = 0; in del_instruction_bp() 274 child->thread.debug.iac4 = 0; in del_instruction_bp() 308 child->thread.debug.dvc1 = in set_dac() 310 child->thread.debug.dbcr2 |= in set_dac() 329 child->thread.debug.dvc2 = in set_dac() 331 child->thread.debug.dbcr2 |= in set_dac() 340 regs_set_return_msr(child->thread.regs, child->thread.regs->msr | MSR_DE); in set_dac() [all …]
|
| A D | ptrace32.c | 87 ret = ptrace_get_reg(child, index, &tmp); in compat_arch_ptrace() 91 flush_fp_to_thread(child); in compat_arch_ptrace() 136 flush_fp_to_thread(child); in compat_arch_ptrace() 141 ret = ptrace_get_reg(child, numReg, &tmp2); in compat_arch_ptrace() 189 ret = ptrace_put_reg(child, index, data); in compat_arch_ptrace() 191 flush_fp_to_thread(child); in compat_arch_ptrace() 228 ret = ptrace_get_reg(child, numReg, &freg); in compat_arch_ptrace() 235 ret = ptrace_put_reg(child, numReg, freg); in compat_arch_ptrace() 238 flush_fp_to_thread(child); in compat_arch_ptrace() 269 child, task_user_regset_view(current), 0, in compat_arch_ptrace() [all …]
|
| A D | ptrace-fpu.c | 9 int ptrace_get_fpr(struct task_struct *child, int index, unsigned long *data) in ptrace_get_fpr() argument 19 flush_fp_to_thread(child); in ptrace_get_fpr() 23 *data = ((u32 *)child->thread.fp_state.fpr)[fpidx]; in ptrace_get_fpr() 25 memcpy(data, &child->thread.TS_FPR(fpidx), sizeof(long)); in ptrace_get_fpr() 27 *data = child->thread.fp_state.fpscr; in ptrace_get_fpr() 35 int ptrace_put_fpr(struct task_struct *child, int index, unsigned long data) in ptrace_put_fpr() argument 45 flush_fp_to_thread(child); in ptrace_put_fpr() 49 ((u32 *)child->thread.fp_state.fpr)[fpidx] = data; in ptrace_put_fpr() 51 memcpy(&child->thread.TS_FPR(fpidx), &data, sizeof(long)); in ptrace_put_fpr() 53 child->thread.fp_state.fpscr = data; in ptrace_put_fpr()
|
| A D | ptrace.c | 34 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument 37 user_disable_single_step(child); in ptrace_disable() 59 ret = ptrace_get_reg(child, (int) index, &tmp); in arch_ptrace() 61 ret = ptrace_get_fpr(child, index, &tmp); in arch_ptrace() 80 ret = ptrace_put_reg(child, index, data); in arch_ptrace() 82 ret = ptrace_put_fpr(child, index, data); in arch_ptrace() 103 return ppc_set_hwdebug(child, &bp_info); in arch_ptrace() 107 ret = ppc_del_hwdebug(child, data); in arch_ptrace() 112 ret = ptrace_get_debugreg(child, addr, datalp); in arch_ptrace() 116 ret = ptrace_set_debugreg(child, addr, data); in arch_ptrace() [all …]
|
| A D | ptrace-noadv.c | 60 int ptrace_get_debugreg(struct task_struct *child, unsigned long addr, in ptrace_get_debugreg() argument 69 (child->thread.hw_brk[0].type & HW_BRK_TYPE_DABR)); in ptrace_get_debugreg() 198 struct thread_struct *thread = &child->thread; in ppc_set_hwdebug() 256 i = find_empty_hw_brk(&child->thread); in ppc_set_hwdebug() 263 child->thread.hw_brk[i] = brk; in ppc_set_hwdebug() 268 long ppc_del_hwdebug(struct task_struct *child, long data) in ppc_del_hwdebug() argument 272 struct thread_struct *thread = &child->thread; in ppc_del_hwdebug() 289 child->thread.hw_brk[data - 1].address == 0) in ppc_del_hwdebug() 292 child->thread.hw_brk[data - 1].address = 0; in ppc_del_hwdebug() 293 child->thread.hw_brk[data - 1].type = 0; in ppc_del_hwdebug() [all …]
|
| /arch/x86/kernel/ |
| A D | step.c | 38 mutex_lock(&child->mm->context.lock); in convert_ip_to_linear() 39 if (unlikely(!child->mm->context.ldt || in convert_ip_to_linear() 51 mutex_unlock(&child->mm->context.lock); in convert_ip_to_linear() 115 struct pt_regs *regs = task_pt_regs(child); in enable_single_step() 157 if (is_setting_trap_flag(child, regs)) { in enable_single_step() 213 if (enable_single_step(child) && block) in enable_step() 214 set_task_blockstep(child, true); in enable_step() 216 set_task_blockstep(child, false); in enable_step() 221 enable_step(child, 0); in user_enable_single_step() 226 enable_step(child, 1); in user_enable_block_step() [all …]
|
| A D | ptrace.c | 387 return set_flags(child, value); in putreg() 720 user_disable_single_step(child); in ptrace_disable() 755 tmp = getreg(child, addr); in arch_ptrace() 771 ret = putreg(child, addr, data); in arch_ptrace() 892 ret = set_segment_reg(child, in putreg32() 896 child->thread.fsbase = in putreg32() 901 ret = set_segment_reg(child, in putreg32() 905 child->thread.gsbase = in putreg32() 938 return set_flags(child, value); in putreg32() 996 *val = get_flags(child); in getreg32() [all …]
|
| /arch/mips/kernel/ |
| A D | ptrace32.c | 86 regs = task_pt_regs(child); in compat_arch_ptrace() 97 if (!tsk_used_math(child)) { in compat_arch_ptrace() 102 fregs = get_fpu_regs(child); in compat_arch_ptrace() 117 tmp = child->thread.fpu.fcr31; in compat_arch_ptrace() 147 dregs = __get_dsp_regs(child); in compat_arch_ptrace() 197 regs = task_pt_regs(child); in compat_arch_ptrace() 213 if (!tsk_used_math(child)) { in compat_arch_ptrace() 217 child->thread.fpu.fcr31 = 0; in compat_arch_ptrace() 253 dregs = __get_dsp_regs(child); in compat_arch_ptrace() 273 ret = ptrace_getregs(child, in compat_arch_ptrace() [all …]
|
| A D | ptrace.c | 82 regs = task_pt_regs(child); in ptrace_getregs() 109 regs = task_pt_regs(child); in ptrace_setregs() 366 if (tsk_used_math(child)) { in ptrace_getfpregs() 392 init_fp_ctx(child); in ptrace_setfpregs() 393 fregs = get_fpu_regs(child); in ptrace_setfpregs() 401 ptrace_setfcr31(child, value); in ptrace_setfpregs() 1104 regs = task_pt_regs(child); in arch_ptrace() 1115 if (!tsk_used_math(child)) { in arch_ptrace() 1203 regs = task_pt_regs(child); in arch_ptrace() 1219 init_fp_ctx(child); in arch_ptrace() [all …]
|
| /arch/m68k/kernel/ |
| A D | ptrace.c | 132 put_reg(child, PT_SR, tmp); in singlestep_disable() 141 singlestep_disable(child); in ptrace_disable() 147 put_reg(child, PT_SR, tmp | T1_BIT); in user_enable_single_step() 161 singlestep_disable(child); in user_disable_single_step() 179 tmp = get_reg(child, regno); in arch_ptrace() 190 tmp = child->mm->start_code; in arch_ptrace() 192 tmp = child->mm->start_data; in arch_ptrace() 194 tmp = child->mm->end_code; in arch_ptrace() 211 if (put_reg(child, regno, data)) in arch_ptrace() 229 tmp = get_reg(child, i); in arch_ptrace() [all …]
|
| /arch/um/kernel/ |
| A D | ptrace.c | 17 set_tsk_thread_flag(child, TIF_SINGLESTEP); in user_enable_single_step() 20 SUBARCH_SET_SINGLESTEPPING(child, 1); in user_enable_single_step() 26 clear_tsk_thread_flag(child, TIF_SINGLESTEP); in user_disable_single_step() 29 SUBARCH_SET_SINGLESTEPPING(child, 0); in user_disable_single_step() 36 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument 38 user_disable_single_step(child); in ptrace_disable() 51 ret = peek_user(child, addr, data); in arch_ptrace() 56 ret = poke_user(child, addr, data); in arch_ptrace() 71 __put_user(getreg(child, i), p); in arch_ptrace() 87 putreg(child, i, tmp); in arch_ptrace() [all …]
|
| /arch/x86/um/ |
| A D | ptrace_32.c | 67 UPT_SYSCALL_NR(&child->thread.regs.regs) = value; in putreg() 91 child->thread.regs.regs.gp[HOST_EFLAGS] |= value; in putreg() 96 child->thread.regs.regs.gp[reg_offsets[regno]] = value; in putreg() 106 return putreg(child, addr, data); in poke_user() 113 child->thread.arch.debugregs[addr] = data; in poke_user() 161 tmp = getreg(child, addr); in peek_user() 167 tmp = child->thread.arch.debugregs[addr]; in peek_user() 179 return copy_regset_to_user(child, task_user_regset_view(child), in subarch_ptrace() 184 return copy_regset_from_user(child, task_user_regset_view(child), in subarch_ptrace() 189 return copy_regset_to_user(child, task_user_regset_view(child), in subarch_ptrace() [all …]
|
| A D | ptrace_64.c | 79 UPT_SYSCALL_NR(&child->thread.regs.regs) = value; in putreg() 101 child->thread.regs.regs.gp[HOST_EFLAGS] |= value; in putreg() 108 child->thread.regs.regs.gp[reg_offsets[regno >> 3]] = value; in putreg() 118 return putreg(child, addr, data); in poke_user() 125 child->thread.arch.debugregs[addr] = data; in poke_user() 131 unsigned long getreg(struct task_struct *child, int regno) in getreg() argument 182 tmp = getreg(child, addr); in peek_user() 187 tmp = child->thread.arch.debugregs[addr]; in peek_user() 200 return copy_regset_to_user(child, task_user_regset_view(child), in subarch_ptrace() 205 return copy_regset_from_user(child, task_user_regset_view(child), in subarch_ptrace() [all …]
|
| /arch/alpha/kernel/ |
| A D | ptrace.c | 179 ptrace_set_bpt(struct task_struct * child) in ptrace_set_bpt() argument 185 pc = get_reg(child, REG_PC); in ptrace_set_bpt() 208 task_thread_info(child)->bpt_addr[nsaved++] = get_reg(child, reg_b); in ptrace_set_bpt() 217 res = read_int(child, task_thread_info(child)->bpt_addr[i], in ptrace_set_bpt() 224 res = write_int(child, task_thread_info(child)->bpt_addr[i], in ptrace_set_bpt() 242 task_thread_info(child)->bpt_nsaved = 0; in ptrace_cancel_bpt() 250 write_int(child, task_thread_info(child)->bpt_addr[i], in ptrace_cancel_bpt() 264 ptrace_cancel_bpt(child); in user_disable_single_step() 274 user_disable_single_step(child); in ptrace_disable() 301 ret = get_reg(child, addr); in arch_ptrace() [all …]
|
| /arch/sh/kernel/ |
| A D | ptrace_32.c | 116 set_single_step(child, pc); in user_enable_single_step() 131 user_disable_single_step(child); in ptrace_disable() 355 tmp = get_stack_long(child, addr); in arch_ptrace() 358 if (!tsk_used_math(child)) { in arch_ptrace() 365 ret = init_fpu(child); in arch_ptrace() 373 tmp = !!tsk_used_math(child); in arch_ptrace() 375 tmp = child->mm->start_code; in arch_ptrace() 377 tmp = child->mm->start_data; in arch_ptrace() 379 tmp = child->mm->end_code; in arch_ptrace() 381 tmp = child->mm->end_code - child->mm->start_code; in arch_ptrace() [all …]
|
| /arch/xtensa/kernel/ |
| A D | ptrace.c | 274 regs = task_pt_regs(child); in ptrace_peekusr() 338 regs = task_pt_regs(child); in ptrace_pokeusr() 427 bp = child->thread.ptrace_wp[idx]; in ptrace_gethbpregs() 429 bp = child->thread.ptrace_bp[idx]; in ptrace_gethbpregs() 466 bp = child->thread.ptrace_wp[idx]; in ptrace_sethbpregs() 472 bp = child->thread.ptrace_bp[idx]; in ptrace_sethbpregs() 477 bp = ptrace_hbp_create(child, in ptrace_sethbpregs() 482 child->thread.ptrace_wp[idx] = bp; in ptrace_sethbpregs() 484 child->thread.ptrace_bp[idx] = bp; in ptrace_sethbpregs() 513 ret = ptrace_getregs(child, datap); in arch_ptrace() [all …]
|
| /arch/s390/kernel/ |
| A D | ptrace.c | 168 0 : child->thread.per_user.start; in __peek_user_per() 172 -1UL : child->thread.per_user.end; in __peek_user_per() 182 return child->thread.per_user.end; in __peek_user_per() 253 tmp = child->thread.ufpu.fpc; in __peek_user() 267 tmp = __peek_user_per(child, addr); in __peek_user() 291 tmp = __peek_user(child, addr); in peek_user() 312 child->thread.per_user.control = in __poke_user_per() 319 child->thread.per_user.end = data; in __poke_user_per() 615 tmp = child->thread.ufpu.fpc; in __peek_user_compat() 656 child->thread.per_user.control = in __poke_user_per_compat() [all …]
|
| /arch/microblaze/kernel/ |
| A D | ptrace.c | 77 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument 95 val = child->mm->start_code; in arch_ptrace() 97 val = child->mm->start_data; in arch_ptrace() 99 val = child->mm->end_code in arch_ptrace() 100 - child->mm->start_code; in arch_ptrace() 105 microblaze_reg_t *reg_addr = reg_save_addr(addr, child); in arch_ptrace() 130 rval = ptrace_request(child, request, addr, data); in arch_ptrace() 166 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
|
| /arch/powerpc/kernel/ |
| A D | pci-hotplug.c | 24 struct pci_bus *child = NULL; in find_bus_among_children() local 31 child = find_bus_among_children(tmp, dn); in find_bus_among_children() 32 if (child) in find_bus_among_children() 36 return child; in find_bus_among_children() 103 if (!of_property_read_u32(start->child, "class-code", &class)) { in traverse_siblings_and_scan_slot() 106 slotno = PCI_SLOT(PCI_DN(start->child)->devfn); in traverse_siblings_and_scan_slot() 116 if (!of_property_read_u32(start->child, "class-code", &class)) { in traverse_siblings_and_scan_slot() 157 dn->child && PCI_DN(dn->child)) { in pci_hp_add_devices()
|
| /arch/hexagon/kernel/ |
| A D | ptrace.c | 23 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument 25 pt_set_singlestep(task_pt_regs(child)); in user_enable_single_step() 26 set_tsk_thread_flag(child, TIF_SINGLESTEP); in user_enable_single_step() 29 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument 31 pt_clr_singlestep(task_pt_regs(child)); in user_disable_single_step() 32 clear_tsk_thread_flag(child, TIF_SINGLESTEP); in user_disable_single_step() 163 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument 166 user_disable_single_step(child); in ptrace_disable() 169 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument 172 return ptrace_request(child, request, addr, data); in arch_ptrace()
|
| /arch/arm/mach-mvebu/ |
| A D | mvebu-soc-id.c | 61 struct device_node *child; in get_soc_id_by_pci() local 71 child = of_get_next_child(np, NULL); in get_soc_id_by_pci() 72 if (child == NULL) { in get_soc_id_by_pci() 78 clk = of_clk_get_by_name(child, NULL); in get_soc_id_by_pci() 91 pci_base = of_iomap(child, 0); in get_soc_id_by_pci() 119 if (!of_device_is_available(child) || !IS_ENABLED(CONFIG_PCI_MVEBU)) { in get_soc_id_by_pci() 125 of_node_put(child); in get_soc_id_by_pci()
|
| /arch/um/include/asm/ |
| A D | ptrace-generic.h | 34 extern long subarch_ptrace(struct task_struct *child, long request, 36 extern unsigned long getreg(struct task_struct *child, int regno); 37 extern int putreg(struct task_struct *child, int regno, unsigned long value); 39 extern int poke_user(struct task_struct *child, long addr, long data); 40 extern int peek_user(struct task_struct *child, long addr, long data);
|
| /arch/x86/pci/ |
| A D | i386.c | 235 struct pci_bus *child; in pcibios_allocate_bus_resources() local 240 list_for_each_entry(child, &bus->children, node) in pcibios_allocate_bus_resources() 241 pcibios_allocate_bus_resources(child); in pcibios_allocate_bus_resources() 310 struct pci_bus *child; in pcibios_allocate_resources() local 315 child = dev->subordinate; in pcibios_allocate_resources() 316 if (child) in pcibios_allocate_resources() 317 pcibios_allocate_resources(child, pass); in pcibios_allocate_resources() 344 struct pci_bus *child; in pcibios_allocate_rom_resources() local 349 child = dev->subordinate; in pcibios_allocate_rom_resources() 350 if (child) in pcibios_allocate_rom_resources() [all …]
|
| /arch/mips/include/asm/ |
| A D | ptrace.h | 127 extern int ptrace_getregs(struct task_struct *child, 129 extern int ptrace_setregs(struct task_struct *child, 132 extern int ptrace_getfpregs(struct task_struct *child, __u32 __user *data); 133 extern int ptrace_setfpregs(struct task_struct *child, __u32 __user *data); 135 extern int ptrace_get_watch_regs(struct task_struct *child, 137 extern int ptrace_set_watch_regs(struct task_struct *child,
|
| /arch/loongarch/kvm/ |
| A D | mmu.c | 154 kvm_pte_t *entry, *child; in kvm_populate_gpa() local 157 child = kvm->arch.pgd; in kvm_populate_gpa() 167 kvm_set_pte(entry, __pa(child)); in kvm_populate_gpa() 189 kvm_pte_t *entry, *child; in kvm_ptw_leaf() local 193 child = (kvm_pte_t *)__va(PHYSADDR(*dir)); in kvm_ptw_leaf() 206 list = (struct list_head *)child; in kvm_ptw_leaf() 223 kvm_pte_t *entry, *child; in kvm_ptw_dir() local 250 list = (struct list_head *)child; in kvm_ptw_dir() 731 kvm_pte_t val, *child; in kvm_split_huge() local 739 kvm_set_pte(child + i, val); in kvm_split_huge() [all …]
|