Lines Matching refs:bytes_traced
1174 …e, uint64_t flags, uint64_t delta_since_timestamp, uint32_t pagetable_mask, unsigned *bytes_traced) in stack_snapshot_from_kernel() argument
1194 if ((buf == NULL) || (size <= 0) || (bytes_traced == NULL)) { in stack_snapshot_from_kernel()
1305 *bytes_traced = kdp_stack_snapshot_bytes_traced(); in stack_snapshot_from_kernel()
1308 error, (time_end - time_start), size, *bytes_traced); in stack_snapshot_from_kernel()
1319 uint32_t bytes_traced = 0; in stack_microstackshot() local
1352 bytes_traced = tracebuf_size; in stack_microstackshot()
1353 error = telemetry_gather(tracebuf, &bytes_traced, in stack_microstackshot()
1355 *retval = (int)bytes_traced; in stack_microstackshot()
1875 stackshot_remap_buffer(void *stackshotbuf, uint32_t bytes_traced, uint64_t out_buffer_addr, uint64_… in stackshot_remap_buffer() argument
1881 error = mach_vm_remap(current_map(), &stackshotbuf_user_addr, bytes_traced, 0, in stackshot_remap_buffer()
1904 …_vm_deallocate(get_task_map(current_task()), stackshotbuf_user_addr, (mach_vm_size_t)bytes_traced); in stackshot_remap_buffer()
1907 error = copyout(&bytes_traced, (user_addr_t)out_size_addr, sizeof(bytes_traced)); in stackshot_remap_buffer()
1909 …_vm_deallocate(get_task_map(current_task()), stackshotbuf_user_addr, (mach_vm_size_t)bytes_traced); in stackshot_remap_buffer()
2288 uint32_t bytes_traced = 0; in kern_stack_snapshot_internal() local
2596 bytes_traced = kdp_stack_snapshot_bytes_traced(); in kern_stack_snapshot_internal()
2597 if (bytes_traced <= 0) { in kern_stack_snapshot_internal()
2603 …error = stackshot_remap_buffer(snapshot_args.buffer, bytes_traced, out_buffer_addr, out_size_addr); in kern_stack_snapshot_internal()
2611 …t: succeeded, traced %u bytes to %u buffer (estimate %u) try %llu\n", bytes_traced, snapshot_args.… in kern_stack_snapshot_internal()
2618 kernel_stackshot_buf_size = bytes_traced; in kern_stack_snapshot_internal()
2624 size_to_free = snapshot_args.buffer_size - (int) VM_MAP_ROUND_PAGE(bytes_traced, PAGE_MASK); in kern_stack_snapshot_internal()
2640 error, tot_interrupts_off_abs, snapshot_args.buffer_size, bytes_traced); in kern_stack_snapshot_internal()