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()
1202 …logv("Allocating 0x%jx (%ju) byte%s...", (uintmax_t)buffer_size, (uintmax_t)buffer_size, (buffer_s… in allocate_buffer()
1204 logv( in allocate_buffer()
1285 …logv("Deallocating 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (siz… in deallocate_range()
1329 …logv("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()
1404 …logv("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()
1678 …logv("Returned expected error with each invalid flag: %s.", mach_error_string(KERN_INVALID_ARGUMEN… in test_allocate_with_kernel_flags()
1694 logv("Allocating 0x%jx (%ju) byte%s", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in test_allocate_superpage_with_incompatible_flags()
1696 logv(" at address 0x%jx", (uintmax_t)address); in test_allocate_superpage_with_incompatible_flags()
1698 logv(" with various incompatible flags..."); in test_allocate_superpage_with_incompatible_flags()
1715 …logv("Returned expected error with each invalid flag: %s.", mach_error_string(KERN_INVALID_ARGUMEN… in test_allocate_superpage_with_incompatible_flags()
1744 logv("Allocating 0x%jx (%ju) byte%s", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in test_mach_vm_map_protection_inheritance_error()
1746 logv(" at address 0x%jx", (uintmax_t)address); in test_mach_vm_map_protection_inheritance_error()
1748 logv( in test_mach_vm_map_protection_inheritance_error()
1771 logv("Returned expected error in each case: %s.", mach_error_string(KERN_INVALID_ARGUMENT)); in test_mach_vm_map_protection_inheritance_error()
1786 logv( in test_mach_vm_map_large_mask_overflow_error()
1793 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_mach_vm_map_large_mask_overflow_error()
1803 logv("Allocating 0x%jx (%ju) bytes...", (uintmax_t)size, (uintmax_t)size); in allocate_edge_size()
1805 logv("Returned expected value: %s.", mach_error_string(expected_kr)); in allocate_edge_size()
1835 logv("Creating named entry of 0x%jx (%ju) bytes...", (uintmax_t)size, (uintmax_t)size); in test_allocate_invalid_large_size()
1839 logv("Returned expected error: %s.", mach_error_string(KERN_FAILURE)); in test_allocate_invalid_large_size()
1867 …logv("Allocating 0x%jx (%ju) byte%s at address 0x0...", (uintmax_t)size, (uintmax_t)size, (size ==… in test_allocate_at_zero()
1869 logv("Returned expected value: %s.", mach_error_string(kr_expected)); in test_allocate_at_zero()
1875 logv("Allocated address 0x%jx is zero.", (uintmax_t)address); in test_allocate_at_zero()
1888 logv( in test_allocate_2MB_boundary_unaligned_page_aligned_address()
1898 …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()
1901 logv("Returned expected value: %s.", mach_error_string(kr_expected)); in test_allocate_2MB_boundary_unaligned_page_aligned_address()
1916 logv( in test_allocate_page_with_highest_address_hint()
1923 logv("Memory allocated at address 0x%jx.", (uintmax_t)address); in test_allocate_page_with_highest_address_hint()
1930 logv("Returned expected error: %s.", mach_error_string(KERN_NO_SPACE)); in test_allocate_page_with_highest_address_hint()
1944 logv( in test_allocate_first_fit_pages()
1948 logv("Found address 0x%jx.", (uintmax_t)address1); in test_allocate_first_fit_pages()
1951 logv( in test_allocate_first_fit_pages()
1955 logv("Found address 0x%jx.", (uintmax_t)address2); in test_allocate_first_fit_pages()
1962 logv("Allocating pages between 0x%jx and 0x%jx...", (uintmax_t)address1, (uintmax_t)address2); in test_allocate_first_fit_pages()
1970 logv("Expectedly returned error at each page."); in test_allocate_first_fit_pages()
1986 …logv("Will deallocate and read from %s 0x%jx of deallocated range...", position, (uintmax_t)addres… in access_deallocated_range_address()
2024 …logv("Deallocating 0x%jx (%ju) bytes at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (uint… in test_deallocate_suicide()
2053 …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()
2057 logv("Memory allocated."); in test_write_pattern_deallocate_reallocate_zero_filled()
2084 logv("Deallocating 0x0 (0) bytes at various addresses..."); in test_deallocate_zero_size_ranges()
2091 logv("Deallocations successful."); in test_deallocate_zero_size_ranges()
2117 logv( in test_deallocate_rounded_zero_end_ranges()
2128 logv("Deallocations successful."); in test_deallocate_rounded_zero_end_ranges()
2149 logv( in test_deallocate_wrapped_around_ranges()
2161 logv("Returned expected error on each range: %s.", mach_error_string(KERN_INVALID_ARGUMENT)); in test_deallocate_wrapped_around_ranges()
2172 logv("Deallocating 0x%jx (%ju) byte%s", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in test_deallocate_in_null_map()
2174 logv(" at address 0x%jx", (uintmax_t)address); in test_deallocate_in_null_map()
2176 logv(" in NULL VM map..."); in test_deallocate_in_null_map()
2178 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_deallocate_in_null_map()
2196 logv("Buffer address 0x%jx is aligned as expected.", (uintmax_t)address); in test_read_address_offset()
2203 logv( in test_read_address_offset()
2219 logv( in test_read_null_map()
2225 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_read_null_map()
2238 logv("Deallocating a mid-range page at address 0x%jx...", (uintmax_t)mid_point); in test_read_partially_deallocated_range()
2240 logv("Page deallocated."); in test_read_partially_deallocated_range()
2242 …logv("Reading 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in test_read_partially_deallocated_range()
2245 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_read_partially_deallocated_range()
2263 logv("Read-protecting a mid-range page at address 0x%jx...", (uintmax_t)mid_point); in test_read_partially_unreadable_range()
2265 logv("Page read-protected."); in test_read_partially_unreadable_range()
2267 …logv("Reading 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in test_read_partially_unreadable_range()
2270 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_read_partially_unreadable_range()
2294 logv("Reading 0x%jx (%ju) bytes at various addresses...", (uintmax_t)size, (uintmax_t)size); in read_edge_size()
2303 logv( in read_edge_size()
2343 logv( in test_read_wrapped_around_ranges()
2355 logv("Returned expected error on each range: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_read_wrapped_around_ranges()
2374 logv( in write_read_verify_pattern()
2379 logv("Pattern verified on destination buffer."); in write_read_verify_pattern()
2412 logv( in test_write_null_map()
2417 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_write_null_map()
2441 logv( in test_write_partially_deallocated_buffer()
2446 logv("Page deallocated."); in test_write_partially_deallocated_buffer()
2448 logv( in test_write_partially_deallocated_buffer()
2453 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_MEMORY)); in test_write_partially_deallocated_buffer()
2465 logv( in test_write_partially_unreadable_buffer()
2471 logv("Page read-protected."); in test_write_partially_unreadable_buffer()
2473 logv( in test_write_partially_unreadable_buffer()
2478 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_MEMORY)); in test_write_partially_unreadable_buffer()
2490 logv( in test_write_on_partially_deallocated_range()
2495 logv("Page deallocated."); in test_write_on_partially_deallocated_range()
2497 logv( in test_write_on_partially_deallocated_range()
2502 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_write_on_partially_deallocated_range()
2520 logv( in test_write_on_partially_unwritable_range()
2525 logv("Page write-protected."); in test_write_on_partially_unwritable_range()
2527 logv( in test_write_on_partially_unwritable_range()
2532 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_write_on_partially_unwritable_range()
2562 logv( in pattern_write()
2567 logv("Pattern verified on destination."); in pattern_write()
2600 logv( in test_copy_null_map()
2605 logv("Returned expected error: %s.", mach_error_string(MACH_SEND_INVALID_DEST)); in test_copy_null_map()
2626 logv("Allocating 0x%jx (%ju) byte%s...", (uintmax_t)size, (uintmax_t)size, (size == 1) ? "" : "s"); in copy_edge_size()
2628 logv("Copying 0x%jx (%ju) bytes at various addresses...", (uintmax_t)size, (uintmax_t)size); in copy_edge_size()
2637 logv( in copy_edge_size()
2678 logv("Allocating 0x1000 (4096) bytes..."); in test_copy_wrapped_around_ranges()
2681 logv( in test_copy_wrapped_around_ranges()
2693 logv("Returned expected error on each range: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_wrapped_around_ranges()
2714 logv( in write_copy_verify_pattern()
2719 logv( in write_copy_verify_pattern()
2724 logv("Pattern verified on destination region."); in write_copy_verify_pattern()
2768 logv("Deallocating a mid-range page at address 0x%jx...", (uintmax_t)mid_point); in test_copy_partially_deallocated_range()
2770 logv("Page deallocated."); in test_copy_partially_deallocated_range()
2772 …logv("Copying 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in test_copy_partially_deallocated_range()
2777 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_partially_deallocated_range()
2796 logv("Read-protecting a mid-range page at address 0x%jx...", (uintmax_t)mid_point); in test_copy_partially_unreadable_range()
2798 logv("Page read-protected."); in test_copy_partially_unreadable_range()
2800 …logv("Copying 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)size, (size == … in test_copy_partially_unreadable_range()
2803 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_copy_partially_unreadable_range()
2817 logv( in test_copy_dest_partially_deallocated_region()
2822 logv("Page deallocated."); in test_copy_dest_partially_deallocated_region()
2824 logv( in test_copy_dest_partially_deallocated_region()
2829 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_dest_partially_deallocated_region()
2831 logv( in test_copy_dest_partially_deallocated_region()
2846 logv( in test_copy_source_partially_deallocated_region()
2851 logv("Page deallocated."); in test_copy_source_partially_deallocated_region()
2853 logv( in test_copy_source_partially_deallocated_region()
2858 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_source_partially_deallocated_region()
2871 logv( in test_copy_source_partially_unreadable_region()
2876 logv("Page read-protected."); in test_copy_source_partially_unreadable_region()
2878 logv( in test_copy_source_partially_unreadable_region()
2884 logv("Returned expected error: %s.", mach_error_string(kr)); in test_copy_source_partially_unreadable_region()
2898 logv( in test_copy_dest_partially_unwriteable_region()
2903 logv("Page read-protected."); in test_copy_dest_partially_unwriteable_region()
2904 logv( in test_copy_dest_partially_unwriteable_region()
2914 logv("Returned expected error: %s.", mach_error_string(kr)); in test_copy_dest_partially_unwriteable_region()
2916 logv( in test_copy_dest_partially_unwriteable_region()
2931 logv( in test_copy_source_on_partially_deallocated_range()
2936 logv("Page deallocated."); in test_copy_source_on_partially_deallocated_range()
2938 logv( in test_copy_source_on_partially_deallocated_range()
2943 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_source_on_partially_deallocated_range()
2955 logv( in test_copy_dest_on_partially_deallocated_range()
2960 logv("Page deallocated."); in test_copy_dest_on_partially_deallocated_range()
2962 logv( in test_copy_dest_on_partially_deallocated_range()
2967 logv("Returned expected error: %s.", mach_error_string(KERN_INVALID_ADDRESS)); in test_copy_dest_on_partially_deallocated_range()
2985 logv( in test_copy_dest_on_partially_unwritable_range()
2990 logv("Page write-protected."); in test_copy_dest_on_partially_unwritable_range()
2992 logv( in test_copy_dest_on_partially_unwritable_range()
2997 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_copy_dest_on_partially_unwritable_range()
3015 logv( in test_copy_source_on_partially_unreadable_range()
3020 logv("Page read-protected."); in test_copy_source_on_partially_unreadable_range()
3022 logv( in test_copy_source_on_partially_unreadable_range()
3027 logv("Returned expected error: %s.", mach_error_string(kr_expected)); in test_copy_source_on_partially_unreadable_range()
3048 …logv("Setting read access on 0x%jx (%ju) byte%s at address 0x%jx...", (uintmax_t)size, (uintmax_t)… in test_zero_filled_readprotect()
3051 logv("Region has read access."); in test_zero_filled_readprotect()
3065 logv( in verify_protection()
3077 logv("Region is %s-protected as expected.", protection_name); in verify_protection()
3083 logv("Region is %s-unprotected as expected.", protection_name); in verify_protection()
3110 logv("Reading from %s 0x%jx of read-protected range...", position, (uintmax_t)address); in access_readprotected_range_address()
3143 logv("Writing on %s 0x%jx of write-protected range...", position, (uintmax_t)address); in write_writeprotected_range_address()
3193 logv("%s-protecting 0x0 (0) bytes at various addresses...", protection_name); in protect_zero_size()
3201 logv("Protection successful."); in protect_zero_size()
3234 logv( in protect_wrapped_around_ranges()
3247 logv("Returned expected error on each range: %s.", mach_error_string(KERN_INVALID_ARGUMENT)); in protect_wrapped_around_ranges()
3279 logv( in assert_share_mode()
3290 logv("Region has a share mode of %s as expected.", share_mode_name); in assert_share_mode()
3292 logv("Bypassing share_mode verification (See <rdar://problem/12164664>)"); in assert_share_mode()
3303 logv("Copying (using mach_vm_copy()) from a %s source...", source_name); in assert_vmcopy_success()
3311 logv("Copy (mach_vm_copy()) was successful as expected."); in assert_vmcopy_success()
3340 logv("Modifying: source%s...", shared ? " (shared with other region)" : ""); in modify_one_and_verify_all_regions()
3345 logv("Modifying: destination..."); in modify_one_and_verify_all_regions()
3354 logv("Modifying: shared/copied%s...", shared ? " (shared with source region)" : ""); in modify_one_and_verify_all_regions()
3361 logv("Modification was successful as expected."); in modify_one_and_verify_all_regions()
3364 logv("Verifying: source... "); in modify_one_and_verify_all_regions()
3366 logv("destination... "); in modify_one_and_verify_all_regions()
3369 logv("shared/copied... "); in modify_one_and_verify_all_regions()
3372 logv("Verification was successful as expected."); in modify_one_and_verify_all_regions()
3384 logv("No shared/copied region as expected."); in test_vmcopy_fresh_source()
3427 logv("Modifying: shared..."); in test_vmcopy_shared_source()
3429 logv("Modification was successsful as expected."); in test_vmcopy_shared_source()
3430 logv("Verifying: source... "); in test_vmcopy_shared_source()
3432 logv("destination..."); in test_vmcopy_shared_source()
3434 logv("Verification was successful as expected."); in test_vmcopy_shared_source()
3448 logv("Verifying: shared..."); in test_vmcopy_shared_source()
3450 logv("Verification was successful as expected."); in test_vmcopy_shared_source()