ATLAS Offline Software
Loading...
Searching...
No Matches
PageAccessControl::Entry Class Reference

protection of a memory region (see mprotect(2)) More...

#include <PageAccessControl.h>

Collaboration diagram for PageAccessControl::Entry:

Public Member Functions

 Entry (const void *a, size_t l, int p, void *pl)

Public Attributes

const void * addr
 address of page for which protection was requested. Used as key
size_t lenProt
 length of the protected region, from page addr to end of protected obj
int prot
void * leak
 pointer to the heap fragment we leaked before protecting the page
int restored

Detailed Description

protection of a memory region (see mprotect(2))

Definition at line 76 of file PageAccessControl.h.

Constructor & Destructor Documentation

◆ Entry()

PageAccessControl::Entry::Entry ( const void * a,
size_t l,
int p,
void * pl )

Definition at line 15 of file PageAccessControl.cxx.

15 :
16 addr(page_address(a)), lenProt(l), prot(p), leak(pl), restored(0) {}
static Double_t a
const void * page_address(const void *addr)
void * leak
pointer to the heap fragment we leaked before protecting the page
size_t lenProt
length of the protected region, from page addr to end of protected obj
const void * addr
address of page for which protection was requested. Used as key

Member Data Documentation

◆ addr

const void* PageAccessControl::Entry::addr

address of page for which protection was requested. Used as key

Definition at line 79 of file PageAccessControl.h.

◆ leak

void* PageAccessControl::Entry::leak

pointer to the heap fragment we leaked before protecting the page

Definition at line 84 of file PageAccessControl.h.

◆ lenProt

size_t PageAccessControl::Entry::lenProt

length of the protected region, from page addr to end of protected obj

Definition at line 81 of file PageAccessControl.h.

◆ prot

int PageAccessControl::Entry::prot

Definition at line 82 of file PageAccessControl.h.

◆ restored

int PageAccessControl::Entry::restored

of times this entry protection has been restored. 0 means page was

never accessed

Definition at line 87 of file PageAccessControl.h.


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