Home
last modified time | relevance | path

Searched refs:child (Results 1 – 25 of 1232) sorted by relevance

12345678910>>...50

/linux-6.3-rc2/arch/powerpc/kernel/ptrace/
A Dptrace-adv.c224 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 Dptrace32.c87 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 …]
/linux-6.3-rc2/drivers/mtd/
A Dmtdpart.c50 child = kzalloc(sizeof(*child), GFP_KERNEL); in allocate_partition()
56 kfree(child); in allocate_partition()
64 child->flags = child->part.flags; in allocate_partition()
107 child->part.size = parent_size - child->part.offset - in allocate_partition()
118 child->part.size = parent_size - child->part.offset; in allocate_partition()
121 child->part.offset, child->part.offset + child->part.size, in allocate_partition()
137 child->part.size = parent_size - child->part.offset; in allocate_partition()
145 u64 end = child->part.offset + child->part.size; in allocate_partition()
187 tmp = mtd_get_master_ofs(child, 0) + child->part.size; in allocate_partition()
195 child->size = child->part.size; in allocate_partition()
[all …]
/linux-6.3-rc2/arch/x86/kernel/
A Dstep.c36 mutex_lock(&child->mm->context.lock); in convert_ip_to_linear()
37 if (unlikely(!child->mm->context.ldt || in convert_ip_to_linear()
49 mutex_unlock(&child->mm->context.lock); in convert_ip_to_linear()
113 struct pt_regs *regs = task_pt_regs(child); in enable_single_step()
155 if (is_setting_trap_flag(child, regs)) { in enable_single_step()
211 if (enable_single_step(child) && block) in enable_step()
212 set_task_blockstep(child, true); in enable_step()
214 set_task_blockstep(child, false); in enable_step()
219 enable_step(child, 0); in user_enable_single_step()
224 enable_step(child, 1); in user_enable_block_step()
[all …]
/linux-6.3-rc2/kernel/
A Dptrace.c119 BUG_ON(!child->ptrace); in __ptrace_unlink()
126 child->parent = child->real_parent; in __ptrace_unlink()
133 child->ptrace = 0; in __ptrace_unlink()
167 if (child->jobctl & JOBCTL_STOP_PENDING || task_is_traced(child)) in __ptrace_unlink()
261 if (child->ptrace && child->parent == current) { in ptrace_check_attach()
588 ptrace_disable(child); in ptrace_detach()
595 WARN_ON(!child->ptrace || child->exit_state); in ptrace_detach()
1006 switch (child->last_siginfo ? child->last_siginfo->si_code : 0) { in ptrace_get_syscall_info()
1146 ptrace_signal_wake_up(child, child->jobctl & JOBCTL_LISTENING); in ptrace_request()
1281 if (!child) { in SYSCALL_DEFINE4()
[all …]
/linux-6.3-rc2/tools/testing/selftests/arm64/fp/
A Dfp-stress.c70 child->pid = fork(); in child_start()
71 if (child->pid == -1) in child_start()
75 if (!child->pid) { in child_start()
134 ev.data.ptr = child; in child_start()
165 if (child->output) { in child_output_read()
168 free(child->output); in child_output_read()
210 child->stdout = -1; in child_output()
215 ksft_print_msg("%s: %s<EOF>\n", child->name, child->output); in child_output()
223 if (child->output_seen && !child->exited) in child_tickle()
229 if (!child->exited) in child_stop()
[all …]
/linux-6.3-rc2/tools/testing/selftests/powerpc/ptrace/
A Dptrace.h64 int start_trace(pid_t child) in start_trace() argument
73 ret = waitpid(child, NULL, 0); in start_trace()
74 if (ret != child) { in start_trace()
81 int stop_trace(pid_t child) in stop_trace() argument
93 int cont_trace(pid_t child) in cont_trace() argument
111 FAIL_IF(start_trace(child)); in ptrace_read_regs()
120 FAIL_IF(stop_trace(child)); in ptrace_read_regs()
131 FAIL_IF(start_trace(child)); in ptrace_write_regs()
138 FAIL_IF(stop_trace(child)); in ptrace_write_regs()
325 int show_fpr(pid_t child, __u64 *fpr) in show_fpr() argument
[all …]
/linux-6.3-rc2/arch/mips/kernel/
A Dptrace32.c86 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 …]
/linux-6.3-rc2/tools/perf/arch/x86/tests/
A Dbp-modify.c32 int child = fork(); in spawn_child() local
34 if (child == 0) { in spawn_child()
52 return child; in spawn_child()
61 pid_t child; in bp_modify1() local
65 child = spawn_child(); in bp_modify1()
67 waitpid(child, &status, 0); in bp_modify1()
106 waitpid(child, &status, 0); in bp_modify1()
138 pid_t child; in bp_modify2() local
142 child = spawn_child(); in bp_modify2()
144 waitpid(child, &status, 0); in bp_modify2()
[all …]
/linux-6.3-rc2/arch/um/kernel/
A Dptrace.c14 set_tsk_thread_flag(child, TIF_SINGLESTEP); in user_enable_single_step()
15 child->thread.singlestep_syscall = 0; in user_enable_single_step()
18 SUBARCH_SET_SINGLESTEPPING(child, 1); in user_enable_single_step()
24 clear_tsk_thread_flag(child, TIF_SINGLESTEP); in user_disable_single_step()
25 child->thread.singlestep_syscall = 0; in user_disable_single_step()
28 SUBARCH_SET_SINGLESTEPPING(child, 0); in user_disable_single_step()
37 user_disable_single_step(child); in ptrace_disable()
53 ret = peek_user(child, addr, data); in arch_ptrace()
58 ret = poke_user(child, addr, data); in arch_ptrace()
73 __put_user(getreg(child, i), p); in arch_ptrace()
[all …]
/linux-6.3-rc2/arch/m68k/kernel/
A Dptrace.c130 put_reg(child, PT_SR, tmp); in singlestep_disable()
139 singlestep_disable(child); in ptrace_disable()
145 put_reg(child, PT_SR, tmp | T1_BIT); in user_enable_single_step()
159 singlestep_disable(child); in user_disable_single_step()
177 tmp = get_reg(child, regno); in arch_ptrace()
188 tmp = child->mm->start_code; in arch_ptrace()
190 tmp = child->mm->start_data; in arch_ptrace()
192 tmp = child->mm->end_code; in arch_ptrace()
209 if (put_reg(child, regno, data)) in arch_ptrace()
227 tmp = get_reg(child, i); in arch_ptrace()
[all …]
/linux-6.3-rc2/arch/alpha/kernel/
A Dptrace.c179 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 …]
/linux-6.3-rc2/drivers/pwm/
A Dsysfs.c18 struct device child; member
26 return container_of(child, struct pwm_export, child); in child_to_pwm_export()
260 export->child.parent = parent; in pwm_export_child()
261 export->child.devt = MKDEV(0, 0); in pwm_export_child()
268 put_device(&export->child); in pwm_export_child()
287 struct device *child; in pwm_unexport_child() local
294 if (!child) in pwm_unexport_child()
303 put_device(child); in pwm_unexport_child()
304 device_unregister(child); in pwm_unexport_child()
381 struct device *child; in pwm_class_get_state() local
[all …]
/linux-6.3-rc2/arch/x86/um/
A Dptrace_32.c131 return putreg(child, addr, data); in poke_user()
186 tmp = getreg(child, addr); in peek_user()
192 tmp = child->thread.arch.debugregs[addr]; in peek_user()
199 int err, n, cpu = task_cpu(child); in get_fpregs()
216 int n, cpu = task_cpu(child); in set_fpregs()
229 int err, n, cpu = task_cpu(child); in get_fpxregs()
245 int n, cpu = task_cpu(child); in set_fpxregs()
263 ret = get_fpregs(datap, child); in subarch_ptrace()
266 ret = set_fpregs(datap, child); in subarch_ptrace()
269 ret = get_fpxregs(datap, child); in subarch_ptrace()
[all …]
A Dptrace_64.c78 UPT_SYSCALL_NR(&child->thread.regs.regs) = value; in putreg()
100 child->thread.regs.regs.gp[HOST_EFLAGS] |= value; in putreg()
117 return putreg(child, addr, data); in poke_user()
124 child->thread.arch.debugregs[addr] = data; in poke_user()
130 unsigned long getreg(struct task_struct *child, int regno) in getreg() argument
181 tmp = getreg(child, addr); in peek_user()
186 tmp = child->thread.arch.debugregs[addr]; in peek_user()
236 int n, cpu = ((struct thread_info *) child->stack)->cpu; in set_fpregs()
255 ret = get_fpregs(datap, child); in subarch_ptrace()
258 ret = set_fpregs(datap, child); in subarch_ptrace()
[all …]
/linux-6.3-rc2/tools/testing/selftests/ptrace/
A Dpeeksiginfo.c44 static int check_error_paths(pid_t child) in check_error_paths() argument
157 pid_t child; in main() local
163 child = fork(); in main()
164 if (child == -1) { in main()
167 } else if (child == 0) { in main()
185 sys_rt_tgsigqueueinfo(child, child, SIGRTMIN, siginfo); in main()
191 waitpid(child, NULL, 0); in main()
194 if (check_direct_path(child, 0, 1)) in main()
204 if (check_direct_path(child, 1, 3)) in main()
207 if (check_error_paths(child)) in main()
[all …]
/linux-6.3-rc2/drivers/net/mdio/
A Dfwnode_mdio.c66 rc = fwnode_irq_get(child, 0); in fwnode_mdiobus_phy_device_register()
93 fwnode_handle_get(child); in fwnode_mdiobus_phy_device_register()
94 device_set_node(&phy->mdio.dev, child); in fwnode_mdiobus_phy_device_register()
102 fwnode_handle_put(child); in fwnode_mdiobus_phy_device_register()
107 child, addr); in fwnode_mdiobus_phy_device_register()
113 struct fwnode_handle *child, u32 addr) in fwnode_mdiobus_register_phy() argument
122 psec = fwnode_find_pse_control(child); in fwnode_mdiobus_register_phy()
126 mii_ts = fwnode_find_mii_timestamper(child); in fwnode_mdiobus_register_phy()
142 if (is_acpi_node(child)) { in fwnode_mdiobus_register_phy()
154 fwnode_handle_put(child); in fwnode_mdiobus_register_phy()
[all …]
A Dof_mdio.c37 struct device_node *child, u32 addr) in of_mdiobus_phy_device_register() argument
40 of_fwnode_handle(child), in of_mdiobus_phy_device_register()
46 struct device_node *child, u32 addr) in of_mdiobus_register_phy() argument
52 struct device_node *child, u32 addr) in of_mdiobus_register_device() argument
78 child, addr); in of_mdiobus_register_device()
130 child); in of_mdiobus_child_is_phy()
151 struct device_node *child; in of_mdiobus_register() local
187 if (of_mdiobus_child_is_phy(child)) in of_mdiobus_register()
216 child, addr); in of_mdiobus_register()
218 if (of_mdiobus_child_is_phy(child)) { in of_mdiobus_register()
[all …]
/linux-6.3-rc2/include/linux/
A Dptrace.h92 return !same_thread_group(child->real_parent, child->parent); in ptrace_reparented()
97 if (unlikely(child->ptrace)) in ptrace_unlink()
98 __ptrace_unlink(child); in ptrace_unlink()
202 INIT_LIST_HEAD(&child->ptrace_entry); in ptrace_init_task()
203 INIT_LIST_HEAD(&child->ptraced); in ptrace_init_task()
204 child->jobctl = 0; in ptrace_init_task()
205 child->ptrace = 0; in ptrace_init_task()
206 child->parent = child->real_parent; in ptrace_init_task()
209 child->ptrace = current->ptrace; in ptrace_init_task()
212 if (child->ptrace & PT_SEIZED) in ptrace_init_task()
[all …]
A Dbootconfig.h52 uint16_t child; member
104 return xbc_node_is_value(node) && node->child != 0; in xbc_node_is_array()
173 struct xbc_node *child = xbc_node_get_child(node); in xbc_node_get_subkey() local
175 if (child && xbc_node_is_value(child)) in xbc_node_get_subkey()
176 return xbc_node_get_next(child); in xbc_node_get_subkey()
178 return child; in xbc_node_get_subkey()
203 #define xbc_node_for_each_child(parent, child) \ argument
204 for (child = xbc_node_get_child(parent); child != NULL ; \
205 child = xbc_node_get_next(child))
216 for (child = xbc_node_get_subkey(parent); child != NULL ; \
[all …]
/linux-6.3-rc2/tools/testing/selftests/cgroup/
A Dtest_core.c319 if (child) in test_cgcore_invalid_domain()
325 free(child); in test_cgcore_invalid_domain()
360 if (child) in test_cgcore_parent_becomes_threaded()
364 free(child); in test_cgcore_parent_becomes_threaded()
413 if (child) in test_cgcore_no_internal_process_constraint_on_threads()
417 free(child); in test_cgcore_no_internal_process_constraint_on_threads()
448 if (child) in test_cgcore_top_down_constraint_enable()
452 free(child); in test_cgcore_top_down_constraint_enable()
489 if (child) in test_cgcore_top_down_constraint_disable()
493 free(child); in test_cgcore_top_down_constraint_disable()
[all …]
/linux-6.3-rc2/fs/
A Dpnode.c227 struct mount *child; in propagate_one() local
262 if (IS_ERR(child)) in propagate_one()
270 last_source = child; in propagate_one()
339 struct mount *child; in find_topper() local
348 return child; in find_topper()
389 if (!child) in propagate_mount_busy()
422 if (child) in propagate_mount_unlock()
445 struct mount *child; in __propagate_umount() local
460 if (!list_empty(&child->mnt_umounting) && IS_MNT_MARKED(child)) in __propagate_umount()
561 if (!child) in propagate_umount()
[all …]
/linux-6.3-rc2/arch/sh/kernel/
A Dptrace_32.c116 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 …]
/linux-6.3-rc2/tools/testing/selftests/arm64/abi/
A Dptrace.c32 static void test_tpidr(pid_t child) in test_tpidr() argument
45 ret = ptrace(PTRACE_GETREGSET, child, NT_ARM_TLS, &read_iov); in test_tpidr()
117 ret = ptrace(PTRACE_GETREGSET, child, NT_ARM_TLS, in test_tpidr()
146 static int do_parent(pid_t child) in do_parent() argument
167 if (pid != child) in do_parent()
209 test_tpidr(child); in do_parent()
214 kill(child, SIGKILL); in do_parent()
223 pid_t child; in main() local
231 child = fork(); in main()
232 if (!child) in main()
[all …]
/linux-6.3-rc2/drivers/pci/pcie/
A Daspm.c105 return child; in pci_function_0()
524 pci_read_config_dword(child, child->l1ss + PCI_L1SS_CTL1, &cctl1); in aspm_calc_l1ss_info()
525 pci_read_config_dword(child, child->l1ss + PCI_L1SS_CTL2, &cctl2); in aspm_calc_l1ss_info()
536 pci_clear_and_set_dword(child, child->l1ss + PCI_L1SS_CTL1, in aspm_calc_l1ss_info()
544 pci_write_config_dword(child, child->l1ss + PCI_L1SS_CTL2, ctl2); in aspm_calc_l1ss_info()
554 pci_clear_and_set_dword(child, child->l1ss + PCI_L1SS_CTL1, in aspm_calc_l1ss_info()
561 pci_clear_and_set_dword(child, child->l1ss + PCI_L1SS_CTL1, 0, in aspm_calc_l1ss_info()
578 pci_read_config_dword(child, child->l1ss + PCI_L1SS_CAP, in aspm_l1ss_init()
607 pci_read_config_dword(child, child->l1ss + PCI_L1SS_CTL1, in aspm_l1ss_init()
722 pci_clear_and_set_dword(child, child->l1ss + PCI_L1SS_CTL1, in pcie_config_aspm_l1ss()
[all …]

Completed in 47 milliseconds

12345678910>>...50