Lines Matching defs:context
41 #include <kperf/context.h>
73 kperf_threadinfo_sample(struct threadinfo *ti, struct kperf_context *context)
75 thread_t cur_thread = context->cur_thread;
79 ti->pid = context->cur_pid;
93 /* 'extra' thread-info functions that are deferred 'til thread-context
97 kperf_threadinfo_extra_sample(struct tinfo_ex *tex, struct kperf_context *context)
99 thread_t cur_thread = context->cur_thread;
120 proc_name( context->cur_pid,
150 kperf_threadinfo_extra_pend(struct kperf_context *context)
152 return kperf_ast_pend( context->cur_thread, T_NAME_DONE | T_AST_NAME,
163 context->timeStamp = mach_absolute_time();
164 context->cpuNum = chudxnu_cpu_number();
166 // record the process info from the callback context
167 context->pid = chudxnu_current_pid();
168 threadInfo->pid = context->generic->pid;
171 context->threadID = chudxnu_current_thread();
172 threadInfo->tid = thread_tid(context->generic->threadID);
175 threadInfo->dispatch_queue_addr = thread_dispatchqaddr(context->generic->threadID);
178 threadInfo->runMode = AppleProfileGetRunModeOfThread(context->generic->threadID);