Lines Matching refs:stackshot_cpu_ctx
385 #define stackshot_cpu_ctx (*PERCPU_GET(stackshot_cpu_ctx_percpu)) macro
600 if (stackshot_cpu_ctx.scc_can_work) { in stackshot_panic_spin()
601 stackshot_cpu_ctx.scc_can_work = false; in stackshot_panic_spin()
648 if (stackshot_cpu_ctx.scc_can_work) { in stackshot_cpu_signal_panic()
649 stackshot_cpu_ctx.scc_can_work = false; in stackshot_cpu_signal_panic()
1029 stackshot_cpu_ctx.scc_kcdata_tail->kcdata = *descriptor; in linked_kcdata_alloc_callback()
1044 stackshot_cpu_ctx.scc_kcdata_tail->next = new_kcdata; in linked_kcdata_alloc_callback()
1045 stackshot_cpu_ctx.scc_kcdata_tail = new_kcdata; in linked_kcdata_alloc_callback()
1064 stackshot_cpu_ctx.scc_kcdata_head = stackshot_alloc(struct linked_kcdata_descriptor, &error); in stackshot_new_linked_kcdata()
1069 kcd_exit_on_error(linked_kcdata_init(stackshot_cpu_ctx.scc_kcdata_head, 0, in stackshot_new_linked_kcdata()
1073 stackshot_cpu_ctx.scc_kcdata_tail = stackshot_cpu_ctx.scc_kcdata_head; in stackshot_new_linked_kcdata()
1074 *stackshot_kcdata_p = stackshot_cpu_ctx.scc_kcdata_head->kcdata; in stackshot_new_linked_kcdata()
1090 if (stackshot_cpu_ctx.scc_kcdata_tail != NULL) { in stackshot_finalize_linked_kcdata()
1091 stackshot_cpu_ctx.scc_kcdata_tail->kcdata = *stackshot_kcdata_p; in stackshot_finalize_linked_kcdata()
2756 …stackshot_cpu_ctx.scc_stack_buffer = kcdata_endalloc(stackshot_kcdata_p, sizeof(uintptr_t) * MAX_F… in kdp_snapshot_preflight_internal()
2765 stackshot_cpu_ctx = (struct stackshot_cpu_context) { in kdp_snapshot_preflight_internal()
2867 if (stackshot_cpu_ctx.scc_validation_state.last_valid_page_kva == page_addr && in _stackshot_validate_kva()
2868 stackshot_cpu_ctx.scc_validation_state.last_valid_size <= size) { in _stackshot_validate_kva()
2873 stackshot_cpu_ctx.scc_validation_state.last_valid_page_kva = page_addr; in _stackshot_validate_kva()
2874 stackshot_cpu_ctx.scc_validation_state.last_valid_size = size; in _stackshot_validate_kva()
2908 SIZE_EST(size * sizeof(*stackshot_cpu_ctx.scc_plh_gen.pgs_gen) * real_ncpus) + in stackshot_plh_est_size()
3003 struct _stackshot_plh_gen_state *pgs = &stackshot_cpu_ctx.scc_plh_gen; in stackshot_plh_resetgen()
3078 struct _stackshot_plh_gen_state *pgs = &stackshot_cpu_ctx.scc_plh_gen; in stackshot_plh_lookup_locked()
3094 struct _stackshot_plh_gen_state *pgs = &stackshot_cpu_ctx.scc_plh_gen; in kdp_stackshot_plh_record_locked()
4365 saved_count = backtrace_user(stackshot_cpu_ctx.scc_stack_buffer, MAX_FRAMES, &ctl, in kcdata_record_thread_snapshot()
4375 saved_count, stackshot_cpu_ctx.scc_stack_buffer)); in kcdata_record_thread_snapshot()
4395 unsigned int async_count = backtrace_user(stackshot_cpu_ctx.scc_stack_buffer, MAX_FRAMES, &ctl, in kcdata_record_thread_snapshot()
4399 sizeof(uintptr_t), async_count, stackshot_cpu_ctx.scc_stack_buffer)); in kcdata_record_thread_snapshot()
4436 thread, (char*) stackshot_cpu_ctx.scc_stack_buffer, in kcdata_record_thread_snapshot()
4437 (char *) (stackshot_cpu_ctx.scc_stack_buffer + MAX_FRAMES), MAX_FRAMES, in kcdata_record_thread_snapshot()
4456 …info.tei_thread_offset = exclaves_stack_offset(stackshot_cpu_ctx.scc_stack_buffer, saved_count / f… in kcdata_record_thread_snapshot()
4462 frame_size, saved_count / frame_size, stackshot_cpu_ctx.scc_stack_buffer)); in kcdata_record_thread_snapshot()
4926 (char*) stackshot_cpu_ctx.scc_stack_buffer, TASK_IMP_WALK_LIMIT); in kdp_stackshot_record_task()
4931 sizeof(int32_t), saved_count, stackshot_cpu_ctx.scc_stack_buffer)); in kdp_stackshot_record_task()
5077 stackshot_cpu_ctx.scc_did_work = true; in kdp_stackshot_kcdata_format()
5121 stackshot_ctx.sc_pretask_kcdata = stackshot_cpu_ctx.scc_kcdata_head; in kdp_stackshot_kcdata_format()
5291 stackshot_ctx.sc_posttask_kcdata = stackshot_cpu_ctx.scc_kcdata_head; in kdp_stackshot_kcdata_format()
5421 *stackshot_kcdata_p = stackshot_cpu_ctx.scc_kcdata_tail->kcdata; in kdp_stackshot_kcdata_format()
5536 if (stackshot_cpu_ctx.scc_fault_stats.sfs_stopped_faulting) { in stackshot_find_phys()
5546 stackshot_cpu_ctx.scc_fault_stats.sfs_time_spent_faulting += fault_results.time_spent_faulting; in stackshot_find_phys()
5552 …if ((stackshot_cpu_ctx.scc_fault_stats.sfs_time_spent_faulting >= stackshot_max_fault_time) && !st… in stackshot_find_phys()
5553 stackshot_cpu_ctx.scc_fault_stats.sfs_stopped_faulting = (uint8_t) TRUE; in stackshot_find_phys()
5558 stackshot_cpu_ctx.scc_fault_stats.sfs_pages_faulted_in++; in stackshot_find_phys()
5644 stackshot_cpu_ctx.scc_can_work = true; in do_stackshot()
5653 } else if (stackshot_cpu_ctx.scc_can_work) { in do_stackshot()
5661 if (stackshot_cpu_ctx.scc_can_work) { in do_stackshot()
5663 stackshot_cpu_ctx.scc_can_work = false; in do_stackshot()
5790 stackshot_cpu_ctx.scc_did_work = false; in stackshot_cpu_preflight()
5791 …stackshot_cpu_ctx.scc_can_work = is_calling_cpu || (is_recommended && !stackshot_ctx.sc_is_singlet… in stackshot_cpu_preflight()
5793 if (stackshot_cpu_ctx.scc_can_work) { in stackshot_cpu_preflight()
5813 cur_workitemp->sswi_data = stackshot_cpu_ctx.scc_kcdata_head; in stackshot_cpu_work_on_queue()
5836 stackshot_cpu_ctx.scc_stack_buffer = stackshot_alloc_arr(uintptr_t, MAX_FRAMES, &error); in stackshot_cpu_do_work()
5896 if (!stackshot_cpu_ctx.scc_can_work) { in stackshot_aux_cpu_entry()
5911 stackshot_cpu_ctx.scc_did_work = true; in stackshot_aux_cpu_entry()