/macosx-10.5.8/xnu-1228.15.4/osfmk/ddb/ |
H A D | db_task_thread.c | 75 #define DB_MAX_THREADID 0x10000 /* max # of threads in a task */ 126 if (queue_first(&task->threads) == 0) 128 queue_iterate(&task->threads, thr_act, thread_t, task_threads) { 209 if (queue_first(&task->threads) == 0) 211 queue_iterate(&task->threads, thr_act, thread_t, task_threads) {
|
H A D | db_break.c | 159 tp->tb_next = bkpt->threads; 160 bkpt->threads = tp; 175 for (tpp = &bkpt->threads; (tp = *tpp) != 0; tpp = &tp->tb_next) 179 db_free_thread_break_list = bkpt->threads; 180 bkpt->threads = 0; 185 for (tpp = &bkpt->threads; (tp = *tpp) != 0; tpp = &tp->tb_next) 208 for (tp = bkpt->threads; tp; tp = tp->tb_next) { 242 for (tp = bkpt->threads; tp; tp = tp->tb_next) { 288 for (tbp = bkpt->threads; tbp; tbp = tbp_next) { 300 if (bkpt->threads [all...] |
H A D | db_break.h | 88 * Added db_thread_breakpoint structure, and added task and threads 94 * Added db_thread_breakpoint structure, and added task and threads 179 db_thread_breakpoint_t threads; /* thread */ member in struct:db_breakpoint
|
H A D | db_print.c | 403 queue_iterate(&task->threads, thr_act, thread_t, task_threads) { 420 db_printf("no threads\n"); 423 db_printf("%d threads: \n", task->thread_count); 428 queue_iterate(&task->threads, thr_act, 441 thread_t act = (thread_t)queue_first(&task->threads); 906 db_printf("No runnable threads\n");
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/kern/ |
H A D | bsd_kern.c | 105 thread_t thread = (thread_t)queue_first(&task->threads); 107 if (queue_end(&task->threads, (queue_entry_t)thread)) 133 for (inc = (thread_t)queue_first(&task->threads); 134 !queue_end(&task->threads, (queue_entry_t)inc); ) { 181 for (inc = (thread_t)queue_first(&task->threads); 182 !queue_end(&task->threads, (queue_entry_t)inc); ) { 254 for (inc = (thread_t)queue_first(&task->threads); 255 !queue_end(&task->threads, (queue_entry_t)inc); inc = (thread_t)queue_next(&inc->task_threads)) 486 for (inc = (thread_t)queue_first(&task->threads); 487 !queue_end(&task->threads, (queue_entry_ [all...] |
H A D | task.c | 242 queue_iterate(&task->threads, thread, thread_t, task_threads) { 353 queue_init(&new_task->threads); 575 * Indicate that we want all the threads to stop executing 589 queue_iterate(&task->threads, thread, thread_t, task_threads) { 668 * We hold the task, terminate all other threads in the task and 701 * Mark all the threads to keep them from starting any more 709 * Terminate all the other threads in the task. 711 queue_iterate(&task->threads, thread, thread_t, task_threads) { 770 * Iterate through all the threads and hold them. 772 queue_iterate(&task->threads, threa [all...] |
H A D | stack.c | 368 * Return info on stack usage for threads in a specific processor set 427 for (i = 0, thread = (thread_t) queue_first(&threads); 428 !queue_end(&threads, (queue_entry_t) thread); 429 thread = (thread_t) queue_next(&thread->threads)) {
|
H A D | processor.c | 93 queue_head_t threads; variable 124 queue_init(&threads); 643 * newly created and assigned threads. Optionally change existing 690 * Common internals for processor_set_{threads,tasks} 767 for (thread = (thread_t)queue_first(&threads); 768 !queue_end(&threads, (queue_entry_t)thread); 769 thread = (thread_t)queue_next(&thread->threads)) { 876 * List all threads in the processor set.
|
H A D | processor.h | 114 extern queue_head_t tasks, threads;
|
H A D | task_policy.c | 142 queue_iterate(&task->threads, thread, thread_t, task_threads) {
|
H A D | thread.c | 250 "threads"); 416 * Perform final clean up for terminating threads. 441 queue_remove(&task->threads, thread, thread_t, task_threads); 446 queue_remove(&threads, thread, thread_t, threads); 657 queue_enter(&parent_task->threads, new_thread, thread_t, task_threads); 660 /* So terminating threads don't need to take the task lock to decrement */ 663 queue_enter(&threads, new_thread, thread_t, threads); 1072 * Special version of thread_assign for assigning threads t [all...] |
H A D | task.h | 130 queue_head_t threads; member in struct:task 141 integer_t priority; /* base priority for threads */ 142 integer_t max_priority; /* maximum priority for threads */ 149 uint64_t total_user_time; /* terminated threads only */ 275 /* Hold all threads in a task */ 279 /* Release hold on all threads in a task */ 283 /* Halt all other threads in the current task */
|
H A D | thread.h | 62 * This file contains the structure definitions for threads. 266 * - affinity_threads links task threads with the same affinity set 305 queue_chain_t threads; /* global list of all threads */ member in struct:thread
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/chud/ |
H A D | chud_thread.c | 206 for (i = 0, thread = (thread_t)queue_first(&threads); 207 !queue_end(&threads, (queue_entry_t)thread); 208 thread = (thread_t)queue_next(&thread->threads)) { 331 for (thread = (thread_t)queue_first(&task->threads); i < actual; 337 assert(queue_end(&task->threads, (queue_entry_t)thread)); 346 /* no threads, so return null pointer and deallocate memory */
|
/macosx-10.5.8/xnu-1228.15.4/tools/tests/affinity/ |
H A D | pool.c | 32 * queue and multiple threads. The first stage is the producer and subsequent 34 * and M consumer threads. The are B buffers per producer threads circulating 40 * work item, it sets its affinity to this tag. Hence consumer threads migrate 55 int threads; variable 233 if (threads_ready == threads) { 236 printf(" all threads ready for process %d, " 386 * Fire up the worker threads. 388 threads = consumers * (stages - 1) + producers; 410 worker_info = (worker_info_t *) malloc(threads * sizeo [all...] |
H A D | sets.c | 30 * We spin off sets of production line threads (2 sets by default). 31 * All threads of each line sets the same affinity tag (unless disabled). 32 * By default there are 2 stage (worker) threads per production line. 38 * Worker threads process (iterate over) 10000 buffers by default. 41 * to the set number, 1 .. N. So the threads of each set share an L2 cache. 55 int threads; variable 223 if (threads_ready == threads) { 226 printf(" all threads ready for process %d, " 407 * Fire up the worker threads. 409 threads [all...] |
/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/ |
H A D | db_trace.c | 480 act_list = &(current_task()->threads); 487 act_list = &(((task_t)addr)->threads); 490 act_list = &(((thread_t)addr)->task->threads); 503 act_list = &th->task->threads;
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/ |
H A D | PseudoKernel.c | 87 fact = (thread_t)task->threads.next; /* Get the first activation on task */ 224 * The assist code can be called from two types of threads. The blue thread, which handles 225 * traps, system calls and interrupts and preemptive threads that only issue system calls. 358 * Use the new PPCcall method to enable blue box threads 378 * Use the new PPCcall method to disable blue box threads 391 * Search through the list of threads to find the matching taskIDs, then 409 fact = (thread_t)task->threads.next; /* Get the first activation on task */
|
H A D | db_trace.c | 792 act_list = &(current_task()->threads); 800 act_list = &(((task_t)addr)->threads); 804 act_list = &(((thread_act_t)addr)->task->threads); 818 act_list = &th->task->threads;
|
H A D | db_low_trace.c | 677 for(act = (thread_act_t)task->threads.next; act != (thread_act_t)&task->threads; act = (thread_act_t)act->task_threads.next) { /* Go through activations */
|
H A D | vmachmon.c | 525 fact = (thread_t)task->threads.next; /* Get the first activation on task */ 1900 fact = (thread_t)task->threads.next; /* Get the first activation on task */
|
H A D | hw_lock.s | 2236 bl EXT(thread_wakeup) ; wakeup threads
|
H A D | hw_exception.s | 239 * This is also the point where new threads come when they are created. 1766 fcknext: mr. r27,r27 ; (TEST/DEBUG) Any more threads?
|
H A D | hw_vm.s | 4022 ; when switching threads.
|
/macosx-10.5.8/xnu-1228.15.4/osfmk/kdp/ |
H A D | kdp.c | 785 queue_iterate(&task->threads, thread, thread_t, task_threads){
|