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()
2739stackshot_cpu_ctx.scc_stack_buffer = kcdata_endalloc(stackshot_kcdata_p, sizeof(uintptr_t) * MAX_F… in kdp_snapshot_preflight_internal()
2748 stackshot_cpu_ctx = (struct stackshot_cpu_context) { in kdp_snapshot_preflight_internal()
2850 if (stackshot_cpu_ctx.scc_validation_state.last_valid_page_kva == page_addr && in _stackshot_validate_kva()
2851 stackshot_cpu_ctx.scc_validation_state.last_valid_size <= size) { in _stackshot_validate_kva()
2856 stackshot_cpu_ctx.scc_validation_state.last_valid_page_kva = page_addr; in _stackshot_validate_kva()
2857 stackshot_cpu_ctx.scc_validation_state.last_valid_size = size; in _stackshot_validate_kva()
2891 SIZE_EST(size * sizeof(*stackshot_cpu_ctx.scc_plh_gen.pgs_gen) * real_ncpus) + in stackshot_plh_est_size()
2986 struct _stackshot_plh_gen_state *pgs = &stackshot_cpu_ctx.scc_plh_gen; in stackshot_plh_resetgen()
3061 struct _stackshot_plh_gen_state *pgs = &stackshot_cpu_ctx.scc_plh_gen; in stackshot_plh_lookup_locked()
3077 struct _stackshot_plh_gen_state *pgs = &stackshot_cpu_ctx.scc_plh_gen; in kdp_stackshot_plh_record_locked()
4342 saved_count = backtrace_user(stackshot_cpu_ctx.scc_stack_buffer, MAX_FRAMES, &ctl, in kcdata_record_thread_snapshot()
4352 saved_count, stackshot_cpu_ctx.scc_stack_buffer)); in kcdata_record_thread_snapshot()
4372 unsigned int async_count = backtrace_user(stackshot_cpu_ctx.scc_stack_buffer, MAX_FRAMES, &ctl, in kcdata_record_thread_snapshot()
4376 sizeof(uintptr_t), async_count, stackshot_cpu_ctx.scc_stack_buffer)); in kcdata_record_thread_snapshot()
4413 thread, (char*) stackshot_cpu_ctx.scc_stack_buffer, in kcdata_record_thread_snapshot()
4414 (char *) (stackshot_cpu_ctx.scc_stack_buffer + MAX_FRAMES), MAX_FRAMES, in kcdata_record_thread_snapshot()
4433 …info.tei_thread_offset = exclaves_stack_offset(stackshot_cpu_ctx.scc_stack_buffer, saved_count / f… in kcdata_record_thread_snapshot()
4439 frame_size, saved_count / frame_size, stackshot_cpu_ctx.scc_stack_buffer)); in kcdata_record_thread_snapshot()
4903 (char*) stackshot_cpu_ctx.scc_stack_buffer, TASK_IMP_WALK_LIMIT); in kdp_stackshot_record_task()
4908 sizeof(int32_t), saved_count, stackshot_cpu_ctx.scc_stack_buffer)); in kdp_stackshot_record_task()
5054 stackshot_cpu_ctx.scc_did_work = true; in kdp_stackshot_kcdata_format()
5098 stackshot_ctx.sc_pretask_kcdata = stackshot_cpu_ctx.scc_kcdata_head; in kdp_stackshot_kcdata_format()
5268 stackshot_ctx.sc_posttask_kcdata = stackshot_cpu_ctx.scc_kcdata_head; in kdp_stackshot_kcdata_format()
5398 *stackshot_kcdata_p = stackshot_cpu_ctx.scc_kcdata_tail->kcdata; in kdp_stackshot_kcdata_format()
5513 if (stackshot_cpu_ctx.scc_fault_stats.sfs_stopped_faulting) { in stackshot_find_phys()
5523 stackshot_cpu_ctx.scc_fault_stats.sfs_time_spent_faulting += fault_results.time_spent_faulting; in stackshot_find_phys()
5529 …if ((stackshot_cpu_ctx.scc_fault_stats.sfs_time_spent_faulting >= stackshot_max_fault_time) && !st… in stackshot_find_phys()
5530 stackshot_cpu_ctx.scc_fault_stats.sfs_stopped_faulting = (uint8_t) TRUE; in stackshot_find_phys()
5535 stackshot_cpu_ctx.scc_fault_stats.sfs_pages_faulted_in++; in stackshot_find_phys()
5621 stackshot_cpu_ctx.scc_can_work = true; in do_stackshot()
5630 } else if (stackshot_cpu_ctx.scc_can_work) { in do_stackshot()
5638 if (stackshot_cpu_ctx.scc_can_work) { in do_stackshot()
5640 stackshot_cpu_ctx.scc_can_work = false; in do_stackshot()
5767 stackshot_cpu_ctx.scc_did_work = false; in stackshot_cpu_preflight()
5768stackshot_cpu_ctx.scc_can_work = is_calling_cpu || (is_recommended && !stackshot_ctx.sc_is_singlet… in stackshot_cpu_preflight()
5770 if (stackshot_cpu_ctx.scc_can_work) { in stackshot_cpu_preflight()
5790 cur_workitemp->sswi_data = stackshot_cpu_ctx.scc_kcdata_head; in stackshot_cpu_work_on_queue()
5813 stackshot_cpu_ctx.scc_stack_buffer = stackshot_alloc_arr(uintptr_t, MAX_FRAMES, &error); in stackshot_cpu_do_work()
5873 if (!stackshot_cpu_ctx.scc_can_work) { in stackshot_aux_cpu_entry()
5888 stackshot_cpu_ctx.scc_did_work = true; in stackshot_aux_cpu_entry()