Lines Matching refs:bytes_traced
1189 …e, uint64_t flags, uint64_t delta_since_timestamp, uint32_t pagetable_mask, unsigned *bytes_traced) in stack_snapshot_from_kernel() argument
1209 if ((buf == NULL) || (size <= 0) || (bytes_traced == NULL)) { in stack_snapshot_from_kernel()
1323 *bytes_traced = kdp_stack_snapshot_bytes_traced(); in stack_snapshot_from_kernel()
1326 error, (time_end - time_start), size, *bytes_traced); in stack_snapshot_from_kernel()
1337 uint32_t bytes_traced = 0; in stack_microstackshot() local
1368 bytes_traced = tracebuf_size; in stack_microstackshot()
1369 error = telemetry_kernel_gather(tracebuf, &bytes_traced); in stack_microstackshot()
1370 *retval = (int)bytes_traced; in stack_microstackshot()
1378 bytes_traced = tracebuf_size; in stack_microstackshot()
1379 error = telemetry_gather(tracebuf, &bytes_traced, set_mark); in stack_microstackshot()
1380 *retval = (int)bytes_traced; in stack_microstackshot()
1931 stackshot_remap_buffer(void *stackshotbuf, uint32_t bytes_traced, uint64_t out_buffer_addr, uint64_… in stackshot_remap_buffer() argument
1937 error = mach_vm_remap(current_map(), &stackshotbuf_user_addr, bytes_traced, 0, in stackshot_remap_buffer()
1960 …_vm_deallocate(get_task_map(current_task()), stackshotbuf_user_addr, (mach_vm_size_t)bytes_traced); in stackshot_remap_buffer()
1963 error = copyout(&bytes_traced, (user_addr_t)out_size_addr, sizeof(bytes_traced)); in stackshot_remap_buffer()
1965 …_vm_deallocate(get_task_map(current_task()), stackshotbuf_user_addr, (mach_vm_size_t)bytes_traced); in stackshot_remap_buffer()
2360 uint32_t bytes_traced = 0; in kern_stack_snapshot_internal() local
2681 bytes_traced = kdp_stack_snapshot_bytes_traced(); in kern_stack_snapshot_internal()
2682 if (bytes_traced <= 0) { in kern_stack_snapshot_internal()
2688 …error = stackshot_remap_buffer(snapshot_args.buffer, bytes_traced, out_buffer_addr, out_size_addr); in kern_stack_snapshot_internal()
2696 …t: succeeded, traced %u bytes to %u buffer (estimate %u) try %llu\n", bytes_traced, snapshot_args.… in kern_stack_snapshot_internal()
2703 kernel_stackshot_buf_size = bytes_traced; in kern_stack_snapshot_internal()
2709 size_to_free = snapshot_args.buffer_size - (int) VM_MAP_ROUND_PAGE(bytes_traced, PAGE_MASK); in kern_stack_snapshot_internal()
2725 error, tot_interrupts_off_abs, snapshot_args.buffer_size, bytes_traced); in kern_stack_snapshot_internal()