Records
-
class Mapping -
class PhysVmo -
class TestLimiter -
class VmoZeroTestCase_AllocateAfterMergeMultipleChildren_Class -
class VmoZeroTestCase_AllocateAfterMerge_Class -
class VmoZeroTestCase_ChildZeroThenWrite_Class -
class VmoZeroTestCase_ContentInParentAndChild_Class -
class VmoZeroTestCase_Contiguous_Class -
class VmoZeroTestCase_DecommitMiddle_Class -
class VmoZeroTestCase_EmptyCowChildren_Class -
class VmoZeroTestCase_MergeZeroChildren_Class -
class VmoZeroTestCase_Nested_Class -
class VmoZeroTestCase_ResizeOverHiddenMarkers_Class -
class VmoZeroTestCase_UnalignedCommitted_Class -
class VmoZeroTestCase_UnalignedSubPage_Class -
class VmoZeroTestCase_UnalignedUnCommitted_Class -
class VmoZeroTestCase_WriteCowParent_Class -
class VmoZeroTestCase_ZeroLengths_Class -
class VmoZeroTestcase_ZeroFreesAndAllocates_Class -
class VmoZeroTestcase_ZeroHiddenNoContent_Class
Functions
-
zx::result<PhysVmo> GetTestPhysVmo (size_t size)Create and return a physical VMO from the reserved regions of RAM. |size|
indicates the desired size of the VMO, or 0 to fetch the entire reserved
region of RAM, whatever its size might be.
Defined at line 17 of file ../../zircon/system/utest/core/vmo/helpers.cc
-
void VmoWrite (const zx::vmo &vmo,uint32_tdata,uint64_toffset)Defined at line 22 of file ../../zircon/system/utest/core/vmo/helpers.h
-
bool AllSameVal (uint8_t *ptr,size_tlen,uint8_tval)Defined at line 22 of file ../../zircon/system/utest/core/vmo/vmo-zero.cc
-
uint32_t VmoRead (const zx::vmo & vmo, uint64_t offset)Defined at line 27 of file ../../zircon/system/utest/core/vmo/helpers.h
-
void VmoCheck (const zx::vmo &vmo,uint32_texpected,uint64_toffset)Defined at line 34 of file ../../zircon/system/utest/core/vmo/helpers.h
-
void InitPageTaggedVmo (uint32_t page_count, zx::vmo * vmo)Creates a vmo with |page_count| pages and writes (page_index + 1) to each page.
Defined at line 42 of file ../../zircon/system/utest/core/vmo/helpers.h
-
template <typename Predicate>bool PollVmoInfoUntil (const zx::vmo & vmo, Predicate && predicate)Repeatedly poll VMO until |predicate| returns true or an error occurs.
Returns true on success, false on error.
|Predicate| is a function that accepts |const zx_info_vmo_t
&
| and returns |bool|.
Defined at line 57 of file ../../zircon/system/utest/core/vmo/helpers.h
-
size_t VmoNumChildren (const zx::vmo & vmo)Defined at line 70 of file ../../zircon/system/utest/core/vmo/helpers.h
-
bool PollVmoNumChildren (const zx::vmo & vmo, size_t expected_num_children)Repeatedly poll |vmo| until the |expected_num_children| is observed.
Returns true on success, false on error.
Defined at line 81 of file ../../zircon/system/utest/core/vmo/helpers.h
-
zx::bti CreateNamedBti (const zx::iommu &fake_iommu,uint32_toptions,uint64_tbti_id,const char *name)Defined at line 86 of file ../../zircon/system/utest/core/vmo/helpers.cc
-
size_t VmoPopulatedBytes (const zx::vmo & vmo)Defined at line 92 of file ../../zircon/system/utest/core/vmo/helpers.h
-
size_t VmoPopulatedFractionalBytes (const zx::vmo & vmo)Defined at line 101 of file ../../zircon/system/utest/core/vmo/helpers.h
-
bool PollVmoPopulatedBytes (const zx::vmo & vmo, size_t expected_populated_bytes)Repeatedly poll |vmo| until the |expected_populated_bytes| is observed.
Returns true on success, false on error.
Defined at line 112 of file ../../zircon/system/utest/core/vmo/helpers.h
-
deferred_action<(lambda at ../../zircon/system/utest/core/vmo/helpers.h:137:21)> CreateDeferredBtiCheck (const zx::bti & bti)Create a fit::defer which will check a BTI to make certain that it has no
pinned or quarantined pages when it goes out of scope, and fail the test if
it does.
Defined at line 136 of file ../../zircon/system/utest/core/vmo/helpers.h
-
template <size_t PageCountuint8_t FillByte = 0>std::span<const uint8_t> TestFillPages ()For the given number of pages and fill byte value, return a
permanently-usable, read-only buffer. The first call for each page count
and byte value will allocate and fill the buffer, and subsequent calls will
just reuse the same one. All these buffers live forever once they are used,
but there is a limited number of PageCount, FillByte combinations used in
each test and the page counts are not huge.
Defined at line 255 of file ../../zircon/system/utest/core/vmo/helpers.h