Searched refs:thread (Results 51 - 75 of 260) sorted by relevance

1234567891011

/xnu-2782.1.97/osfmk/chud/
H A Dchud_xnu.h71 #pragma mark **** thread ****
74 // thread
77 extern task_t chudxnu_task_for_thread(thread_t thread);
79 extern kern_return_t chudxnu_bind_thread(thread_t thread, int cpu, int options);
80 extern kern_return_t chudxnu_unbind_thread(thread_t thread, int options);
82 extern kern_return_t chudxnu_thread_get_state(thread_t thread, thread_flavor_t flavor, thread_state_t tstate, mach_msg_type_number_t *count, boolean_t user_only);
83 extern kern_return_t chudxnu_thread_set_state(thread_t thread, thread_flavor_t flavor, thread_state_t tstate, mach_msg_type_number_t count, boolean_t user_only);
85 extern kern_return_t chudxnu_thread_get_callstack64(thread_t thread, uint64_t *callStack, mach_msg_type_number_t *count, boolean_t user_only);
86 extern kern_return_t chudxnu_thread_get_callstack64_kperf(thread_t thread, uint64_t *callStack, mach_msg_type_number_t *count, boolean_t user_only);
95 extern kern_return_t chudxnu_thread_info( thread_t thread, thread_flavor_
[all...]
/xnu-2782.1.97/osfmk/i386/
H A Duser_ldt.h86 thread_t thread);
H A Dlocks_i386.c69 #include <kern/thread.h>
202 void lck_rw_clear_promotions_x86(thread_t thread);
378 panic("Spinlock acquisition timed out: lock=%p, lock owner thread=0x%lx, current_thread: %p, lock owner active on CPU 0x%x, current owner: 0x%lx", l, lowner, current_thread(), lock_cpu, (uintptr_t)l->interlock.lock_data);
523 * ignore this test if the locking thread is 0.
530 printf(" current thread %p (new attempt at pc %p)\n",
601 panic("%s: unlocking lock 0x%p, owned by thread %p",
1080 thread_t thread; local
1104 thread = current_thread();
1105 rwlock_count = thread->rwlock_count--;
1108 panic("rw lock count underflow for thread
1311 thread_t thread = current_thread(); local
1562 lck_rw_clear_promotions_x86(thread_t thread) argument
1771 thread_t thread = current_thread(); local
1826 thread_t thread; local
[all...]
H A Dpcb.c74 #include <kern/thread.h>
93 #include <i386/thread.h>
143 thread_t thread);
146 get_exception_state32(thread_t thread, x86_exception_state32_t *es);
149 get_exception_state64(thread_t thread, x86_exception_state64_t *es);
152 get_thread_state32(thread_t thread, x86_thread_state32_t *ts);
155 get_thread_state64(thread_t thread, x86_thread_state64_t *ts);
158 set_thread_state32(thread_t thread, x86_thread_state32_t *ts);
161 set_thread_state64(thread_t thread, x86_thread_state64_t *ts);
330 set_debug_state32(thread_t thread, x86_debug_state32_ argument
364 set_debug_state64(thread_t thread, x86_debug_state64_t *ds) argument
404 get_debug_state32(thread_t thread, x86_debug_state32_t *ds) argument
417 get_debug_state64(thread_t thread, x86_debug_state64_t *ds) argument
521 machine_processor_shutdown( thread_t thread, void (*doshutdown)(processor_t), processor_t processor) argument
540 machine_thread_state_initialize( thread_t thread) argument
596 get_exception_state64(thread_t thread, x86_exception_state64_t *es) argument
609 get_exception_state32(thread_t thread, x86_exception_state32_t *es) argument
623 set_thread_state32(thread_t thread, x86_thread_state32_t *ts) argument
686 set_thread_state64(thread_t thread, x86_thread_state64_t *ts) argument
726 get_thread_state32(thread_t thread, x86_thread_state32_t *ts) argument
754 get_thread_state64(thread_t thread, x86_thread_state64_t *ts) argument
1527 machine_thread_get_kern_state( thread_t thread, thread_flavor_t flavor, thread_state_t tstate, mach_msg_type_number_t *count) argument
1696 machine_thread_switch_addrmode(thread_t thread) argument
1726 machine_set_current_thread(thread_t thread) argument
1778 machine_stack_detach(thread_t thread) argument
1798 machine_stack_attach( thread_t thread, vm_offset_t stack) argument
[all...]
H A Dpanic_hooks.c33 #include <kern/thread.h>
42 thread_t thread; member in struct:panic_hook
71 hook->thread = current_thread();
90 thread_t thread = current_thread(); local
102 if (hook->thread == thread) {
H A Dgenassym.c63 #include <kern/thread.h>
76 #include <i386/thread.h>
168 DECLARE("TH_RECOVER", offsetof(struct thread, recover));
169 DECLARE("TH_CONTINUATION", offsetof(struct thread, continuation));
170 DECLARE("TH_KERNEL_STACK", offsetof(struct thread, kernel_stack));
171 DECLARE("TH_MUTEX_COUNT", offsetof(struct thread, mutex_count));
172 DECLARE("TH_WAS_PROMOTED_ON_WAKEUP", offsetof(struct thread, was_promoted_on_wakeup));
173 DECLARE("TH_IOTIER_OVERRIDE", offsetof(struct thread, iotier_override));
175 DECLARE("TH_SYSCALLS_MACH", offsetof(struct thread, syscalls_mach));
176 DECLARE("TH_SYSCALLS_UNIX", offsetof(struct thread, syscalls_uni
[all...]
H A Dtrap.c84 #include <kern/thread.h>
205 thread_t thread = current_thread(); local
208 if (thread_is_64bit(thread)) {
211 uregs = USER_REGS64(thread);
217 uregs = USER_REGS32(thread);
224 pal_dbg_page_fault( thread, vaddr, kr );
397 && ((current_thread()->state & TH_IDLE) == 0) /* idle-in-place should be treated like the idle thread */
510 thread_t thread; local
521 thread = current_thread();
580 if (__probable(thread !
878 thread_t thread = current_thread(); local
[all...]
/xnu-2782.1.97/osfmk/kdp/ml/i386/
H A Dkdp_x86_common.h55 extern void kern_collectth_state(thread_t thread, void *buffer, size_t size);
/xnu-2782.1.97/osfmk/kern/
H A Dspl.c28 #include <kern/thread.h>
H A Dsched.h82 #define IDLEPRI 0 /* idle thread priority */
167 /* Type used for thread->sched_mode and saved_mode */
278 /* Handle quantum expiration for an executing thread */
281 timer_call_param_t thread);
365 /* TH_RUN & !TH_IDLE controls whether a thread has a run count */
373 extern void sched_share_incr(thread_t thread);
374 extern void sched_share_decr(thread_t thread);
375 extern void sched_background_incr(thread_t thread);
376 extern void sched_background_decr(thread_t thread);
378 extern void assert_thread_sched_count(thread_t thread);
[all...]
H A Dtask.c108 #include <kern/thread.h>
277 thread_t thread; local
291 /* FIXME: On x86, the thread save state flavor can diverge from the
294 * certain routines may observe the thread as being in an inconsistent
299 queue_iterate(&task->threads, thread, thread_t, task_threads) {
300 thread_mtx_lock(thread);
301 machine_thread_switch_addrmode(thread);
302 thread_mtx_unlock(thread);
1165 * (kern/thread.c) about problems with terminating the "current task."
1209 thread_t thread, sel local
1400 thread_t thread, self; local
1519 register thread_t thread; local
1603 register thread_t thread, self; local
1632 register thread_t thread; local
1684 thread_t thread; local
2642 register thread_t thread; local
2675 register thread_t thread; local
2953 register thread_t thread; local
3172 thread_t thread; local
3235 thread_t thread; local
3273 thread_t thread; local
3344 thread_t thread = current_thread(); local
3833 thread_t thread= THREAD_NULL; local
[all...]
H A Dbsd_kern.c35 #include <kern/thread.h>
112 * retrieving the first thread for extra safety.
116 thread_t thread = (thread_t)(void *)queue_first(&task->threads); local
118 if (queue_end(&task->threads, (queue_entry_t)thread))
119 thread = THREAD_NULL;
124 return (thread);
134 thread_t inc, thread = THREAD_NULL; local
149 thread = inc;
158 *result_out = thread;
160 if (thread) {
176 check_actforsig( task_t task, thread_t thread, int setast) argument
300 swap_task_map(task_t task, thread_t thread, vm_map_t map, boolean_t doswitch) argument
641 thread_t thread; local
865 thread_t thread; local
[all...]
H A Dexception.h51 /* Make an up-call to a thread's exception server */
58 extern kern_return_t sys_perf_notify(thread_t thread, int pid);
H A Dtask_swap.c44 #include <kern/thread.h>
/xnu-2782.1.97/libsyscall/mach/
H A Dexc_catcher_state_identity.c46 mach_port_t thread,
67 return (*exc_raise_state_identity_func)(exception_port, thread, task, exception, code, codeCnt, flavor, old_state, old_stateCnt, new_state, new_stateCnt);
70 return catch_exception_raise_state_identity(exception_port, thread, task, exception, code, codeCnt, flavor, old_state, old_stateCnt, new_state, new_stateCnt);
44 internal_catch_exception_raise_state_identity( mach_port_t exception_port, mach_port_t thread, mach_port_t task, exception_type_t exception, exception_data_t code, mach_msg_type_number_t codeCnt, int *flavor, thread_state_t old_state, mach_msg_type_number_t old_stateCnt, thread_state_t new_state, mach_msg_type_number_t *new_stateCnt) argument
H A Dthread_act.c50 thread_policy_set(thread_act_t thread, thread_policy_flavor_t flavor, thread_policy_t policy_info, mach_msg_type_number_t policy_infoCnt) argument
54 kr = _kernelrpc_thread_policy_set(thread, flavor, policy_info, policy_infoCnt);
56 _pthread_clear_qos_tsd(thread);
/xnu-2782.1.97/bsd/dev/i386/
H A Dsystemcalls.c29 #include <kern/thread.h>
82 thread_t thread; local
100 thread = current_thread();
101 uthread = get_bsdthread_info(thread);
174 * Delayed binding of thread credential to process credential, if we
175 * are not running with an explicitly set thread credential.
209 pal_syscall_restart(thread, state);
248 pal_execve_return(thread);
259 thread_t thread; local
276 thread
448 thread_t thread; local
[all...]
/xnu-2782.1.97/osfmk/kperf/
H A Dpet.c29 /* 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
103 thread_t thread = threadv[i]; local
[all...]
H A Dthreadinfo.c30 /* Sample thread data */
33 #include <kern/thread.h> /* thread_* */
52 make_runmode(thread_t thread) argument
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");
[all...]
H A Daction.c39 #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);
[all...]
/xnu-2782.1.97/tools/tests/affinity/
H A Dtags.c42 thread_tag_set(thread_t thread, int tag) argument
49 thread, THREAD_AFFINITY_POLICY,
59 thread_tag_get(thread_t thread) argument
67 thread, THREAD_AFFINITY_POLICY,
125 printf(" %d: thread 0x%08x tag %d\n",
133 printf(" %d: thread 0x%08x tag %d: ",
/xnu-2782.1.97/osfmk/ipc/
H A Dipc_mqueue.c84 #include <kern/thread.h>
255 /* waitq/mqueue still locked, thread locked */
264 * go look for another thread that can.
292 continue; /* find another thread */
299 * This thread is going to take this message,
515 /* waitq still locked, thread locked */
530 * go look for another thread that can.
539 * We found a waiting thread.
541 * the thread we wake up will get that as its status.
554 * receiver thread did
711 ipc_mqueue_receive_on_thread( ipc_mqueue_t mqueue, mach_msg_option_t option, mach_msg_size_t max_size, mach_msg_timeout_t rcv_timeout, int interruptible, thread_t thread) argument
867 ipc_mqueue_select_on_thread( ipc_mqueue_t mqueue, mach_msg_option_t option, mach_msg_size_t max_size, thread_t thread) argument
[all...]
/xnu-2782.1.97/bsd/uxkern/
H A Dux_exception.c53 #include <kern/thread.h>
150 mach_msg_port_descriptor_t thread; member in struct:exc_msg
194 thread_t thread = THREAD_NULL; local
197 (void) kernel_thread_start((thread_continue_t)ux_handler, NULL, &thread);
198 thread_deallocate(thread);
209 mach_port_t thread,
221 thread,
232 mach_port_t thread,
247 mach_port_name_t thread_name = CAST_MACH_PORT_TO_NAME(thread);
251 * Convert local thread nam
207 catch_exception_raise( __unused mach_port_t exception_port, mach_port_t thread, mach_port_t task, exception_type_t exception, exception_data_t code, __unused mach_msg_type_number_t codeCnt ) argument
230 catch_mach_exception_raise( __unused mach_port_t exception_port, mach_port_t thread, mach_port_t task, exception_type_t exception, mach_exception_data_t code, __unused mach_msg_type_number_t codeCnt ) argument
388 catch_exception_raise_state_identity( __unused mach_port_t exception_port, __unused mach_port_t thread, __unused mach_port_t task, __unused exception_type_t exception, __unused exception_data_t code, __unused mach_msg_type_number_t codeCnt, __unused int *flavor, __unused thread_state_t old_state, __unused mach_msg_type_number_t old_stateCnt, __unused thread_state_t new_state, __unused mach_msg_type_number_t *new_stateCnt) argument
405 catch_mach_exception_raise_state_identity( __unused mach_port_t exception_port, __unused mach_port_t thread, __unused mach_port_t task, __unused exception_type_t exception, __unused mach_exception_data_t code, __unused mach_msg_type_number_t codeCnt, __unused int *flavor, __unused thread_state_t old_state, __unused mach_msg_type_number_t old_stateCnt, __unused thread_state_t new_state, __unused mach_msg_type_number_t *new_stateCnt) argument
[all...]
/xnu-2782.1.97/osfmk/mach/
H A Dsemaphore.defs68 thread : thread_act_t);
/xnu-2782.1.97/osfmk/x86_64/
H A Dcopyio.c81 thread_t thread; local
92 thread = current_thread();
96 nbytes, thread->machine.copyio_state, 0);
101 pmap = thread->map->pmap;
110 ((nbytes && (user_addr+nbytes <= user_addr)) || ((user_addr + nbytes) > vm_map_max(thread->map)))) {
119 * we need to switch back to the user's map/cr3. The thread is flagged
120 * "CopyIOActive" at this time so that if the thread is pre-empted,
123 recursive_CopyIOActive = thread->machine.specFlags & CopyIOActive;
124 thread->machine.specFlags |= CopyIOActive;
132 * Ensure that we're running on the target thread'
[all...]

Completed in 128 milliseconds

1234567891011