/linux-master/tools/testing/selftests/powerpc/ptrace/ |
H A D | ptrace-tar.c | 51 int trace_tar(pid_t child) argument 55 FAIL_IF(start_trace(child)); 56 FAIL_IF(show_tar_registers(child, reg)); 61 FAIL_IF(stop_trace(child)); 65 int trace_tar_write(pid_t child) argument 67 FAIL_IF(start_trace(child)); 68 FAIL_IF(write_tar_registers(child, TAR_2, PPR_2, DSCR_2)); 72 FAIL_IF(stop_trace(child)); 109 /* Unblock the child now */ 112 /* Wait on child */ [all...] |
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/drivers/net/mdio/ |
H A D | of_mdio.c | 38 struct device_node *child, u32 addr) 41 of_fwnode_handle(child), 47 struct device_node *child, u32 addr) 49 return fwnode_mdiobus_register_phy(mdio, of_fwnode_handle(child), addr); 53 struct device_node *child, u32 addr) 55 struct fwnode_handle *fwnode = of_fwnode_handle(child); 79 child, addr); 105 * Return true if the child node is for a phy. It must either: 115 bool of_mdiobus_child_is_phy(struct device_node *child) argument 119 if (of_get_phy_id(child, 37 of_mdiobus_phy_device_register(struct mii_bus *mdio, struct phy_device *phy, struct device_node *child, u32 addr) argument 46 of_mdiobus_register_phy(struct mii_bus *mdio, struct device_node *child, u32 addr) argument 52 of_mdiobus_register_device(struct mii_bus *mdio, struct device_node *child, u32 addr) argument 145 struct device_node *child; local 201 struct device_node *child; local [all...] |
/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/tools/testing/selftests/x86/ |
H A D | test_mremap_vdso.c | 60 pid_t child; local 65 child = fork(); 66 if (child == -1) 69 if (child == 0) { 96 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/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/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/fs/xfs/libxfs/ |
H A D | xfs_parent.c | 154 struct xfs_inode *child, 158 args->geo = child->i_mount->m_attr_geo; 163 args->dp = child; 176 struct xfs_inode *child) 179 if (XFS_IS_CORRUPT(child->i_mount, !xfs_inode_has_attr_fork(child))) { 180 xfs_inode_mark_sick(child, XFS_SICK_INO_PARENT); 184 return xfs_iread_extents(tp, child, XFS_ATTR_FORK); 194 struct xfs_inode *child) 198 error = xfs_parent_iread_extents(tp, child); 150 xfs_parent_da_args_init( struct xfs_da_args *args, struct xfs_trans *tp, struct xfs_parent_rec *rec, struct xfs_inode *child, xfs_ino_t owner, const struct xfs_name *parent_name) argument 174 xfs_parent_iread_extents( struct xfs_trans *tp, struct xfs_inode *child) argument 189 xfs_parent_addname( struct xfs_trans *tp, struct xfs_parent_args *ppargs, struct xfs_inode *dp, const struct xfs_name *parent_name, struct xfs_inode *child) argument 211 xfs_parent_removename( struct xfs_trans *tp, struct xfs_parent_args *ppargs, struct xfs_inode *dp, const struct xfs_name *parent_name, struct xfs_inode *child) argument 233 xfs_parent_replacename( struct xfs_trans *tp, struct xfs_parent_args *ppargs, struct xfs_inode *old_dp, const struct xfs_name *old_name, struct xfs_inode *new_dp, const struct xfs_name *new_name, struct xfs_inode *child) argument [all...] |
/linux-master/tools/testing/selftests/cgroup/ |
H A D | test_core.c | 74 * Create a child process that allocates and touches 100MB, then waits to be 75 * killed. Wait until the child is attached to the cgroup, kill all processes 102 /* wait for the child to enter cgroup */ 278 char *grandparent = NULL, *parent = NULL, *child = NULL; local 282 child = cg_name(root, "cg_test_grandparent/cg_test_parent/cg_test_child"); 283 if (!parent || !child || !grandparent) 292 if (cg_create(child)) 298 if (cg_read_strcmp(child, "cgroup.type", "domain invalid\n")) 301 if (!cg_enter_current(child)) 307 if (!clone_into_cgroup_run_wait(child)) 340 char *parent = NULL, *child = NULL; local 379 char *parent = NULL, *child = NULL; local 431 char *parent = NULL, *child = NULL; local 466 char *parent = NULL, *child = NULL; local 507 char *parent = NULL, *child = NULL; local [all...] |
/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
|