Searched refs:thread (Results 76 - 100 of 260) sorted by relevance

1234567891011

/xnu-2782.1.97/bsd/kern/
H A Dmach_loader.c71 #include <kern/thread.h>
126 thread_t thread,
181 thread_t thread,
189 thread_t thread,
196 thread_t thread,
203 thread_t thread,
212 thread_t thread,
223 thread_t thread,
291 thread_t thread,
333 old_task = get_threadtask(thread);
288 load_machfile( struct image_params *imgp, struct mach_header *header, thread_t thread, vm_map_t new_map, load_result_t *result ) argument
485 parse_machfile( struct vnode *vp, vm_map_t map, thread_t thread, struct mach_header *header, off_t file_offset, off_t macho_size, int depth, int64_t aslr_offset, int64_t dyld_aslr_offset, load_result_t *result ) argument
1155 load_main( struct entry_point_command *epc, thread_t thread, int64_t slide, load_result_t *result ) argument
1212 load_unixthread( struct thread_command *tcp, thread_t thread, int64_t slide, load_result_t *result ) argument
1283 load_threadstate( thread_t thread, uint32_t *ts, uint32_t total_size ) argument
1329 load_threadstack( thread_t thread, uint32_t *ts, uint32_t total_size, mach_vm_offset_t *user_stack, int *customstack ) argument
1369 load_threadentry( thread_t thread, uint32_t *ts, uint32_t total_size, mach_vm_offset_t *entry_point ) argument
1419 load_dylinker( struct dylinker_command *lcp, integer_t archbits, vm_map_t map, thread_t thread, int depth, int64_t slide, load_result_t *result ) argument
[all...]
H A Dmach_loader.h79 thread_t thread,
/xnu-2782.1.97/osfmk/kern/
H A Dtelemetry.c76 void telemetry_take_sample(thread_t thread, uint8_t microsnapshot_flags, struct micro_snapshot_buffer * current_buffer);
331 * Determine if the current thread is eligible for telemetry:
338 telemetry_is_active(thread_t thread) argument
344 if ((telemetry_active_tasks > 0) && ((thread->task->t_flags & TF_TELEMETRY) != 0)) {
367 * Mark the current thread for an interrupt-based
373 thread_t thread = current_thread(); local
376 * If telemetry isn't active for this thread, return and try
379 if (telemetry_is_active(thread) == FALSE) {
391 thread_ast_set(thread, ast_bits);
392 ast_propagate(thread
449 telemetry_ast(thread_t thread, boolean_t interrupted_userspace, boolean_t is_windowed) argument
463 telemetry_take_sample(thread_t thread, uint8_t microsnapshot_flags, struct micro_snapshot_buffer * current_buffer) argument
[all...]
H A Dmachine.h87 thread_t thread,
H A Dprocessor.c75 #include <kern/thread.h>
441 thread_t thread; local
476 * Create the idle processor thread.
492 * If there is no active thread, the processor
494 * start up thread.
498 result = kernel_thread_create((thread_continue_t)processor_start_thread, NULL, MAXPRI_KERNEL, &thread);
510 thread_lock(thread);
511 thread->bound_processor = processor;
512 processor->next_thread = thread;
513 thread
881 thread_t thread, *thread_list = (thread_t *)addr; local
[all...]
H A Dtelemetry.h35 #include <kern/thread.h>
H A Dtimer.h72 * at key points in the thread structure (when the thread is locked and
78 * thread must be locked, or be the current executing thread, so that
80 * thread-local value (or in kernel debugger context). In the future,
81 * we make take into account task-level or thread-level policy.
83 #define use_precise_user_kernel_time(thread) ( precise_user_kernel_time )
123 /* Update the thread timer at an event */
H A Dsync_sema.c52 #include <kern/thread.h>
104 thread_t thread,
301 thread_t thread,
316 if (thread != THREAD_NULL) {
321 thread,
377 * If the specified thread is blocked on the semaphore, it is
378 * woken up. If a NULL thread was supplied, then any one
379 * thread is woken up. Otherwise the caller gets KERN_NOT_WAITING
385 thread_t thread)
393 thread,
299 semaphore_signal_internal( semaphore_t semaphore, thread_t thread, int options) argument
383 semaphore_signal_thread( semaphore_t semaphore, thread_t thread) argument
410 thread_t thread; local
[all...]
H A Dtask.h149 #include <kern/thread.h>
265 #define TF_CPUMON_WARNING 0x00000004 /* task has at least one thread in CPU usage warning zone */
299 uint8_t rusage_cpu_perthr_percentage; /* Per-thread CPU limit percentage */
300 uint64_t rusage_cpu_perthr_interval; /* Per-thread CPU limit interval */
556 extern kern_return_t check_actforsig(task_t task, thread_t thread, int setast);
614 /* internal or external, thread or task */
641 /* thread-only attributes */
651 extern void proc_set_task_policy(task_t task, thread_t thread, int category, int flavor, int value);
652 extern int proc_get_task_policy(task_t task, thread_t thread, int category, int flavor);
655 extern void proc_set_task_policy2(task_t task, thread_t thread, in
[all...]
H A Dwait_queue.h110 * queue. It is the common first fields in a thread shuttle
112 * consist of both thread shuttle elements and links off of
115 * WARNING: These fields correspond to fields in the thread
121 void * wqe_type; /* Identifies link vs. thread */
131 * can be constructed so that any thread waiting on any number
133 * the thread only be linked on the single wait queue it blocked on.
135 * One use: ports in multiple portsets. Each thread is queued up
139 * with that port may wake up any thread from any of those portsets,
179 * a problem with a thread lock, it normally times out at the wait
217 #define wait_queue_assert_possible(thread) \
[all...]
H A Dkpc.h74 /* Read current thread's counter accumulations */
81 /* enable/disable thread counting */
97 /* hooks on thread create and delete */
98 extern void kpc_thread_create(thread_t thread);
99 extern void kpc_thread_destroy(thread_t thread);
109 extern void kpc_thread_ast_handler( thread_t thread );
/xnu-2782.1.97/tools/lldbmacros/
H A Dprocess.py220 @lldb_type_summary(['thread *', 'thread_t'])
221 @header("{0: <24s} {1: <10s} {2: <20s} {3: <6s} {4: <6s} {5: <15s} {6: <15s} {7: <8s} {8: <12s} {9: <32s} {10: <20s} {11: <20s} {12: <20s}".format('thread', 'thread_id', 'processor', 'base', 'pri', 'sched_mode', 'io_policy', 'state', 'ast', 'wait_queue', 'wait_event', 'wmesg', 'thread_name'))
222 def GetThreadSummary(thread):
223 """ Summarize the thread structure. It decodes the wait state and waitevents from the data in the struct.
224 params: thread: value - value objecte representing a thread in kernel
225 returns: str - summary of a thread
234 I - Idle thread
245 thread_ptr_str = str("{0: <#020x}".format(thread))
246 if int(thread
[all...]
H A Dmisc.py162 associated with each thread, timer time-to-deadline frequencies, and
163 CPU time with user/system break down where applicable, with thread tags.
168 print '{:d}({:s}), terminated thread timer wakeups: {:d} {:d} 2ms: {:d} 5ms: {:d} UT: {:d} ST: {:d}'.format(
180 for thread in IterateQueue(task.threads, 'thread_t', 'task_threads'):
181 # if thread.thread_interrupt_wakeups == 0:
184 thread.thread_id,
185 thread.thread_tag,
186 0, #thread.thread_interrupt_wakeups,
187 0, #thread.thread_platform_idle_wakeups,
188 0, #thread
[all...]
/xnu-2782.1.97/bsd/sys/
H A Daio_kern.h56 thread_t thread; /* thread that queued this request */ member in struct:aio_workq_entry
H A Dsignalvar.h117 * Check for per-process and per thread signals.
126 * Check for signals and per-thread signals.
130 #define CHECK_SIGNALS(p, thread, uthreadp) \
131 (!thread_should_halt(thread) \
195 void execsigs(struct proc *p, thread_t thread);
220 void psignal_vfork(struct proc *p, task_t new_task, thread_t thread,
H A Dubc.h69 struct thread;
70 int ubc_setthreadcred(struct vnode *, struct proc *, struct thread *);
/xnu-2782.1.97/iokit/IOKit/
H A Dsystem.h50 #include <kern/thread.h>
/xnu-2782.1.97/osfmk/kdp/ml/x86_64/
H A Dkdp_vm.c38 #include <i386/thread.h>
60 kern_collectth_state(thread_t thread, void *buffer, size_t size) argument
67 * Fill in thread command structure.
80 * the appropriate thread state struct for each
81 * thread state flavor.
97 * for this kernel thread. This should ideally be
108 if ((current_thread() == thread) && (cpstate != NULL)) {
130 } else if ((kstack = thread->kernel_stack) != 0){
H A Dkdp_machdep.c44 #include <kern/thread.h>
45 #include <i386/thread.h>
72 machine_trace_thread(thread_t thread, char *tracepos, char *tracebound, int nframes, boolean_t user_p);
75 machine_trace_thread64(thread_t thread, char *tracepos, char *tracebound, int nframes, boolean_t user_p);
513 machine_trace_thread(thread_t thread, char *tracepos, char *tracebound, int nframes, boolean_t user_p) argument
528 iss32 = USER_REGS32(thread);
533 kdp_pmap = thread->task->map->pmap;
602 machine_trace_thread64(thread_t thread, char *tracepos, char *tracebound, int nframes, boolean_t user_p) argument
615 iss64 = USER_REGS64(thread);
618 kdp_pmap = thread
[all...]
/xnu-2782.1.97/osfmk/mach/
H A Dsemaphore.h92 thread_t thread);
109 thread_t thread);
/xnu-2782.1.97/osfmk/chud/i386/
H A Dchud_osfmk_callback_i386.c38 #include <kern/thread.h>
250 thread_t thread = current_thread(); local
255 if(thread->t_chud & T_IN_CHUD) {
263 thread->t_chud |= T_IN_CHUD;
267 if(chudxnu_thread_get_state(thread,
281 thread->t_chud &= ~(T_IN_CHUD);
359 thread_t thread = current_thread(); local
361 if (KERN_SUCCESS == chudxnu_thread_get_state(thread,
365 (thread->task != kernel_task))) {
/xnu-2782.1.97/bsd/dev/i386/
H A Ddtrace_isa.c30 #include <kern/thread.h>
414 thread_t thread = current_thread(); local
431 if (thread == NULL)
434 pal_register_cache_state(thread, VALID);
435 regs = (x86_saved_state_t *)find_user_regs(thread);
486 thread_t thread = current_thread(); local
492 if (thread == NULL)
498 pal_register_cache_state(thread, VALID);
499 regs = (x86_saved_state_t *)find_user_regs(thread);
539 thread_t thread local
[all...]
H A Dunix_signal.c39 #include <kern/thread.h>
68 extern kern_return_t thread_setstatus(thread_t thread, int flavor,
161 thread_t thread; local
167 thread = current_thread();
168 ut = get_bsdthread_info(thread);
195 if (thread_getstatus(thread, flavor, (thread_state_t)state, &state_count) != KERN_SUCCESS)
207 if (thread_getstatus(thread, flavor, (thread_state_t)state, &state_count) != KERN_SUCCESS)
213 if (thread_getstatus(thread, flavor, (thread_state_t)state, &state_count) != KERN_SUCCESS)
308 if (thread_getstatus(thread, flavor, (thread_state_t)state, &state_count) != KERN_SUCCESS)
321 if (thread_getstatus(thread, flavo
655 thread_t thread = current_thread(); local
[all...]
/xnu-2782.1.97/tools/tests/MPMMTest/
H A DMPMMtest.c609 thread_spawn(thread_id_t *thread, void *(fn)(void *), void *arg) { argument
613 &thread->tid,
620 printf("created pthread %p\n", thread->tid);
622 thread->pid = fork();
623 if (thread->pid == 0) {
630 printf("forked pid %d\n", thread->pid);
635 thread_join(thread_id_t *thread) { argument
639 printf("joining thread %p\n", thread->tid);
640 ret = pthread_join(thread
[all...]
/xnu-2782.1.97/osfmk/bank/
H A Dbank_internal.h37 #include <kern/thread.h>
159 extern void bank_swap_thread_bank_ledger(thread_t thread, ledger_t ledger);

Completed in 105 milliseconds

1234567891011