• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/xnu-2782.1.97/osfmk/kern/

Lines Matching refs:thread

76 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)
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();
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->ast);
449 void telemetry_ast(thread_t thread, boolean_t interrupted_userspace, boolean_t is_windowed)
457 telemetry_take_sample(thread, microsnapshot_flags, &window_buffer);
459 telemetry_take_sample(thread, microsnapshot_flags, &telemetry_buffer);
463 void telemetry_take_sample(thread_t thread, uint8_t microsnapshot_flags, struct micro_snapshot_buffer * current_buffer)
480 if (thread == THREAD_NULL)
483 task = thread->task;
509 ctx.cur_thread = thread;
585 uint32_t uuid_info_size = (uint32_t)(task_has_64BitAddr(thread->task) ? sizeof(struct user64_dyld_uuid_info) : sizeof(struct user32_dyld_uuid_info));
611 uint64_t dqkeyaddr = thread_dispatchqaddr(thread);
729 if (task_has_64BitAddr(thread->task)) {
765 * After the task snapshot & list of binary UUIDs, we place a thread snapshot.
783 thsnap->thread_id = thread_tid(thread);
784 thsnap->state = thread->state;
785 thsnap->priority = thread->priority;
786 thsnap->sched_pri = thread->sched_pri;
787 thsnap->sched_flags = thread->sched_flags;
789 thsnap->ts_qos = thread->effective_policy.thep_qos;
791 if (thread->effective_policy.darwinbg) {
795 thsnap->user_time = timer_grab(&thread->user_timer);
797 uint64_t tval = timer_grab(&thread->system_timer);
799 if (thread->precise_user_kernel_time) {
809 * If this thread has a dispatch queue serial number, include it here.