Lines Matching refs:logv

94 #define logv(format, ...) \  macro
1082 logv( in set_up_vm_address()
1091 logv("Found %saligned fixed address 0x%jx.", aligned ? "" : "un", (uintmax_t)address); in set_up_vm_address()
1174 logv("Allocating 0x%jx (%ju) byte%s", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in allocate()
1176 logv(" at address 0x%jx", (uintmax_t)address); in allocate()
1178 logv("..."); in allocate()
1180 logv( in allocate()
1189 logv( in allocate()
1202logv("Allocating 0x%jx (%ju) byte%s...", (uintmax_t)buffer_size, (uintmax_t)buffer_size, (buffer_s… in allocate_buffer()
1204 logv( in allocate_buffer()
1285logv("Deallocating 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (siz… in deallocate_range()
1329logv("Reading 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in read_deallocate()
1332 logv( in read_deallocate()
1376 logv( in write_buffer()
1381 logv("Buffer written."); in write_buffer()
1404logv("Copying 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in copy_deallocate()
1407 logv( in copy_deallocate()
1433 logv( in copy_region()
1438 logv("Buffer written."); in copy_region()
1470 logv( in set_up_vm_variables_allocate_protect()
1475 logv("Region %s-protected.", protection_name); in set_up_vm_variables_allocate_protect()
1503 logv("Address 0x%jx is %szero as expected.", (uintmax_t)address, size ? "non" : ""); in test_nonzero_address_iff_nonzero_size()
1513 logv("Address 0x%jx is aligned.", (uintmax_t)address); in test_aligned_address()
1524 logv( in verify_pattern()
1529 logv("Pattern verified."); in verify_pattern()
1536 logv( in write_pattern()
1541 logv("Pattern writen."); in write_pattern()
1548 logv( in write_and_verify_pattern()
1554 logv("Pattern written and verified."); in write_and_verify_pattern()
1612 logv( in test_reallocate_pages()
1624 logv("Returned expected error at each page: %s.", mach_error_string(KERN_NO_SPACE)); in test_reallocate_pages()
1635 logv("Allocating 0x%jx (%ju) byte%s", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in test_allocate_in_null_map()
1637 logv(" at address 0x%jx", (uintmax_t)address); in test_allocate_in_null_map()
1639 logv(" in NULL VM map..."); in test_allocate_in_null_map()
1641 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_allocate_in_null_map()
1657 logv("Allocating 0x%jx (%ju) byte%s", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in test_allocate_with_kernel_flags()
1659 logv(" at address 0x%jx", (uintmax_t)address); in test_allocate_with_kernel_flags()
1661 logv(" with various invalid flags..."); in test_allocate_with_kernel_flags()
1678logv("Returned expected error with each invalid flag: %s.", mach_error_string(KERN_INVALID_ARGUMEN… in test_allocate_with_kernel_flags()
1707 logv("Allocating 0x%jx (%ju) byte%s", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in test_mach_vm_map_protection_inheritance_error()
1709 logv(" at address 0x%jx", (uintmax_t)address); in test_mach_vm_map_protection_inheritance_error()
1711 logv( in test_mach_vm_map_protection_inheritance_error()
1734 logv("Returned expected error in each case: %s.", mach_error_string(KERN_INVALID_ARGUMENT)); in test_mach_vm_map_protection_inheritance_error()
1749 logv( in test_mach_vm_map_large_mask_overflow_error()
1756 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_mach_vm_map_large_mask_overflow_error()
1766 logv("Allocating 0x%jx (%ju) bytes...", (uintmax_t)size, (uintmax_t)size); in allocate_edge_size()
1768 logv("Returned expected value: %s.", mach_error_string(expected_kr)); in allocate_edge_size()
1798 logv("Creating named entry of 0x%jx (%ju) bytes...", (uintmax_t)size, (uintmax_t)size); in test_allocate_invalid_large_size()
1802 logv("Returned expected error: %s.", mach_error_string(KERN_FAILURE)); in test_allocate_invalid_large_size()
1830logv("Allocating 0x%jx (%ju) byte%s at address 0x0...", (uintmax_t)size, (uintmax_t)size, (size ==… in test_allocate_at_zero()
1832 logv("Returned expected value: %s.", mach_error_string(kr_expected)); in test_allocate_at_zero()
1838 logv("Allocated address 0x%jx is zero.", (uintmax_t)address); in test_allocate_at_zero()
1851 logv( in test_allocate_2MB_boundary_unaligned_page_aligned_address()
1861logv("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()
1864 logv("Returned expected value: %s.", mach_error_string(kr_expected)); in test_allocate_2MB_boundary_unaligned_page_aligned_address()
1879 logv( in test_allocate_page_with_highest_address_hint()
1886 logv("Memory allocated at address 0x%jx.", (uintmax_t)address); in test_allocate_page_with_highest_address_hint()
1893 logv("Returned expected error: %s.", mach_error_string(KERN_NO_SPACE)); in test_allocate_page_with_highest_address_hint()
1907 logv( in test_allocate_first_fit_pages()
1911 logv("Found address 0x%jx.", (uintmax_t)address1); in test_allocate_first_fit_pages()
1914 logv( in test_allocate_first_fit_pages()
1918 logv("Found address 0x%jx.", (uintmax_t)address2); in test_allocate_first_fit_pages()
1925 logv("Allocating pages between 0x%jx and 0x%jx...", (uintmax_t)address1, (uintmax_t)address2); in test_allocate_first_fit_pages()
1933 logv("Expectedly returned error at each page."); in test_allocate_first_fit_pages()
1949logv("Will deallocate and read from %s 0x%jx of deallocated range...", position, (uintmax_t)addres… in access_deallocated_range_address()
1987logv("Deallocating 0x%jx (%ju) bytes at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (uint… in test_deallocate_suicide()
2016logv("Deallocating, then Allocating 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uin… in test_write_pattern_deallocate_reallocate_zero_filled()
2020 logv("Memory allocated."); in test_write_pattern_deallocate_reallocate_zero_filled()
2047 logv("Deallocating 0x0 (0) bytes at various addresses..."); in test_deallocate_zero_size_ranges()
2054 logv("Deallocations successful."); in test_deallocate_zero_size_ranges()
2080 logv( in test_deallocate_rounded_zero_end_ranges()
2091 logv("Deallocations successful."); in test_deallocate_rounded_zero_end_ranges()
2112 logv( in test_deallocate_wrapped_around_ranges()
2124 logv("Returned expected error on each range: %s.", mach_error_string(KERN_INVALID_ARGUMENT)); in test_deallocate_wrapped_around_ranges()
2135 logv("Deallocating 0x%jx (%ju) byte%s", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in test_deallocate_in_null_map()
2137 logv(" at address 0x%jx", (uintmax_t)address); in test_deallocate_in_null_map()
2139 logv(" in NULL VM map..."); in test_deallocate_in_null_map()
2141 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_deallocate_in_null_map()
2159 logv("Buffer address 0x%jx is aligned as expected.", (uintmax_t)address); in test_read_address_offset()
2166 logv( in test_read_address_offset()
2182 logv( in test_read_null_map()
2188 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_read_null_map()
2201 logv("Deallocating a mid-range page at address 0x%jx...", (uintmax_t)mid_point); in test_read_partially_deallocated_range()
2203 logv("Page deallocated."); in test_read_partially_deallocated_range()
2205logv("Reading 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in test_read_partially_deallocated_range()
2208 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_read_partially_deallocated_range()
2226 logv("Read-protecting a mid-range page at address 0x%jx...", (uintmax_t)mid_point); in test_read_partially_unreadable_range()
2228 logv("Page read-protected."); in test_read_partially_unreadable_range()
2230logv("Reading 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in test_read_partially_unreadable_range()
2233 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_read_partially_unreadable_range()
2257 logv("Reading 0x%jx (%ju) bytes at various addresses...", (uintmax_t)size, (uintmax_t)size); in read_edge_size()
2266 logv( in read_edge_size()
2306 logv( in test_read_wrapped_around_ranges()
2318 logv("Returned expected error on each range: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_read_wrapped_around_ranges()
2337 logv( in write_read_verify_pattern()
2342 logv("Pattern verified on destination buffer."); in write_read_verify_pattern()
2375 logv( in test_write_null_map()
2380 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_write_null_map()
2404 logv( in test_write_partially_deallocated_buffer()
2409 logv("Page deallocated."); in test_write_partially_deallocated_buffer()
2411 logv( in test_write_partially_deallocated_buffer()
2416 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_MEMORY)); in test_write_partially_deallocated_buffer()
2428 logv( in test_write_partially_unreadable_buffer()
2434 logv("Page read-protected."); in test_write_partially_unreadable_buffer()
2436 logv( in test_write_partially_unreadable_buffer()
2441 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_MEMORY)); in test_write_partially_unreadable_buffer()
2453 logv( in test_write_on_partially_deallocated_range()
2458 logv("Page deallocated."); in test_write_on_partially_deallocated_range()
2460 logv( in test_write_on_partially_deallocated_range()
2465 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_write_on_partially_deallocated_range()
2483 logv( in test_write_on_partially_unwritable_range()
2488 logv("Page write-protected."); in test_write_on_partially_unwritable_range()
2490 logv( in test_write_on_partially_unwritable_range()
2495 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_write_on_partially_unwritable_range()
2525 logv( in pattern_write()
2530 logv("Pattern verified on destination."); in pattern_write()
2563 logv( in test_copy_null_map()
2568 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_copy_null_map()
2589 logv("Allocating 0x%jx (%ju) byte%s...", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in copy_edge_size()
2591 logv("Copying 0x%jx (%ju) bytes at various addresses...", (uintmax_t)size, (uintmax_t)size); in copy_edge_size()
2600 logv( in copy_edge_size()
2641 logv("Allocating 0x1000 (4096) bytes..."); in test_copy_wrapped_around_ranges()
2644 logv( in test_copy_wrapped_around_ranges()
2656 logv("Returned expected error on each range: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_wrapped_around_ranges()
2677 logv( in write_copy_verify_pattern()
2682 logv( in write_copy_verify_pattern()
2687 logv("Pattern verified on destination region."); in write_copy_verify_pattern()
2731 logv("Deallocating a mid-range page at address 0x%jx...", (uintmax_t)mid_point); in test_copy_partially_deallocated_range()
2733 logv("Page deallocated."); in test_copy_partially_deallocated_range()
2735logv("Copying 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in test_copy_partially_deallocated_range()
2740 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_partially_deallocated_range()
2759 logv("Read-protecting a mid-range page at address 0x%jx...", (uintmax_t)mid_point); in test_copy_partially_unreadable_range()
2761 logv("Page read-protected."); in test_copy_partially_unreadable_range()
2763logv("Copying 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in test_copy_partially_unreadable_range()
2766 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_copy_partially_unreadable_range()
2780 logv( in test_copy_dest_partially_deallocated_region()
2785 logv("Page deallocated."); in test_copy_dest_partially_deallocated_region()
2787 logv( in test_copy_dest_partially_deallocated_region()
2792 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_dest_partially_deallocated_region()
2794 logv( in test_copy_dest_partially_deallocated_region()
2809 logv( in test_copy_source_partially_deallocated_region()
2814 logv("Page deallocated."); in test_copy_source_partially_deallocated_region()
2816 logv( in test_copy_source_partially_deallocated_region()
2821 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_source_partially_deallocated_region()
2834 logv( in test_copy_source_partially_unreadable_region()
2839 logv("Page read-protected."); in test_copy_source_partially_unreadable_region()
2841 logv( in test_copy_source_partially_unreadable_region()
2847 logv("Returned expected error: %s.", mach_error_string(kr)); in test_copy_source_partially_unreadable_region()
2861 logv( in test_copy_dest_partially_unwriteable_region()
2866 logv("Page read-protected."); in test_copy_dest_partially_unwriteable_region()
2867 logv( in test_copy_dest_partially_unwriteable_region()
2877 logv("Returned expected error: %s.", mach_error_string(kr)); in test_copy_dest_partially_unwriteable_region()
2879 logv( in test_copy_dest_partially_unwriteable_region()
2894 logv( in test_copy_source_on_partially_deallocated_range()
2899 logv("Page deallocated."); in test_copy_source_on_partially_deallocated_range()
2901 logv( in test_copy_source_on_partially_deallocated_range()
2906 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_source_on_partially_deallocated_range()
2918 logv( in test_copy_dest_on_partially_deallocated_range()
2923 logv("Page deallocated."); in test_copy_dest_on_partially_deallocated_range()
2925 logv( in test_copy_dest_on_partially_deallocated_range()
2930 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_dest_on_partially_deallocated_range()
2948 logv( in test_copy_dest_on_partially_unwritable_range()
2953 logv("Page write-protected."); in test_copy_dest_on_partially_unwritable_range()
2955 logv( in test_copy_dest_on_partially_unwritable_range()
2960 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_copy_dest_on_partially_unwritable_range()
2978 logv( in test_copy_source_on_partially_unreadable_range()
2983 logv("Page read-protected."); in test_copy_source_on_partially_unreadable_range()
2985 logv( in test_copy_source_on_partially_unreadable_range()
2990 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_copy_source_on_partially_unreadable_range()
3011logv("Setting read access on 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)… in test_zero_filled_readprotect()
3014 logv("Region has read access."); in test_zero_filled_readprotect()
3028 logv( in verify_protection()
3040 logv("Region is %s-protected as expected.", protection_name); in verify_protection()
3046 logv("Region is %s-unprotected as expected.", protection_name); in verify_protection()
3073 logv("Reading from %s 0x%jx of read-protected range...", position, (uintmax_t)address); in access_readprotected_range_address()
3106 logv("Writing on %s 0x%jx of write-protected range...", position, (uintmax_t)address); in write_writeprotected_range_address()
3156 logv("%s-protecting 0x0 (0) bytes at various addresses...", protection_name); in protect_zero_size()
3164 logv("Protection successful."); in protect_zero_size()
3197 logv( in protect_wrapped_around_ranges()
3210 logv("Returned expected error on each range: %s.", mach_error_string(KERN_INVALID_ARGUMENT)); in protect_wrapped_around_ranges()
3242 logv( in assert_share_mode()
3253 logv("Region has a share mode of %s as expected.", share_mode_name); in assert_share_mode()
3255 logv("Bypassing share_mode verification (See <rdar://problem/12164664>)"); in assert_share_mode()
3266 logv("Copying (using mach_vm_copy()) from a %s source...", source_name); in assert_vmcopy_success()
3274 logv("Copy (mach_vm_copy()) was successful as expected."); in assert_vmcopy_success()
3303 logv("Modifying: source%s...", shared ? " (shared with other region)" : ""); in modify_one_and_verify_all_regions()
3308 logv("Modifying: destination..."); in modify_one_and_verify_all_regions()
3317 logv("Modifying: shared/copied%s...", shared ? " (shared with source region)" : ""); in modify_one_and_verify_all_regions()
3324 logv("Modification was successful as expected."); in modify_one_and_verify_all_regions()
3327 logv("Verifying: source... "); in modify_one_and_verify_all_regions()
3329 logv("destination... "); in modify_one_and_verify_all_regions()
3332 logv("shared/copied... "); in modify_one_and_verify_all_regions()
3335 logv("Verification was successful as expected."); in modify_one_and_verify_all_regions()
3347 logv("No shared/copied region as expected."); in test_vmcopy_fresh_source()
3390 logv("Modifying: shared..."); in test_vmcopy_shared_source()
3392 logv("Modification was successsful as expected."); in test_vmcopy_shared_source()
3393 logv("Verifying: source... "); in test_vmcopy_shared_source()
3395 logv("destination..."); in test_vmcopy_shared_source()
3397 logv("Verification was successful as expected."); in test_vmcopy_shared_source()
3411 logv("Verifying: shared..."); in test_vmcopy_shared_source()
3413 logv("Verification was successful as expected."); in test_vmcopy_shared_source()