Lines Matching refs:thread
29 /* all thread states code */
55 /* the actual thread pointer */
66 /* sample an actual, honest to god thread! */
68 pet_sample_thread( thread_t thread )
75 ctx.cur_thread = thread;
78 task = chudxnu_task_for_thread(thread);
82 skip_callstack = (chudxnu_thread_get_dirty(thread) == TRUE) || ((thread->kperf_pet_cnt % (uint64_t)pet_idle_rate) == 0) ? 0 : SAMPLE_FLAG_EMPTY_CALLSTACK;
89 chudxnu_thread_set_dirty(thread, FALSE);
91 thread->kperf_pet_cnt++;
103 thread_t thread = threadv[i];
105 if( !thread )
112 if (candidate && candidate->thread_id == thread->thread_id)
116 /* the thread was not on a CPU */
118 pet_sample_thread( thread );
302 /* make sure the thread takes a new period value */
309 /* hold the lock so pet thread doesn't run while we do this */
322 /* make the thread run! */
329 /* Make the thread go */
334 /* wait for the pet thread to finish a run */
341 /* acquire the lock to ensure the thread is parked. */
346 /* keep the pet thread around while we run */
361 /* create the thread */