Lines Matching refs:thread
39 #include <kern/thread.h>
71 /* whether we get a callback on a thread switch */
111 /* See if we should drop idle thread samples */
234 /* ast callback on a thread */
236 kperf_thread_ast_handler( thread_t thread )
241 /* we know we're on a thread, so let's do stuff */
244 BUF_INFO1(PERF_AST_HNDLR | DBG_FUNC_START, thread);
252 ctx.cur_thread = thread;
255 task = chudxnu_task_for_thread(thread);
260 t_chud = kperf_get_thread_bits(thread);
282 /* pend on the thread */
285 /* can only pend on the current thread */
287 panic("pending to non-current thread");
295 /* set the bit on the thread */
356 thread_t thread = chudxnu_current_thread();
357 task = chudxnu_task_for_thread(thread);
368 ctx.cur_thread = thread;
390 kperf_ast_pend( thread, T_AST_CALLSTACK, T_AST_CALLSTACK );
427 /* cut a tracepoint to tell us what the new thread's PID is