Lines Matching refs:bytes_traced
1183 …e, uint64_t flags, uint64_t delta_since_timestamp, uint32_t pagetable_mask, unsigned *bytes_traced) in stack_snapshot_from_kernel() argument
1203 if ((buf == NULL) || (size <= 0) || (bytes_traced == NULL)) { in stack_snapshot_from_kernel()
1317 *bytes_traced = kdp_stack_snapshot_bytes_traced(); in stack_snapshot_from_kernel()
1320 error, (time_end - time_start), size, *bytes_traced); in stack_snapshot_from_kernel()
1331 uint32_t bytes_traced = 0; in stack_microstackshot() local
1362 bytes_traced = tracebuf_size; in stack_microstackshot()
1363 error = telemetry_kernel_gather(tracebuf, &bytes_traced); in stack_microstackshot()
1364 *retval = (int)bytes_traced; in stack_microstackshot()
1372 bytes_traced = tracebuf_size; in stack_microstackshot()
1373 error = telemetry_gather(tracebuf, &bytes_traced, set_mark); in stack_microstackshot()
1374 *retval = (int)bytes_traced; in stack_microstackshot()
1920 stackshot_remap_buffer(void *stackshotbuf, uint32_t bytes_traced, uint64_t out_buffer_addr, uint64_… in stackshot_remap_buffer() argument
1926 error = mach_vm_remap(current_map(), &stackshotbuf_user_addr, bytes_traced, 0, in stackshot_remap_buffer()
1949 …_vm_deallocate(get_task_map(current_task()), stackshotbuf_user_addr, (mach_vm_size_t)bytes_traced); in stackshot_remap_buffer()
1952 error = copyout(&bytes_traced, (user_addr_t)out_size_addr, sizeof(bytes_traced)); in stackshot_remap_buffer()
1954 …_vm_deallocate(get_task_map(current_task()), stackshotbuf_user_addr, (mach_vm_size_t)bytes_traced); in stackshot_remap_buffer()
2349 uint32_t bytes_traced = 0; in kern_stack_snapshot_internal() local
2670 bytes_traced = kdp_stack_snapshot_bytes_traced(); in kern_stack_snapshot_internal()
2671 if (bytes_traced <= 0) { in kern_stack_snapshot_internal()
2677 …error = stackshot_remap_buffer(snapshot_args.buffer, bytes_traced, out_buffer_addr, out_size_addr); in kern_stack_snapshot_internal()
2685 …t: succeeded, traced %u bytes to %u buffer (estimate %u) try %llu\n", bytes_traced, snapshot_args.… in kern_stack_snapshot_internal()
2692 kernel_stackshot_buf_size = bytes_traced; in kern_stack_snapshot_internal()
2698 size_to_free = snapshot_args.buffer_size - (int) VM_MAP_ROUND_PAGE(bytes_traced, PAGE_MASK); in kern_stack_snapshot_internal()
2714 error, tot_interrupts_off_abs, snapshot_args.buffer_size, bytes_traced); in kern_stack_snapshot_internal()