The Pedigree Project 0.1
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
RawUserMemory::Plan Class Referencefinal
+ Inheritance diagram for RawUserMemory::Plan:
+ Collaboration diagram for RawUserMemory::Plan:

Public Member Functions

 Plan (RawUserMemory &owner)
 
size_t removedPages () const override
 
size_t addedPages () const override
 
size_t coveredPages () const override
 
size_t eligiblePages () const override
 
size_t removedRangeCount () const override
 
const MemoryLockRangeremovedRanges () const override
 
void commit () override
 
PopulationStatus populate () override
 
bool append (const State::Entry &entry)
 
bool appendPart (const State::Entry &entry, uintptr_t base, size_t length, MemoryLockMode mode)
 
bool retire (const State::Entry &entry, uintptr_t base, size_t length)
 
bool populateLater (UserRegion region)
 
bool addRegion (UserRegion region, MemoryLockMode mode)
 
void sort ()
 

Static Public Member Functions

static Plancreate (RawUserMemory &owner, UniquePointer< PreparedMemoryLock > &result)
 

Public Attributes

RawUserMemoryowner
 
uint64_t epoch
 
Vector< State::Entryentries
 
Vector< MemoryLockRangeretired
 
Vector< UserRegionpopulateRegions
 
size_t removed = 0
 
size_t added = 0
 
size_t covered = 0
 
size_t eligible = 0
 
bool committed = false
 

Detailed Description

Definition at line 29 of file RawUserMemory.cc.

Constructor & Destructor Documentation

◆ Plan()

RawUserMemory::Plan::Plan ( RawUserMemory owner)
inlineexplicit

Definition at line 31 of file RawUserMemory.cc.

Member Function Documentation

◆ addedPages()

size_t RawUserMemory::Plan::addedPages ( ) const
inlineoverridevirtual

Implements PreparedMemoryLock.

Definition at line 35 of file RawUserMemory.cc.

◆ addRegion()

bool RawUserMemory::Plan::addRegion ( UserRegion  region,
MemoryLockMode  mode 
)
inline

Definition at line 121 of file RawUserMemory.cc.

◆ append()

bool RawUserMemory::Plan::append ( const State::Entry entry)
inline

Definition at line 88 of file RawUserMemory.cc.

◆ appendPart()

bool RawUserMemory::Plan::appendPart ( const State::Entry entry,
uintptr_t  base,
size_t  length,
MemoryLockMode  mode 
)
inline

Definition at line 96 of file RawUserMemory.cc.

◆ commit()

void RawUserMemory::Plan::commit ( )
inlineoverridevirtual

Implements PreparedMemoryLock.

Definition at line 50 of file RawUserMemory.cc.

◆ coveredPages()

size_t RawUserMemory::Plan::coveredPages ( ) const
inlineoverridevirtual

Implements PreparedMemoryLock.

Definition at line 38 of file RawUserMemory.cc.

◆ create()

static Plan * RawUserMemory::Plan::create ( RawUserMemory owner,
UniquePointer< PreparedMemoryLock > &  result 
)
inlinestatic

Definition at line 167 of file RawUserMemory.cc.

◆ eligiblePages()

size_t RawUserMemory::Plan::eligiblePages ( ) const
inlineoverridevirtual

Implements PreparedMemoryLock.

Definition at line 41 of file RawUserMemory.cc.

◆ populate()

PopulationStatus RawUserMemory::Plan::populate ( )
inlineoverridevirtual

Implements PreparedMemoryLock.

Definition at line 67 of file RawUserMemory.cc.

◆ populateLater()

bool RawUserMemory::Plan::populateLater ( UserRegion  region)
inline

Definition at line 113 of file RawUserMemory.cc.

◆ removedPages()

size_t RawUserMemory::Plan::removedPages ( ) const
inlineoverridevirtual

Implements PreparedMemoryLock.

Definition at line 32 of file RawUserMemory.cc.

◆ removedRangeCount()

size_t RawUserMemory::Plan::removedRangeCount ( ) const
inlineoverridevirtual

Reimplemented from PreparedMemoryLock.

Definition at line 44 of file RawUserMemory.cc.

◆ removedRanges()

const MemoryLockRange * RawUserMemory::Plan::removedRanges ( ) const
inlineoverridevirtual

Reimplemented from PreparedMemoryLock.

Definition at line 47 of file RawUserMemory.cc.

◆ retire()

bool RawUserMemory::Plan::retire ( const State::Entry entry,
uintptr_t  base,
size_t  length 
)
inline

Definition at line 103 of file RawUserMemory.cc.

◆ sort()

void RawUserMemory::Plan::sort ( )
inline

Definition at line 139 of file RawUserMemory.cc.

Member Data Documentation

◆ added

size_t RawUserMemory::Plan::added = 0

Definition at line 182 of file RawUserMemory.cc.

◆ committed

bool RawUserMemory::Plan::committed = false

Definition at line 183 of file RawUserMemory.cc.

◆ covered

size_t RawUserMemory::Plan::covered = 0

Definition at line 182 of file RawUserMemory.cc.

◆ eligible

size_t RawUserMemory::Plan::eligible = 0

Definition at line 182 of file RawUserMemory.cc.

◆ entries

Vector<State::Entry> RawUserMemory::Plan::entries

Definition at line 179 of file RawUserMemory.cc.

◆ epoch

uint64_t RawUserMemory::Plan::epoch

Definition at line 178 of file RawUserMemory.cc.

◆ owner

RawUserMemory& RawUserMemory::Plan::owner

Definition at line 177 of file RawUserMemory.cc.

◆ populateRegions

Vector<UserRegion> RawUserMemory::Plan::populateRegions

Definition at line 181 of file RawUserMemory.cc.

◆ removed

size_t RawUserMemory::Plan::removed = 0

Definition at line 182 of file RawUserMemory.cc.

◆ retired

Vector<MemoryLockRange> RawUserMemory::Plan::retired

Definition at line 180 of file RawUserMemory.cc.


The documentation for this class was generated from the following file: