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()
1649 logv("Allocating 0x%jx (%ju) byte%s", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in test_allocate_with_kernel_flags()
1651 logv(" at address 0x%jx", (uintmax_t)address); in test_allocate_with_kernel_flags()
1653 logv(" with various invalid flags..."); in test_allocate_with_kernel_flags()
1670 …logv("Returned expected error with each invalid flag: %s.", mach_error_string(KERN_INVALID_ARGUMEN… in test_allocate_with_kernel_flags()
1696 logv("Allocating 0x%jx (%ju) byte%s", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in test_mach_vm_map_protection_inheritance_error()
1698 logv(" at address 0x%jx", (uintmax_t)address); in test_mach_vm_map_protection_inheritance_error()
1700 logv( in test_mach_vm_map_protection_inheritance_error()
1723 logv("Returned expected error in each case: %s.", mach_error_string(KERN_INVALID_ARGUMENT)); in test_mach_vm_map_protection_inheritance_error()
1738 logv( in test_mach_vm_map_large_mask_overflow_error()
1745 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_mach_vm_map_large_mask_overflow_error()
1755 logv("Allocating 0x%jx (%ju) bytes...", (uintmax_t)size, (uintmax_t)size); in allocate_edge_size()
1757 logv("Returned expected value: %s.", mach_error_string(expected_kr)); in allocate_edge_size()
1787 logv("Creating named entry of 0x%jx (%ju) bytes...", (uintmax_t)size, (uintmax_t)size); in test_allocate_invalid_large_size()
1791 logv("Returned expected error: %s.", mach_error_string(KERN_FAILURE)); in test_allocate_invalid_large_size()
1819 …logv("Allocating 0x%jx (%ju) byte%s at address 0x0...", (uintmax_t)size, (uintmax_t)size, (size ==… in test_allocate_at_zero()
1821 logv("Returned expected value: %s.", mach_error_string(kr_expected)); in test_allocate_at_zero()
1827 logv("Allocated address 0x%jx is zero.", (uintmax_t)address); in test_allocate_at_zero()
1840 logv( in test_allocate_2MB_boundary_unaligned_page_aligned_address()
1850 …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()
1853 logv("Returned expected value: %s.", mach_error_string(kr_expected)); in test_allocate_2MB_boundary_unaligned_page_aligned_address()
1868 logv( in test_allocate_page_with_highest_address_hint()
1875 logv("Memory allocated at address 0x%jx.", (uintmax_t)address); in test_allocate_page_with_highest_address_hint()
1882 logv("Returned expected error: %s.", mach_error_string(KERN_NO_SPACE)); in test_allocate_page_with_highest_address_hint()
1896 logv( in test_allocate_first_fit_pages()
1900 logv("Found address 0x%jx.", (uintmax_t)address1); in test_allocate_first_fit_pages()
1903 logv( in test_allocate_first_fit_pages()
1907 logv("Found address 0x%jx.", (uintmax_t)address2); in test_allocate_first_fit_pages()
1914 logv("Allocating pages between 0x%jx and 0x%jx...", (uintmax_t)address1, (uintmax_t)address2); in test_allocate_first_fit_pages()
1922 logv("Expectedly returned error at each page."); in test_allocate_first_fit_pages()
1938 …logv("Will deallocate and read from %s 0x%jx of deallocated range...", position, (uintmax_t)addres… in access_deallocated_range_address()
1976 …logv("Deallocating 0x%jx (%ju) bytes at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (uint… in test_deallocate_suicide()
2005 …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()
2009 logv("Memory allocated."); in test_write_pattern_deallocate_reallocate_zero_filled()
2036 logv("Deallocating 0x0 (0) bytes at various addresses..."); in test_deallocate_zero_size_ranges()
2043 logv("Deallocations successful."); in test_deallocate_zero_size_ranges()
2069 logv( in test_deallocate_rounded_zero_end_ranges()
2080 logv("Deallocations successful."); in test_deallocate_rounded_zero_end_ranges()
2101 logv( in test_deallocate_wrapped_around_ranges()
2113 logv("Returned expected error on each range: %s.", mach_error_string(KERN_INVALID_ARGUMENT)); in test_deallocate_wrapped_around_ranges()
2124 logv("Deallocating 0x%jx (%ju) byte%s", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in test_deallocate_in_null_map()
2126 logv(" at address 0x%jx", (uintmax_t)address); in test_deallocate_in_null_map()
2128 logv(" in NULL VM map..."); in test_deallocate_in_null_map()
2130 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_deallocate_in_null_map()
2148 logv("Buffer address 0x%jx is aligned as expected.", (uintmax_t)address); in test_read_address_offset()
2155 logv( in test_read_address_offset()
2171 logv( in test_read_null_map()
2177 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_read_null_map()
2190 logv("Deallocating a mid-range page at address 0x%jx...", (uintmax_t)mid_point); in test_read_partially_deallocated_range()
2192 logv("Page deallocated."); in test_read_partially_deallocated_range()
2194 …logv("Reading 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in test_read_partially_deallocated_range()
2197 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_read_partially_deallocated_range()
2215 logv("Read-protecting a mid-range page at address 0x%jx...", (uintmax_t)mid_point); in test_read_partially_unreadable_range()
2217 logv("Page read-protected."); in test_read_partially_unreadable_range()
2219 …logv("Reading 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in test_read_partially_unreadable_range()
2222 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_read_partially_unreadable_range()
2246 logv("Reading 0x%jx (%ju) bytes at various addresses...", (uintmax_t)size, (uintmax_t)size); in read_edge_size()
2255 logv( in read_edge_size()
2295 logv( in test_read_wrapped_around_ranges()
2307 logv("Returned expected error on each range: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_read_wrapped_around_ranges()
2326 logv( in write_read_verify_pattern()
2331 logv("Pattern verified on destination buffer."); in write_read_verify_pattern()
2364 logv( in test_write_null_map()
2369 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_write_null_map()
2393 logv( in test_write_partially_deallocated_buffer()
2398 logv("Page deallocated."); in test_write_partially_deallocated_buffer()
2400 logv( in test_write_partially_deallocated_buffer()
2405 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_MEMORY)); in test_write_partially_deallocated_buffer()
2417 logv( in test_write_partially_unreadable_buffer()
2423 logv("Page read-protected."); in test_write_partially_unreadable_buffer()
2425 logv( in test_write_partially_unreadable_buffer()
2430 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_MEMORY)); in test_write_partially_unreadable_buffer()
2442 logv( in test_write_on_partially_deallocated_range()
2447 logv("Page deallocated."); in test_write_on_partially_deallocated_range()
2449 logv( in test_write_on_partially_deallocated_range()
2454 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_write_on_partially_deallocated_range()
2472 logv( in test_write_on_partially_unwritable_range()
2477 logv("Page write-protected."); in test_write_on_partially_unwritable_range()
2479 logv( in test_write_on_partially_unwritable_range()
2484 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_write_on_partially_unwritable_range()
2514 logv( in pattern_write()
2519 logv("Pattern verified on destination."); in pattern_write()
2552 logv( in test_copy_null_map()
2557 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_copy_null_map()
2578 logv("Allocating 0x%jx (%ju) byte%s...", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in copy_edge_size()
2580 logv("Copying 0x%jx (%ju) bytes at various addresses...", (uintmax_t)size, (uintmax_t)size); in copy_edge_size()
2589 logv( in copy_edge_size()
2630 logv("Allocating 0x1000 (4096) bytes..."); in test_copy_wrapped_around_ranges()
2633 logv( in test_copy_wrapped_around_ranges()
2645 logv("Returned expected error on each range: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_wrapped_around_ranges()
2666 logv( in write_copy_verify_pattern()
2671 logv( in write_copy_verify_pattern()
2676 logv("Pattern verified on destination region."); in write_copy_verify_pattern()
2720 logv("Deallocating a mid-range page at address 0x%jx...", (uintmax_t)mid_point); in test_copy_partially_deallocated_range()
2722 logv("Page deallocated."); in test_copy_partially_deallocated_range()
2724 …logv("Copying 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in test_copy_partially_deallocated_range()
2729 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_partially_deallocated_range()
2748 logv("Read-protecting a mid-range page at address 0x%jx...", (uintmax_t)mid_point); in test_copy_partially_unreadable_range()
2750 logv("Page read-protected."); in test_copy_partially_unreadable_range()
2752 …logv("Copying 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in test_copy_partially_unreadable_range()
2755 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_copy_partially_unreadable_range()
2769 logv( in test_copy_dest_partially_deallocated_region()
2774 logv("Page deallocated."); in test_copy_dest_partially_deallocated_region()
2776 logv( in test_copy_dest_partially_deallocated_region()
2781 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_dest_partially_deallocated_region()
2783 logv( in test_copy_dest_partially_deallocated_region()
2798 logv( in test_copy_source_partially_deallocated_region()
2803 logv("Page deallocated."); in test_copy_source_partially_deallocated_region()
2805 logv( in test_copy_source_partially_deallocated_region()
2810 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_source_partially_deallocated_region()
2823 logv( in test_copy_source_partially_unreadable_region()
2828 logv("Page read-protected."); in test_copy_source_partially_unreadable_region()
2830 logv( in test_copy_source_partially_unreadable_region()
2836 logv("Returned expected error: %s.", mach_error_string(kr)); in test_copy_source_partially_unreadable_region()
2850 logv( in test_copy_dest_partially_unwriteable_region()
2855 logv("Page read-protected."); in test_copy_dest_partially_unwriteable_region()
2856 logv( in test_copy_dest_partially_unwriteable_region()
2866 logv("Returned expected error: %s.", mach_error_string(kr)); in test_copy_dest_partially_unwriteable_region()
2868 logv( in test_copy_dest_partially_unwriteable_region()
2883 logv( in test_copy_source_on_partially_deallocated_range()
2888 logv("Page deallocated."); in test_copy_source_on_partially_deallocated_range()
2890 logv( in test_copy_source_on_partially_deallocated_range()
2895 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_source_on_partially_deallocated_range()
2907 logv( in test_copy_dest_on_partially_deallocated_range()
2912 logv("Page deallocated."); in test_copy_dest_on_partially_deallocated_range()
2914 logv( in test_copy_dest_on_partially_deallocated_range()
2919 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_dest_on_partially_deallocated_range()
2937 logv( in test_copy_dest_on_partially_unwritable_range()
2942 logv("Page write-protected."); in test_copy_dest_on_partially_unwritable_range()
2944 logv( in test_copy_dest_on_partially_unwritable_range()
2949 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_copy_dest_on_partially_unwritable_range()
2967 logv( in test_copy_source_on_partially_unreadable_range()
2972 logv("Page read-protected."); in test_copy_source_on_partially_unreadable_range()
2974 logv( in test_copy_source_on_partially_unreadable_range()
2979 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_copy_source_on_partially_unreadable_range()
3000 …logv("Setting read access on 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)… in test_zero_filled_readprotect()
3003 logv("Region has read access."); in test_zero_filled_readprotect()
3017 logv( in verify_protection()
3029 logv("Region is %s-protected as expected.", protection_name); in verify_protection()
3035 logv("Region is %s-unprotected as expected.", protection_name); in verify_protection()
3062 logv("Reading from %s 0x%jx of read-protected range...", position, (uintmax_t)address); in access_readprotected_range_address()
3095 logv("Writing on %s 0x%jx of write-protected range...", position, (uintmax_t)address); in write_writeprotected_range_address()
3145 logv("%s-protecting 0x0 (0) bytes at various addresses...", protection_name); in protect_zero_size()
3153 logv("Protection successful."); in protect_zero_size()
3186 logv( in protect_wrapped_around_ranges()
3199 logv("Returned expected error on each range: %s.", mach_error_string(KERN_INVALID_ARGUMENT)); in protect_wrapped_around_ranges()
3231 logv( in assert_share_mode()
3242 logv("Region has a share mode of %s as expected.", share_mode_name); in assert_share_mode()
3244 logv("Bypassing share_mode verification (See <rdar://problem/12164664>)"); in assert_share_mode()
3255 logv("Copying (using mach_vm_copy()) from a %s source...", source_name); in assert_vmcopy_success()
3263 logv("Copy (mach_vm_copy()) was successful as expected."); in assert_vmcopy_success()
3292 logv("Modifying: source%s...", shared ? " (shared with other region)" : ""); in modify_one_and_verify_all_regions()
3297 logv("Modifying: destination..."); in modify_one_and_verify_all_regions()
3306 logv("Modifying: shared/copied%s...", shared ? " (shared with source region)" : ""); in modify_one_and_verify_all_regions()
3313 logv("Modification was successful as expected."); in modify_one_and_verify_all_regions()
3316 logv("Verifying: source... "); in modify_one_and_verify_all_regions()
3318 logv("destination... "); in modify_one_and_verify_all_regions()
3321 logv("shared/copied... "); in modify_one_and_verify_all_regions()
3324 logv("Verification was successful as expected."); in modify_one_and_verify_all_regions()
3336 logv("No shared/copied region as expected."); in test_vmcopy_fresh_source()
3379 logv("Modifying: shared..."); in test_vmcopy_shared_source()
3381 logv("Modification was successsful as expected."); in test_vmcopy_shared_source()
3382 logv("Verifying: source... "); in test_vmcopy_shared_source()
3384 logv("destination..."); in test_vmcopy_shared_source()
3386 logv("Verification was successful as expected."); in test_vmcopy_shared_source()
3400 logv("Verifying: shared..."); in test_vmcopy_shared_source()
3402 logv("Verification was successful as expected."); in test_vmcopy_shared_source()