Lines Matching defs:task
37 * Calls unwind_for_each_frame(task, regs, sp) and verifies that the result
40 static noinline int test_unwind(struct task_struct *task, struct pt_regs *regs,
59 unwind_for_each_frame(&state, task, regs, sp) {
105 /* State of the task being unwound. */
109 struct task_struct *task;
119 #define UWM_THREAD 0x1 /* Unwind a separate task. */
236 if (u && u->task == current) {
238 u->task = NULL;
250 u->task = current;
258 /* Spawns a task and passes it to test_unwind(). */
261 struct task_struct *task;
269 * Start the task and wait until it reaches unwindme_func4() and sleeps
272 task = kthread_run(unwindme_func1, u, "%s", __func__);
273 if (IS_ERR(task)) {
275 return PTR_ERR(task);
278 * Make sure task reaches unwindme_func4 before parking it,
282 kthread_park(task);
284 ret = test_unwind(task, NULL, (u->flags & UWM_SP) ? u->sp : 0);
285 kthread_stop(task);