Lines Matching full:child
19 * @child: task to be debugged
21 * If @child is non-NULL, ocd_enable() first checks if debugging has
22 * already been enabled for @child, and if it has, does nothing.
24 * If @child is NULL (e.g. when debugging the kernel), or debugging
28 void ocd_enable(struct task_struct *child) in ocd_enable() argument
32 if (child) in ocd_enable()
33 pr_debug("ocd_enable: child=%s [%u]\n", in ocd_enable()
34 child->comm, child->pid); in ocd_enable()
36 pr_debug("ocd_enable (no child)\n"); in ocd_enable()
38 if (!child || !test_and_set_tsk_thread_flag(child, TIF_DEBUG)) { in ocd_enable()
50 * @child: task that was being debugged, but isn't anymore
52 * If @child is non-NULL, ocd_disable() checks if debugging is enabled
53 * for @child, and if it isn't, does nothing.
55 * If @child is NULL (e.g. when debugging the kernel), or debugging is
59 void ocd_disable(struct task_struct *child) in ocd_disable() argument
63 if (!child) in ocd_disable()
64 pr_debug("ocd_disable (no child)\n"); in ocd_disable()
65 else if (test_tsk_thread_flag(child, TIF_DEBUG)) in ocd_disable()
66 pr_debug("ocd_disable: child=%s [%u]\n", in ocd_disable()
67 child->comm, child->pid); in ocd_disable()
69 if (!child || test_and_clear_tsk_thread_flag(child, TIF_DEBUG)) { in ocd_disable()