Lines Matching refs:logv
95 #define logv(format, ...) \ macro
1113 logv( in set_up_vm_address()
1122 logv("Found %saligned fixed address 0x%jx.", aligned ? "" : "un", (uintmax_t)address); in set_up_vm_address()
1202 logv("Allocating 0x%jx (%ju) byte%s %s...", in log_allocation()
1205 logv("Allocating 0x%jx (%ju) byte%s at address 0x%jx %s...", in log_allocation()
1219 logv( in allocate()
1228 logv( in allocate()
1244 logv( in allocate_buffer()
1326 …logv("Deallocating 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (siz… in deallocate_range()
1343 logv("Skipping already-deallocated page at 0x%jx (%ju bytes)", in deallocate_range_except_page()
1445 …logv("Reading 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in read_deallocate()
1448 logv( in read_deallocate()
1492 logv( in write_buffer()
1497 logv("Buffer written."); in write_buffer()
1520 …logv("Copying 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in copy_deallocate()
1523 logv( in copy_deallocate()
1549 logv( in copy_region()
1554 logv("Buffer written."); in copy_region()
1586 logv( in set_up_vm_variables_allocate_protect()
1591 logv("Region %s-protected.", protection_name); in set_up_vm_variables_allocate_protect()
1619 logv("Address 0x%jx is %szero as expected.", (uintmax_t)address, size ? "non" : ""); in test_nonzero_address_iff_nonzero_size()
1629 logv("Address 0x%jx is aligned.", (uintmax_t)address); in test_aligned_address()
1640 logv( in verify_pattern()
1645 logv("Pattern verified."); in verify_pattern()
1652 logv( in write_pattern()
1657 logv("Pattern written."); in write_pattern()
1664 logv( in write_and_verify_pattern()
1670 logv("Pattern written and verified."); in write_and_verify_pattern()
1728 logv( in test_reallocate_pages()
1738 logv("Returned expected error at each page: %s.", mach_error_string(KERN_NO_SPACE)); in test_reallocate_pages()
1751 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_allocate_in_null_map()
1782 …logv("Returned expected error with each invalid flag: %s.", mach_error_string(KERN_INVALID_ARGUMEN… in test_allocate_with_kernel_flags()
1836 logv("Returned expected error in each case: %s.", mach_error_string(KERN_INVALID_ARGUMENT)); in test_mach_vm_map_protection_inheritance_error()
1851 logv( in test_mach_vm_map_large_mask_overflow_error()
1858 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_mach_vm_map_large_mask_overflow_error()
1868 logv("Allocating 0x%jx (%ju) bytes...", (uintmax_t)size, (uintmax_t)size); in allocate_edge_size()
1870 logv("Returned expected value: %s.", mach_error_string(expected_kr)); in allocate_edge_size()
1900 logv("Creating named entry of 0x%jx (%ju) bytes...", (uintmax_t)size, (uintmax_t)size); in test_allocate_invalid_large_size()
1904 logv("Returned expected error: %s.", mach_error_string(KERN_FAILURE)); in test_allocate_invalid_large_size()
1932 …logv("Allocating 0x%jx (%ju) byte%s at address 0x0...", (uintmax_t)size, (uintmax_t)size, (size ==… in test_allocate_at_zero()
1934 logv("Returned expected value: %s.", mach_error_string(kr_expected)); in test_allocate_at_zero()
1940 logv("Allocated address 0x%jx is zero.", (uintmax_t)address); in test_allocate_at_zero()
1953 logv( in test_allocate_2MB_boundary_unaligned_page_aligned_address()
1963 …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()
1966 logv("Returned expected value: %s.", mach_error_string(kr_expected)); in test_allocate_2MB_boundary_unaligned_page_aligned_address()
1981 logv( in test_allocate_page_with_highest_address_hint()
1988 logv("Memory allocated at address 0x%jx.", (uintmax_t)address); in test_allocate_page_with_highest_address_hint()
1995 logv("Returned expected error: %s.", mach_error_string(KERN_NO_SPACE)); in test_allocate_page_with_highest_address_hint()
2009 logv( in test_allocate_first_fit_pages()
2013 logv("Found address 0x%jx.", (uintmax_t)address1); in test_allocate_first_fit_pages()
2016 logv( in test_allocate_first_fit_pages()
2020 logv("Found address 0x%jx.", (uintmax_t)address2); in test_allocate_first_fit_pages()
2027 logv("Allocating pages between 0x%jx and 0x%jx...", (uintmax_t)address1, (uintmax_t)address2); in test_allocate_first_fit_pages()
2035 logv("Expectedly returned error at each page."); in test_allocate_first_fit_pages()
2051 …logv("Will deallocate and read from %s 0x%jx of deallocated range...", position, (uintmax_t)addres… in access_deallocated_range_address()
2089 …logv("Deallocating 0x%jx (%ju) bytes at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (uint… in test_deallocate_suicide()
2118 …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()
2122 logv("Memory allocated."); in test_write_pattern_deallocate_reallocate_zero_filled()
2149 logv("Deallocating 0x0 (0) bytes at various addresses..."); in test_deallocate_zero_size_ranges()
2156 logv("Deallocations successful."); in test_deallocate_zero_size_ranges()
2177 logv( in test_deallocate_wrapped_around_ranges()
2189 logv("Returned expected error on each range: %s.", mach_error_string(KERN_INVALID_ARGUMENT)); in test_deallocate_wrapped_around_ranges()
2199 logv("Deallocating 0x%jx (%ju) byte%s at address 0x%jx in NULL VM map...", in test_deallocate_in_null_map()
2202 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_deallocate_in_null_map()
2220 logv("Buffer address 0x%jx is aligned as expected.", (uintmax_t)address); in test_read_address_offset()
2227 logv( in test_read_address_offset()
2243 logv( in test_read_null_map()
2249 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_read_null_map()
2262 logv("Deallocating a mid-range page at address 0x%jx...", (uintmax_t)mid_point); in test_read_partially_deallocated_range()
2264 logv("Page deallocated."); in test_read_partially_deallocated_range()
2266 …logv("Reading 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in test_read_partially_deallocated_range()
2269 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_read_partially_deallocated_range()
2287 logv("Read-protecting a mid-range page at address 0x%jx...", (uintmax_t)mid_point); in test_read_partially_unreadable_range()
2289 logv("Page read-protected."); in test_read_partially_unreadable_range()
2291 …logv("Reading 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in test_read_partially_unreadable_range()
2294 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_read_partially_unreadable_range()
2318 logv("Reading 0x%jx (%ju) bytes at various addresses...", (uintmax_t)size, (uintmax_t)size); in read_edge_size()
2326 logv( in read_edge_size()
2366 logv( in test_read_wrapped_around_ranges()
2376 logv("Returned expected error on each range: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_read_wrapped_around_ranges()
2395 logv( in write_read_verify_pattern()
2400 logv("Pattern verified on destination buffer."); in write_read_verify_pattern()
2433 logv( in test_write_null_map()
2438 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_write_null_map()
2462 logv( in test_write_partially_deallocated_buffer()
2467 logv("Page deallocated."); in test_write_partially_deallocated_buffer()
2469 logv( in test_write_partially_deallocated_buffer()
2474 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_MEMORY)); in test_write_partially_deallocated_buffer()
2486 logv( in test_write_partially_unreadable_buffer()
2492 logv("Page read-protected."); in test_write_partially_unreadable_buffer()
2494 logv( in test_write_partially_unreadable_buffer()
2499 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_MEMORY)); in test_write_partially_unreadable_buffer()
2511 logv( in test_write_on_partially_deallocated_range()
2516 logv("Page deallocated."); in test_write_on_partially_deallocated_range()
2518 logv( in test_write_on_partially_deallocated_range()
2523 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_write_on_partially_deallocated_range()
2541 logv( in test_write_on_partially_unwritable_range()
2546 logv("Page write-protected."); in test_write_on_partially_unwritable_range()
2548 logv( in test_write_on_partially_unwritable_range()
2553 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_write_on_partially_unwritable_range()
2583 logv( in pattern_write()
2588 logv("Pattern verified on destination."); in pattern_write()
2621 logv( in test_copy_null_map()
2626 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_copy_null_map()
2647 logv("Allocating 0x%jx (%ju) byte%s...", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in copy_edge_size()
2649 logv("Copying 0x%jx (%ju) bytes at various addresses...", (uintmax_t)size, (uintmax_t)size); in copy_edge_size()
2657 logv( in copy_edge_size()
2698 logv("Allocating 0x1000 (4096) bytes..."); in test_copy_wrapped_around_ranges()
2701 logv( in test_copy_wrapped_around_ranges()
2711 logv("Returned expected error on each range: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_wrapped_around_ranges()
2732 logv( in write_copy_verify_pattern()
2737 logv( in write_copy_verify_pattern()
2742 logv("Pattern verified on destination region."); in write_copy_verify_pattern()
2786 logv("Deallocating a mid-range page at address 0x%jx...", (uintmax_t)mid_point); in test_copy_partially_deallocated_range()
2788 logv("Page deallocated."); in test_copy_partially_deallocated_range()
2790 …logv("Copying 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in test_copy_partially_deallocated_range()
2795 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_partially_deallocated_range()
2814 logv("Read-protecting a mid-range page at address 0x%jx...", (uintmax_t)mid_point); in test_copy_partially_unreadable_range()
2816 logv("Page read-protected."); in test_copy_partially_unreadable_range()
2818 …logv("Copying 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in test_copy_partially_unreadable_range()
2821 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_copy_partially_unreadable_range()
2835 logv( in test_copy_dest_partially_deallocated_region()
2840 logv("Page deallocated."); in test_copy_dest_partially_deallocated_region()
2842 logv( in test_copy_dest_partially_deallocated_region()
2847 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_dest_partially_deallocated_region()
2859 logv( in test_copy_source_partially_deallocated_region()
2864 logv("Page deallocated."); in test_copy_source_partially_deallocated_region()
2866 logv( in test_copy_source_partially_deallocated_region()
2871 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_source_partially_deallocated_region()
2884 logv( in test_copy_source_partially_unreadable_region()
2889 logv("Page read-protected."); in test_copy_source_partially_unreadable_region()
2891 logv( in test_copy_source_partially_unreadable_region()
2897 logv("Returned expected error: %s.", mach_error_string(kr)); in test_copy_source_partially_unreadable_region()
2909 logv( in test_copy_dest_partially_unwriteable_region()
2914 logv("Page read-protected."); in test_copy_dest_partially_unwriteable_region()
2915 logv( in test_copy_dest_partially_unwriteable_region()
2922 logv("Returned expected error."); in test_copy_dest_partially_unwriteable_region()
2934 logv( in test_copy_source_on_partially_deallocated_range()
2939 logv("Page deallocated."); in test_copy_source_on_partially_deallocated_range()
2941 logv( in test_copy_source_on_partially_deallocated_range()
2946 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_source_on_partially_deallocated_range()
2958 logv( in test_copy_dest_on_partially_deallocated_range()
2963 logv("Page deallocated."); in test_copy_dest_on_partially_deallocated_range()
2965 logv( in test_copy_dest_on_partially_deallocated_range()
2970 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_dest_on_partially_deallocated_range()
2988 logv( in test_copy_dest_on_partially_unwritable_range()
2993 logv("Page write-protected."); in test_copy_dest_on_partially_unwritable_range()
2995 logv( in test_copy_dest_on_partially_unwritable_range()
3000 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_copy_dest_on_partially_unwritable_range()
3018 logv( in test_copy_source_on_partially_unreadable_range()
3023 logv("Page read-protected."); in test_copy_source_on_partially_unreadable_range()
3025 logv( in test_copy_source_on_partially_unreadable_range()
3030 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_copy_source_on_partially_unreadable_range()
3051 …logv("Setting read access on 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)… in test_zero_filled_readprotect()
3054 logv("Region has read access."); in test_zero_filled_readprotect()
3068 logv( in verify_protection()
3080 logv("Region is %s-protected as expected.", protection_name); in verify_protection()
3086 logv("Region is %s-unprotected as expected.", protection_name); in verify_protection()
3113 logv("Reading from %s 0x%jx of read-protected range...", position, (uintmax_t)address); in access_readprotected_range_address()
3146 logv("Writing on %s 0x%jx of write-protected range...", position, (uintmax_t)address); in write_writeprotected_range_address()
3196 logv("%s-protecting 0x0 (0) bytes at various addresses...", protection_name); in protect_zero_size()
3204 logv("Protection successful."); in protect_zero_size()
3237 logv( in protect_wrapped_around_ranges()
3248 logv("Returned expected error on each range: %s.", mach_error_string(KERN_INVALID_ARGUMENT)); in protect_wrapped_around_ranges()
3280 logv("Copying (using mach_vm_copy()) from a %s source...", source_name); in assert_vmcopy_success()
3287 logv("Copy (mach_vm_copy()) was successful as expected."); in assert_vmcopy_success()
3315 logv("Modifying: source%s...", shared ? " (shared with other region)" : ""); in modify_one_and_verify_all_regions()
3320 logv("Modifying: destination..."); in modify_one_and_verify_all_regions()
3329 logv("Modifying: shared/copied%s...", shared ? " (shared with source region)" : ""); in modify_one_and_verify_all_regions()
3336 logv("Modification was successful as expected."); in modify_one_and_verify_all_regions()
3339 logv("Verifying: source... "); in modify_one_and_verify_all_regions()
3341 logv("destination... "); in modify_one_and_verify_all_regions()
3344 logv("shared/copied... "); in modify_one_and_verify_all_regions()
3347 logv("Verification was successful as expected."); in modify_one_and_verify_all_regions()
3359 logv("No shared/copied region as expected."); in test_vmcopy_fresh_source()
3402 logv("Modifying: shared..."); in test_vmcopy_shared_source()
3404 logv("Modification was successsful as expected."); in test_vmcopy_shared_source()
3405 logv("Verifying: source... "); in test_vmcopy_shared_source()
3407 logv("destination..."); in test_vmcopy_shared_source()
3409 logv("Verification was successful as expected."); in test_vmcopy_shared_source()
3423 logv("Verifying: shared..."); in test_vmcopy_shared_source()
3425 logv("Verification was successful as expected."); in test_vmcopy_shared_source()