Enumerations
enum Contiguity
| Name | Value |
|---|---|
| Contig | 0 |
| NonContig | 1 |
Defined at line 1049 of file ../../zircon/system/utest/core/vmo/vmo-clone2.cc
enum ResizeTarget
| Name | Value |
|---|---|
| Parent | 0 |
| Child | 1 |
Defined at line 1054 of file ../../zircon/system/utest/core/vmo/vmo-clone2.cc
Records
-
class Mapping -
class PhysVmo -
class ProgressiveCloneDiscardTests -
class ProgressiveCloneDiscardTests_ProgressiveCloneClose_Class -
class ProgressiveCloneDiscardTests_ProgressiveCloneTruncate_Class -
class TestLimiter -
class VmoClone2TestCase -
class VmoClone2TestCase_Children_Class -
class VmoClone2TestCase_CloneVmarWrite_Class -
class VmoClone2TestCase_CloneVmoWrite_Class -
class VmoClone2TestCase_CloseClone_Class -
class VmoClone2TestCase_CloseOriginal_Class -
class VmoClone2TestCase_DisjointCloneProgressive_Class -
class VmoClone2TestCase_DisjointCloneTest2_Class -
class VmoClone2TestCase_DropChildrenInParallel_Class -
class VmoClone2TestCase_DropParentCommittedBytes_Class -
class VmoClone2TestCase_ForbidContiguousVmo_Class -
class VmoClone2TestCase_Info_Class -
class VmoClone2TestCase_ManyChildrenRevClose_Class -
class VmoClone2TestCase_ManyChildren_Class -
class VmoClone2TestCase_ManyCloneMappingOffset_Class -
class VmoClone2TestCase_ManyCloneMapping_Class -
class VmoClone2TestCase_ManyCloneOffset_Class -
class VmoClone2TestCase_MapRangeReadOnly_Class -
class VmoClone2TestCase_MarkerClearsSplitBits_Class -
class VmoClone2TestCase_NoAccumulatedOverflow_Class -
class VmoClone2TestCase_NoPhysical_Class -
class VmoClone2TestCase_NoSnapshotPager_Class -
class VmoClone2TestCase_ObjMemAccounting_Class -
class VmoClone2TestCase_OffsetProgressiveWrite_Class -
class VmoClone2TestCase_OffsetTest2_Class -
class VmoClone2TestCase_Offset_Class -
class VmoClone2TestCase_OutOfBounds_Class -
class VmoClone2TestCase_Overflow_Class -
class VmoClone2TestCase_ParentStartLimitRegression_Class -
class VmoClone2TestCase_ParentVmarWrite_Class -
class VmoClone2TestCase_ParentVmoWrite_Class -
class VmoClone2TestCase_PinBeforeCreateFailure_Class -
class VmoClone2TestCase_PinClonePages_Class -
class VmoClone2TestCase_Read_Class -
class VmoClone2TestCase_ResizeDisjointChild_Class -
class VmoClone2TestCase_ResizeGrow_Class -
class VmoClone2TestCase_ResizeMultipleProgressive_Class -
class VmoClone2TestCase_ResizeOffsetChild_Class -
class VmoClone2TestCase_ResizeOverSiblingRange_Class -
class VmoClone2TestCase_SmallCloneChild_Class -
class VmoClone2TestCase_SmallClone_Class -
class VmoClone2TestCase_SmallClones_Class -
class VmoClone2TestCase_SnapshotAtLeastOnWriteSliceInChain_Class -
class VmoClone2TestCase_SplitPageClosure_Class -
class VmoClone2TestCase_Uncached_Class -
class VmoClone2TestCase_ZeroPageWrite_Class -
class VmoCloneDisjointClonesTests -
class VmoCloneDisjointClonesTests_DisjointCloneEarlyClose_Class -
class VmoCloneDisjointClonesTests_DisjointCloneLateClose_Class -
class VmoCloneResizeTests -
class VmoCloneResizeTests_ResizeChild_Class -
class VmoCloneResizeTests_ResizeOriginal_Class -
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
-
bool AllSameVal (uint8_t * ptr, size_t len, uint8_t val)Defined at line 22 of file ../../zircon/system/utest/core/vmo/vmo-zero.cc
-
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 54 of file ../../zircon/system/utest/core/vmo/helpers.h
-
zx::bti CreateNamedBti (const zx::iommu & fake_iommu, uint32_t options, uint64_t bti_id, const char * name)Defined at line 86 of file ../../zircon/system/utest/core/vmo/helpers.cc
-
template <size_t N>void CheckContigState (const zx::bti & bti, const zx::vmo & vmo)Helper function which checks that the give vmo is contiguous.
Defined at line 95 of file ../../zircon/system/utest/core/vmo/vmo-clone2.cc
-
template <typename T>void CallPermutationsHelper (T fn, uint32_t count, uint32_t[] perm, bool[] elts, uint32_t idx)Helper function for CallPermutations
Defined at line 110 of file ../../zircon/system/utest/core/vmo/vmo-clone2.cc
-
template <typename T>void CallPermutations (T fn, uint32_t count)Function which invokes |fn| with all the permutations of [0...count-1].
Defined at line 131 of file ../../zircon/system/utest/core/vmo/vmo-clone2.cc
-
void VmoWriteTestHelper (bool clone_write)Tests that zx_vmo_write into the (clone|parent) doesn't affect the other.
Defined at line 190 of file ../../zircon/system/utest/core/vmo/vmo-clone2.cc
-
void VmarWriteTestHelper (bool clone_write)Tests that writing into the mapped (clone|parent) doesn't affect the other.
Defined at line 212 of file ../../zircon/system/utest/core/vmo/vmo-clone2.cc
-
void CloseTestHelper (bool close_orig)Tests that closing the (parent|clone) doesn't affect the other.
Defined at line 240 of file ../../zircon/system/utest/core/vmo/vmo-clone2.cc
-
void ManyChildrenTestHelper (bool reverse_close)Tests that child count and zero child signals for when there are many children. Tests
with closing the children both in the order they were created and the reverse order.
Defined at line 1431 of file ../../zircon/system/utest/core/vmo/vmo-clone2.cc