Lines Matching refs:context

193 kperf_continuation_sample(struct kp_kcallstack *cs, struct kperf_context *context)  in kperf_continuation_sample()  argument
198 assert(context != NULL); in kperf_continuation_sample()
200 thread = context->cur_thread; in kperf_continuation_sample()
214 kperf_backtrace_sample(struct kp_kcallstack *cs, struct kperf_context *context) in kperf_backtrace_sample() argument
217 assert(context != NULL); in kperf_backtrace_sample()
218 assert(context->cur_thread == current_thread()); in kperf_backtrace_sample()
229 .btc_frame_addr = (uintptr_t)context->starting_fp, in kperf_backtrace_sample()
238 if ((context->cur_thread->th_exclaves_state & TH_EXCLAVES_RPC) != 0) { in kperf_backtrace_sample()
262 kperf_kcallstack_sample(struct kp_kcallstack *cs, struct kperf_context *context) in kperf_kcallstack_sample() argument
267 assert(context != NULL); in kperf_kcallstack_sample()
270 thread = context->cur_thread; in kperf_kcallstack_sample()
328 kperf_ucallstack_sample(struct kp_ucallstack *cs, struct kperf_context *context) in kperf_ucallstack_sample() argument
332 thread_t thread = context->cur_thread; in kperf_ucallstack_sample()
494 kperf_exclave_callstack_pend(struct kperf_context *context, unsigned int actionid) in kperf_exclave_callstack_pend() argument
496 if ((context->cur_thread->th_exclaves_state & TH_EXCLAVES_RPC) in kperf_exclave_callstack_pend()
497 …&& (os_atomic_load(&context->cur_thread->th_exclaves_inspection_state, relaxed) & TH_EXCLAVES_INSP… in kperf_exclave_callstack_pend()
498 …os_atomic_or(&context->cur_thread->th_exclaves_inspection_state, TH_EXCLAVES_INSPECTION_KPERF, rel… in kperf_exclave_callstack_pend()
499 context->cur_thread->kperf_exclaves_ast |= T_KPERF_SET_ACTIONID(actionid); in kperf_exclave_callstack_pend()
507 kperf_ucallstack_pend(struct kperf_context * context, uint32_t depth, in kperf_ucallstack_pend() argument
513 kperf_ast_set_callstack_depth(context->cur_thread, depth); in kperf_ucallstack_pend()
514 return kperf_ast_pend(context->cur_thread, T_KPERF_AST_CALLSTACK, in kperf_ucallstack_pend()