Lines Matching refs:thread
30 /* Sample thread data */
33 #include <kern/thread.h> /* thread_* */
52 make_runmode(thread_t thread)
57 const int mode = chudxnu_thread_get_scheduler_state(thread);
61 return (chudxnu_thread_get_idle(thread) ? TH_IDLE : TH_IDLE_N);
71 /* code to collect current thread info */
93 /* 'extra' thread-info functions that are deferred 'til thread-context
102 /* can only pend on the current thread */
106 panic("pending to non-current thread");
148 /* pend a flag on a thread */
185 * Specifies the thread mode in which to record samples.
190 // for Time Profile (All Thread States), use kAppleProfileTriggerClientThreadModeAny (or just don't specify any thread mode filters).
216 extern "C" AppleProfileTriggerClientThreadRunMode AppleProfileGetRunModeOfThread(thread_t thread) {
217 const int mode = chudxnu_thread_get_scheduler_state(thread);
220 return (chudxnu_thread_get_idle(thread) ? kAppleProfileTriggerClientThreadModeIdle : kAppleProfileTriggerClientThreadModeNotIdle);