Lines Matching refs:logv
94 #define logv(format, ...) \ macro
1074 logv( in set_up_vm_address()
1083 logv("Found %saligned fixed address 0x%jx.", aligned ? "" : "un", (uintmax_t)address); in set_up_vm_address()
1166 logv("Allocating 0x%jx (%ju) byte%s", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in allocate()
1168 logv(" at address 0x%jx", (uintmax_t)address); in allocate()
1170 logv("..."); in allocate()
1172 logv( in allocate()
1181 logv( in allocate()
1194 …logv("Allocating 0x%jx (%ju) byte%s...", (uintmax_t)buffer_size, (uintmax_t)buffer_size, (buffer_s… in allocate_buffer()
1196 logv( in allocate_buffer()
1277 …logv("Deallocating 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (siz… in deallocate_range()
1321 …logv("Reading 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in read_deallocate()
1324 logv( in read_deallocate()
1368 logv( in write_buffer()
1373 logv("Buffer written."); in write_buffer()
1396 …logv("Copying 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in copy_deallocate()
1399 logv( in copy_deallocate()
1425 logv( in copy_region()
1430 logv("Buffer written."); in copy_region()
1462 logv( in set_up_vm_variables_allocate_protect()
1467 logv("Region %s-protected.", protection_name); in set_up_vm_variables_allocate_protect()
1495 logv("Address 0x%jx is %szero as expected.", (uintmax_t)address, size ? "non" : ""); in test_nonzero_address_iff_nonzero_size()
1505 logv("Address 0x%jx is aligned.", (uintmax_t)address); in test_aligned_address()
1516 logv( in verify_pattern()
1521 logv("Pattern verified."); in verify_pattern()
1528 logv( in write_pattern()
1533 logv("Pattern writen."); in write_pattern()
1540 logv( in write_and_verify_pattern()
1546 logv("Pattern written and verified."); in write_and_verify_pattern()
1604 logv( in test_reallocate_pages()
1616 logv("Returned expected error at each page: %s.", mach_error_string(KERN_NO_SPACE)); in test_reallocate_pages()
1627 logv("Allocating 0x%jx (%ju) byte%s", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in test_allocate_in_null_map()
1629 logv(" at address 0x%jx", (uintmax_t)address); in test_allocate_in_null_map()
1631 logv(" in NULL VM map..."); in test_allocate_in_null_map()
1633 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_allocate_in_null_map()
1650 logv("Allocating 0x%jx (%ju) byte%s", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in test_allocate_with_kernel_flags()
1652 logv(" at address 0x%jx", (uintmax_t)address); in test_allocate_with_kernel_flags()
1654 logv(" with various kernel flags..."); in test_allocate_with_kernel_flags()
1664 …logv("Returned expected error with each kernel flag: %s.", mach_error_string(KERN_INVALID_ARGUMENT… in test_allocate_with_kernel_flags()
1690 logv("Allocating 0x%jx (%ju) byte%s", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in test_mach_vm_map_protection_inheritance_error()
1692 logv(" at address 0x%jx", (uintmax_t)address); in test_mach_vm_map_protection_inheritance_error()
1694 logv( in test_mach_vm_map_protection_inheritance_error()
1717 logv("Returned expected error in each case: %s.", mach_error_string(KERN_INVALID_ARGUMENT)); in test_mach_vm_map_protection_inheritance_error()
1732 logv( in test_mach_vm_map_large_mask_overflow_error()
1739 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_mach_vm_map_large_mask_overflow_error()
1749 logv("Allocating 0x%jx (%ju) bytes...", (uintmax_t)size, (uintmax_t)size); in allocate_edge_size()
1751 logv("Returned expected value: %s.", mach_error_string(expected_kr)); in allocate_edge_size()
1781 logv("Creating named entry of 0x%jx (%ju) bytes...", (uintmax_t)size, (uintmax_t)size); in test_allocate_invalid_large_size()
1785 logv("Returned expected error: %s.", mach_error_string(KERN_FAILURE)); in test_allocate_invalid_large_size()
1813 …logv("Allocating 0x%jx (%ju) byte%s at address 0x0...", (uintmax_t)size, (uintmax_t)size, (size ==… in test_allocate_at_zero()
1815 logv("Returned expected value: %s.", mach_error_string(kr_expected)); in test_allocate_at_zero()
1821 logv("Allocated address 0x%jx is zero.", (uintmax_t)address); in test_allocate_at_zero()
1834 logv( in test_allocate_2MB_boundary_unaligned_page_aligned_address()
1844 …logv("Allocating 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size … in test_allocate_2MB_boundary_unaligned_page_aligned_address()
1847 logv("Returned expected value: %s.", mach_error_string(kr_expected)); in test_allocate_2MB_boundary_unaligned_page_aligned_address()
1862 logv( in test_allocate_page_with_highest_address_hint()
1869 logv("Memory allocated at address 0x%jx.", (uintmax_t)address); in test_allocate_page_with_highest_address_hint()
1876 logv("Returned expected error: %s.", mach_error_string(KERN_NO_SPACE)); in test_allocate_page_with_highest_address_hint()
1890 logv( in test_allocate_first_fit_pages()
1894 logv("Found address 0x%jx.", (uintmax_t)address1); in test_allocate_first_fit_pages()
1897 logv( in test_allocate_first_fit_pages()
1901 logv("Found address 0x%jx.", (uintmax_t)address2); in test_allocate_first_fit_pages()
1908 logv("Allocating pages between 0x%jx and 0x%jx...", (uintmax_t)address1, (uintmax_t)address2); in test_allocate_first_fit_pages()
1916 logv("Expectedly returned error at each page."); in test_allocate_first_fit_pages()
1932 …logv("Will deallocate and read from %s 0x%jx of deallocated range...", position, (uintmax_t)addres… in access_deallocated_range_address()
1970 …logv("Deallocating 0x%jx (%ju) bytes at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (uint… in test_deallocate_suicide()
1999 …logv("Deallocating, then Allocating 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uin… in test_write_pattern_deallocate_reallocate_zero_filled()
2003 logv("Memory allocated."); in test_write_pattern_deallocate_reallocate_zero_filled()
2030 logv("Deallocating 0x0 (0) bytes at various addresses..."); in test_deallocate_zero_size_ranges()
2037 logv("Deallocations successful."); in test_deallocate_zero_size_ranges()
2063 logv( in test_deallocate_rounded_zero_end_ranges()
2074 logv("Deallocations successful."); in test_deallocate_rounded_zero_end_ranges()
2095 logv( in test_deallocate_wrapped_around_ranges()
2107 logv("Returned expected error on each range: %s.", mach_error_string(KERN_INVALID_ARGUMENT)); in test_deallocate_wrapped_around_ranges()
2118 logv("Deallocating 0x%jx (%ju) byte%s", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in test_deallocate_in_null_map()
2120 logv(" at address 0x%jx", (uintmax_t)address); in test_deallocate_in_null_map()
2122 logv(" in NULL VM map..."); in test_deallocate_in_null_map()
2124 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_deallocate_in_null_map()
2142 logv("Buffer address 0x%jx is aligned as expected.", (uintmax_t)address); in test_read_address_offset()
2149 logv( in test_read_address_offset()
2165 logv( in test_read_null_map()
2171 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_read_null_map()
2184 logv("Deallocating a mid-range page at address 0x%jx...", (uintmax_t)mid_point); in test_read_partially_deallocated_range()
2186 logv("Page deallocated."); in test_read_partially_deallocated_range()
2188 …logv("Reading 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in test_read_partially_deallocated_range()
2191 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_read_partially_deallocated_range()
2209 logv("Read-protecting a mid-range page at address 0x%jx...", (uintmax_t)mid_point); in test_read_partially_unreadable_range()
2211 logv("Page read-protected."); in test_read_partially_unreadable_range()
2213 …logv("Reading 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in test_read_partially_unreadable_range()
2216 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_read_partially_unreadable_range()
2240 logv("Reading 0x%jx (%ju) bytes at various addresses...", (uintmax_t)size, (uintmax_t)size); in read_edge_size()
2249 logv( in read_edge_size()
2289 logv( in test_read_wrapped_around_ranges()
2301 logv("Returned expected error on each range: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_read_wrapped_around_ranges()
2320 logv( in write_read_verify_pattern()
2325 logv("Pattern verified on destination buffer."); in write_read_verify_pattern()
2358 logv( in test_write_null_map()
2363 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_write_null_map()
2387 logv( in test_write_partially_deallocated_buffer()
2392 logv("Page deallocated."); in test_write_partially_deallocated_buffer()
2394 logv( in test_write_partially_deallocated_buffer()
2399 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_MEMORY)); in test_write_partially_deallocated_buffer()
2411 logv( in test_write_partially_unreadable_buffer()
2417 logv("Page read-protected."); in test_write_partially_unreadable_buffer()
2419 logv( in test_write_partially_unreadable_buffer()
2424 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_MEMORY)); in test_write_partially_unreadable_buffer()
2436 logv( in test_write_on_partially_deallocated_range()
2441 logv("Page deallocated."); in test_write_on_partially_deallocated_range()
2443 logv( in test_write_on_partially_deallocated_range()
2448 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_write_on_partially_deallocated_range()
2466 logv( in test_write_on_partially_unwritable_range()
2471 logv("Page write-protected."); in test_write_on_partially_unwritable_range()
2473 logv( in test_write_on_partially_unwritable_range()
2478 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_write_on_partially_unwritable_range()
2508 logv( in pattern_write()
2513 logv("Pattern verified on destination."); in pattern_write()
2546 logv( in test_copy_null_map()
2551 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_copy_null_map()
2572 logv("Allocating 0x%jx (%ju) byte%s...", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in copy_edge_size()
2574 logv("Copying 0x%jx (%ju) bytes at various addresses...", (uintmax_t)size, (uintmax_t)size); in copy_edge_size()
2583 logv( in copy_edge_size()
2624 logv("Allocating 0x1000 (4096) bytes..."); in test_copy_wrapped_around_ranges()
2627 logv( in test_copy_wrapped_around_ranges()
2639 logv("Returned expected error on each range: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_wrapped_around_ranges()
2660 logv( in write_copy_verify_pattern()
2665 logv( in write_copy_verify_pattern()
2670 logv("Pattern verified on destination region."); in write_copy_verify_pattern()
2714 logv("Deallocating a mid-range page at address 0x%jx...", (uintmax_t)mid_point); in test_copy_partially_deallocated_range()
2716 logv("Page deallocated."); in test_copy_partially_deallocated_range()
2718 …logv("Copying 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in test_copy_partially_deallocated_range()
2723 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_partially_deallocated_range()
2742 logv("Read-protecting a mid-range page at address 0x%jx...", (uintmax_t)mid_point); in test_copy_partially_unreadable_range()
2744 logv("Page read-protected."); in test_copy_partially_unreadable_range()
2746 …logv("Copying 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in test_copy_partially_unreadable_range()
2749 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_copy_partially_unreadable_range()
2763 logv( in test_copy_dest_partially_deallocated_region()
2768 logv("Page deallocated."); in test_copy_dest_partially_deallocated_region()
2770 logv( in test_copy_dest_partially_deallocated_region()
2775 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_dest_partially_deallocated_region()
2777 logv( in test_copy_dest_partially_deallocated_region()
2792 logv( in test_copy_source_partially_deallocated_region()
2797 logv("Page deallocated."); in test_copy_source_partially_deallocated_region()
2799 logv( in test_copy_source_partially_deallocated_region()
2804 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_source_partially_deallocated_region()
2817 logv( in test_copy_source_partially_unreadable_region()
2822 logv("Page read-protected."); in test_copy_source_partially_unreadable_region()
2824 logv( in test_copy_source_partially_unreadable_region()
2830 logv("Returned expected error: %s.", mach_error_string(kr)); in test_copy_source_partially_unreadable_region()
2844 logv( in test_copy_dest_partially_unwriteable_region()
2849 logv("Page read-protected."); in test_copy_dest_partially_unwriteable_region()
2850 logv( in test_copy_dest_partially_unwriteable_region()
2860 logv("Returned expected error: %s.", mach_error_string(kr)); in test_copy_dest_partially_unwriteable_region()
2862 logv( in test_copy_dest_partially_unwriteable_region()
2877 logv( in test_copy_source_on_partially_deallocated_range()
2882 logv("Page deallocated."); in test_copy_source_on_partially_deallocated_range()
2884 logv( in test_copy_source_on_partially_deallocated_range()
2889 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_source_on_partially_deallocated_range()
2901 logv( in test_copy_dest_on_partially_deallocated_range()
2906 logv("Page deallocated."); in test_copy_dest_on_partially_deallocated_range()
2908 logv( in test_copy_dest_on_partially_deallocated_range()
2913 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_dest_on_partially_deallocated_range()
2931 logv( in test_copy_dest_on_partially_unwritable_range()
2936 logv("Page write-protected."); in test_copy_dest_on_partially_unwritable_range()
2938 logv( in test_copy_dest_on_partially_unwritable_range()
2943 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_copy_dest_on_partially_unwritable_range()
2961 logv( in test_copy_source_on_partially_unreadable_range()
2966 logv("Page read-protected."); in test_copy_source_on_partially_unreadable_range()
2968 logv( in test_copy_source_on_partially_unreadable_range()
2973 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_copy_source_on_partially_unreadable_range()
2994 …logv("Setting read access on 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)… in test_zero_filled_readprotect()
2997 logv("Region has read access."); in test_zero_filled_readprotect()
3011 logv( in verify_protection()
3023 logv("Region is %s-protected as expected.", protection_name); in verify_protection()
3029 logv("Region is %s-unprotected as expected.", protection_name); in verify_protection()
3056 logv("Reading from %s 0x%jx of read-protected range...", position, (uintmax_t)address); in access_readprotected_range_address()
3089 logv("Writing on %s 0x%jx of write-protected range...", position, (uintmax_t)address); in write_writeprotected_range_address()
3139 logv("%s-protecting 0x0 (0) bytes at various addresses...", protection_name); in protect_zero_size()
3147 logv("Protection successful."); in protect_zero_size()
3180 logv( in protect_wrapped_around_ranges()
3193 logv("Returned expected error on each range: %s.", mach_error_string(KERN_INVALID_ARGUMENT)); in protect_wrapped_around_ranges()
3225 logv( in assert_share_mode()
3236 logv("Region has a share mode of %s as expected.", share_mode_name); in assert_share_mode()
3238 logv("Bypassing share_mode verification (See <rdar://problem/12164664>)"); in assert_share_mode()
3249 logv("Copying (using mach_vm_copy()) from a %s source...", source_name); in assert_vmcopy_success()
3257 logv("Copy (mach_vm_copy()) was successful as expected."); in assert_vmcopy_success()
3286 logv("Modifying: source%s...", shared ? " (shared with other region)" : ""); in modify_one_and_verify_all_regions()
3291 logv("Modifying: destination..."); in modify_one_and_verify_all_regions()
3300 logv("Modifying: shared/copied%s...", shared ? " (shared with source region)" : ""); in modify_one_and_verify_all_regions()
3307 logv("Modification was successful as expected."); in modify_one_and_verify_all_regions()
3310 logv("Verifying: source... "); in modify_one_and_verify_all_regions()
3312 logv("destination... "); in modify_one_and_verify_all_regions()
3315 logv("shared/copied... "); in modify_one_and_verify_all_regions()
3318 logv("Verification was successful as expected."); in modify_one_and_verify_all_regions()
3330 logv("No shared/copied region as expected."); in test_vmcopy_fresh_source()
3373 logv("Modifying: shared..."); in test_vmcopy_shared_source()
3375 logv("Modification was successsful as expected."); in test_vmcopy_shared_source()
3376 logv("Verifying: source... "); in test_vmcopy_shared_source()
3378 logv("destination..."); in test_vmcopy_shared_source()
3380 logv("Verification was successful as expected."); in test_vmcopy_shared_source()
3394 logv("Verifying: shared..."); in test_vmcopy_shared_source()
3396 logv("Verification was successful as expected."); in test_vmcopy_shared_source()