/linux-master/tools/testing/selftests/x86/ |
H A D | test_mremap_vdso.c | 59 pid_t child; local 61 child = fork(); 62 if (child == -1) { 67 if (child == 0) { 94 if (waitpid(child, &status, 0) != child ||
|
H A D | corrupt_xstate_header.c | 77 * Enforce that the child runs on the same CPU 86 pid_t child = fork(); local 87 if (child < 0) 89 if (child == 0) 91 if (child) 92 waitpid(child, NULL, 0);
|
/linux-master/scripts/gdb/linux/ |
H A D | clk.py | 40 for child in clk_core_for_each_child(clk['children']): 41 self.show_subtree(child, level + 1) 65 for child in clk_core_for_each_child(hlist_head): 66 if child['name'].string() == name: 67 return child 68 result = self.lookup_hlist(child['children'], name)
|
/linux-master/fs/ |
H A D | pnode.c | 226 struct mount *child; local 260 child = copy_tree(last_source, last_source->mnt.mnt_root, type); 261 if (IS_ERR(child)) 262 return PTR_ERR(child); 264 mnt_set_mountpoint(m, dest_mp, child); 269 last_source = child; 270 hlist_add_head(&child->mnt_hash, list); 271 return count_mounts(m->mnt_ns, child); 337 struct mount *child; local 342 child 409 struct mount *m, *child, *topper; local 453 struct mount *m, *child; local 483 struct mount *child; local 522 struct mount *mnt, *child, *tmp; local 597 struct mount *child = __lookup_mnt(&m->mnt, local [all...] |
/linux-master/arch/powerpc/kernel/ptrace/ |
H A D | ptrace32.c | 29 * does not yet catch signals sent when the child dies. 38 long compat_arch_ptrace(struct task_struct *child, compat_long_t request, argument 67 copied = ptrace_access_vm(child, (u64)addrOthers, &tmp, 87 ret = ptrace_get_reg(child, index, &tmp); 91 flush_fp_to_thread(child); 97 tmp = ((unsigned int *)child->thread.fp_state.fpr) 136 flush_fp_to_thread(child); 138 tmp = child->thread.fp_state.fpr[numReg - PT_FPR0][0]; 141 ret = ptrace_get_reg(child, numReg, &tmp2); 170 if (ptrace_access_vm(child, (u6 [all...] |
H A D | ptrace.c | 34 void ptrace_disable(struct task_struct *child) argument 37 user_disable_single_step(child); 40 long arch_ptrace(struct task_struct *child, long request, argument 55 if ((addr & (sizeof(long) - 1)) || !child->thread.regs) 59 ret = ptrace_get_reg(child, (int) index, &tmp); 61 ret = ptrace_get_fpr(child, index, &tmp); 76 if ((addr & (sizeof(long) - 1)) || !child->thread.regs) 80 ret = ptrace_put_reg(child, index, data); 82 ret = ptrace_put_fpr(child, index, data); 103 return ppc_set_hwdebug(child, [all...] |
/linux-master/include/linux/ |
H A D | ptrace.h | 49 extern long arch_ptrace(struct task_struct *child, long request, 54 extern int ptrace_request(struct task_struct *child, long request, 57 extern void __ptrace_link(struct task_struct *child, 60 extern void __ptrace_unlink(struct task_struct *child); 90 static inline int ptrace_reparented(struct task_struct *child) argument 92 return !same_thread_group(child->real_parent, child->parent); 95 static inline void ptrace_unlink(struct task_struct *child) argument 97 if (unlikely(child->ptrace)) 98 __ptrace_unlink(child); 200 ptrace_init_task(struct task_struct *child, bool ptrace) argument [all...] |
/linux-master/tools/testing/selftests/arm64/abi/ |
H A D | ptrace.c | 32 static void test_tpidr(pid_t child) argument 45 ret = ptrace(PTRACE_GETREGSET, child, NT_ARM_TLS, &read_iov); 51 ret = ptrace(PTRACE_SETREGSET, child, NT_ARM_TLS, &write_iov); 55 ret = ptrace(PTRACE_GETREGSET, child, NT_ARM_TLS, &read_iov); 61 ret = ptrace(PTRACE_GETREGSET, child, NT_ARM_TLS, &read_iov); 82 ret = ptrace(PTRACE_SETREGSET, child, NT_ARM_TLS, &write_iov); 90 ret = ptrace(PTRACE_GETREGSET, child, NT_ARM_TLS, &read_iov); 112 ret = ptrace(PTRACE_SETREGSET, child, NT_ARM_TLS, &write_iov); 117 ret = ptrace(PTRACE_GETREGSET, child, NT_ARM_TLS, 135 static void test_hw_debug(pid_t child, in argument 174 do_parent(pid_t child) argument 253 pid_t child; local [all...] |
/linux-master/tools/testing/selftests/powerpc/ptrace/ |
H A D | ptrace-vsx.c | 37 int trace_vsx(pid_t child) argument 42 FAIL_IF(start_trace(child)); 43 FAIL_IF(show_vsx(child, vsx)); 45 FAIL_IF(show_vmx(child, vmx)); 52 FAIL_IF(write_vsx(child, vsx)); 53 FAIL_IF(write_vmx(child, vmx)); 54 FAIL_IF(stop_trace(child));
|
H A D | ptrace-tm-spd-gpr.c | 93 int trace_tm_spd_gpr(pid_t child) argument 98 FAIL_IF(start_trace(child)); 99 FAIL_IF(show_gpr(child, gpr)); 101 FAIL_IF(show_fpr(child, fpr)); 103 FAIL_IF(show_ckpt_fpr(child, fpr)); 105 FAIL_IF(show_ckpt_gpr(child, gpr)); 107 FAIL_IF(write_ckpt_gpr(child, GPR_3)); 108 FAIL_IF(write_ckpt_fpr(child, FPR_3_REP)); 112 FAIL_IF(stop_trace(child));
|
H A D | ptrace-tm-gpr.c | 25 printf("Starting the child\n"); 87 int trace_tm_gpr(pid_t child) argument 92 FAIL_IF(start_trace(child)); 93 FAIL_IF(show_gpr(child, gpr)); 95 FAIL_IF(show_fpr(child, fpr)); 97 FAIL_IF(show_ckpt_fpr(child, fpr)); 99 FAIL_IF(show_ckpt_gpr(child, gpr)); 101 FAIL_IF(write_ckpt_gpr(child, GPR_3)); 102 FAIL_IF(write_ckpt_fpr(child, FPR_3_REP)); 105 FAIL_IF(stop_trace(child)); [all...] |
H A D | ptrace-tm-spd-vsx.c | 96 int trace_tm_spd_vsx(pid_t child) argument 101 FAIL_IF(start_trace(child)); 102 FAIL_IF(show_vsx(child, vsx)); 104 FAIL_IF(show_vmx(child, vmx)); 106 FAIL_IF(show_vsx_ckpt(child, vsx)); 108 FAIL_IF(show_vmx_ckpt(child, vmx)); 116 FAIL_IF(write_vsx_ckpt(child, vsx)); 117 FAIL_IF(write_vmx_ckpt(child, vmx)); 121 FAIL_IF(stop_trace(child));
|
H A D | ptrace-tm-vsx.c | 84 int trace_tm_vsx(pid_t child) argument 89 FAIL_IF(start_trace(child)); 90 FAIL_IF(show_vsx(child, vsx)); 92 FAIL_IF(show_vmx(child, vmx)); 94 FAIL_IF(show_vsx_ckpt(child, vsx)); 96 FAIL_IF(show_vmx_ckpt(child, vmx)); 103 FAIL_IF(write_vsx_ckpt(child, vsx)); 104 FAIL_IF(write_vmx_ckpt(child, vmx)); 106 FAIL_IF(stop_trace(child));
|
/linux-master/net/ieee802154/ |
H A D | pan.c | 55 struct ieee802154_pan_device *child; local 59 list_for_each_entry(child, &wpan_dev->children, node) 60 if (cfg802154_pan_device_is_matching(child, target)) 61 return child; 69 struct ieee802154_pan_device *child; local 86 list_for_each_entry(child, &wpan_dev->children, node) 87 if (child->short_addr == addr)
|
/linux-master/drivers/usb/core/ |
H A D | of.c | 82 struct device_node *child; local 87 for_each_child_of_node(np, child) 88 if (of_property_present(child, "reg")) 101 * @hub has a child device has with a 'reg' property equal to @port1 the 102 * connect_type is "hard-wired". If there isn't an OF graph or child node at 110 struct device_node *np, *child, *ep, *remote_np; local 117 /* Assume port is unused if there's a graph or a child node. */ 137 * Hard-wired ports are child nodes with a reg property corresponding 140 child = usb_of_get_device_node(hub, port1); 141 if (of_device_is_available(child)) [all...] |
/linux-master/tools/testing/selftests/arm64/fp/ |
H A D | zt-ptrace.c | 120 static void ptrace_za_disabled_read_zt(pid_t child) argument 132 ret = set_za(child, &za); 139 ret = get_zt(child, zt); 156 static void ptrace_set_get_zt(pid_t child) argument 165 ret = set_zt(child, zt_in); 171 ret = get_zt(child, zt_out); 189 static void ptrace_enable_za_via_zt(pid_t child) argument 204 ret = set_za(child, &za_in); 212 ret = set_zt(child, zt); 221 if (get_za(child, (voi 255 do_parent(pid_t child) argument 334 pid_t child; local [all...] |
H A D | za-ptrace.c | 106 static void ptrace_set_get_vl(pid_t child, unsigned int vl, bool *supported) argument 128 ret = set_za(child, &za); 138 if (!get_za(child, (void **)&new_za, &new_za_size)) { 149 static void ptrace_set_no_data(pid_t child, unsigned int vl) argument 162 ret = set_za(child, &write_za); 169 if (!get_za(child, (void **)&read_buf, &read_za_size)) { 190 static void ptrace_set_get_data(pid_t child, unsigned int vl) argument 217 ret = set_za(child, write_za); 224 if (!get_za(child, (void **)&read_buf, &read_za_size)) { 248 static int do_parent(pid_t child) argument 343 pid_t child; local [all...] |
/linux-master/tools/testing/selftests/ptrace/ |
H A D | peeksiginfo.c | 44 static int check_error_paths(pid_t child) argument 73 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, addr_rw); 83 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, 91 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, addr_ro); 105 int check_direct_path(pid_t child, int shared, int nr) argument 122 ret = sys_ptrace(PTRACE_PEEKSIGINFO, child, &arg, siginfo); 157 pid_t child; local 163 child = fork(); 164 if (child == -1) { 167 } else if (child [all...] |
/linux-master/drivers/bus/ |
H A D | tegra-gmi.c | 96 struct device_node *child; local 100 child = of_get_next_available_child(gmi->dev->of_node, NULL); 101 if (!child) { 102 dev_err(gmi->dev, "no child nodes found\n"); 107 * We currently only support one child device due to lack of 112 dev_warn(gmi->dev, "only one child device is supported."); 114 if (of_property_read_bool(child, "nvidia,snor-data-width-32bit")) 117 if (of_property_read_bool(child, "nvidia,snor-mux-mode")) 120 if (of_property_read_bool(child, "nvidia,snor-rdy-active-before-data")) 123 if (of_property_read_bool(child, "nvidi [all...] |
/linux-master/arch/x86/um/ |
H A D | ptrace_64.c | 54 int putreg(struct task_struct *child, int regno, unsigned long value) argument 78 UPT_SYSCALL_NR(&child->thread.regs.regs) = value; 100 child->thread.regs.regs.gp[HOST_EFLAGS] |= value; 107 child->thread.regs.regs.gp[reg_offsets[regno >> 3]] = value; 111 int poke_user(struct task_struct *child, long addr, long data) argument 117 return putreg(child, addr, data); 124 child->thread.arch.debugregs[addr] = data; 130 unsigned long getreg(struct task_struct *child, int regno) argument 168 return mask & child->thread.regs.regs.gp[reg_offsets[regno >> 3]]; 171 int peek_user(struct task_struct *child, lon argument 191 get_fpregs(struct user_i387_struct __user *buf, struct task_struct *child) argument 208 set_fpregs(struct user_i387_struct __user *buf, struct task_struct *child) argument 221 subarch_ptrace(struct task_struct *child, long request, unsigned long addr, unsigned long data) argument [all...] |
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | uprobe_multi_test.c | 28 struct child { struct 33 static void release_child(struct child *child) argument 37 if (!child) 39 close(child->go[1]); 40 close(child->go[0]); 41 if (child->pid > 0) 42 waitpid(child->pid, &child_status, 0); 45 static void kick_child(struct child *child) argument 58 static struct child child; local 92 uprobe_multi_test_run(struct uprobe_multi *skel, struct child *child) argument 153 __test_attach_api(const char *binary, const char *pattern, struct bpf_uprobe_multi_opts *opts, struct child *child) argument 202 struct child *child; local 408 __test_link_api(struct child *child) argument 487 struct child *child; local [all...] |
/linux-master/tools/testing/selftests/cgroup/ |
H A D | test_core.c | 72 * Create a child process that allocates and touches 100MB, then waits to be 73 * killed. Wait until the child is attached to the cgroup, kill all processes 100 /* wait for the child to enter cgroup */ 276 char *grandparent = NULL, *parent = NULL, *child = NULL; local 280 child = cg_name(root, "cg_test_grandparent/cg_test_parent/cg_test_child"); 281 if (!parent || !child || !grandparent) 290 if (cg_create(child)) 296 if (cg_read_strcmp(child, "cgroup.type", "domain invalid\n")) 299 if (!cg_enter_current(child)) 305 if (!clone_into_cgroup_run_wait(child)) 338 char *parent = NULL, *child = NULL; local 377 char *parent = NULL, *child = NULL; local 429 char *parent = NULL, *child = NULL; local 464 char *parent = NULL, *child = NULL; local 505 char *parent = NULL, *child = NULL; local [all...] |
/linux-master/arch/um/include/asm/ |
H 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);
|
/linux-master/arch/microblaze/kernel/ |
H A D | ptrace.c | 77 long arch_ptrace(struct task_struct *child, long request, argument 95 val = child->mm->start_code; 97 val = child->mm->start_data; 99 val = child->mm->end_code 100 - child->mm->start_code; 105 microblaze_reg_t *reg_addr = reg_save_addr(addr, child); 130 rval = ptrace_request(child, request, addr, data); 166 void ptrace_disable(struct task_struct *child) argument
|
/linux-master/arch/sh/kernel/ |
H A D | ptrace_32.c | 110 void user_enable_single_step(struct task_struct *child) argument 112 unsigned long pc = get_stack_long(child, offsetof(struct pt_regs, pc)); 114 set_tsk_thread_flag(child, TIF_SINGLESTEP); 116 set_single_step(child, pc); 119 void user_disable_single_step(struct task_struct *child) argument 121 clear_tsk_thread_flag(child, TIF_SINGLESTEP); 129 void ptrace_disable(struct task_struct *child) argument 131 user_disable_single_step(child); 338 long arch_ptrace(struct task_struct *child, long request, argument 355 tmp = get_stack_long(child, add [all...] |