Skip to content

Commit

Permalink
Merge pull request #142 from behouba/pages-id-getter
Browse files Browse the repository at this point in the history
crit: add getter for `pagesID` field in `MemoryReader` struct
  • Loading branch information
rst0git committed Aug 2, 2023
2 parents d52dc0d + 7fb2b53 commit 7e6c665
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crit/mempages.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ type MemoryReader struct {
pagemapEntries []*pagemap.PagemapEntry
}

func (mr *MemoryReader) GetPagesID() uint32 {
return mr.pagesID
}

// NewMemoryReader creates a new instance of MemoryReader with all the fields populated
func NewMemoryReader(checkpointDir string, pid uint32, pageSize int) (*MemoryReader, error) {
if pageSize == 0 {
Expand Down

0 comments on commit 7e6c665

Please sign in to comment.