Lines Matching defs:task
67 task_t task;
73 task = chudxnu_task_for_thread(thread);
74 if(task)
75 ctx.cur_pid = chudxnu_pid_for_task(task);
99 /* given a task (preferably stopped), sample all the threads in it */
101 pet_sample_task( task_t task )
107 kr = chudxnu_task_threads(task, &threadv, &threadc);
128 task_t task = taskv[i];
133 if(!task) {
137 /* try and stop any task other than the kernel task */
138 if( task != kernel_task )
140 kr = task_suspend( task );
142 /* try the next task */
148 pet_sample_task( task );
151 if( task != kernel_task )
152 task_resume(task);
195 /* convert the pid list into a task list */
205 /* now sample the task list */