ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
procmaps::Entry Struct Reference

#include <procmaps.h>

Collaboration diagram for procmaps::Entry:

Public Member Functions

 Entry (const char *line)
 

Public Attributes

unsigned long begAddress
 
unsigned long endAddress
 
bool readable
 
bool writable
 
bool executable
 
bool isPrivate
 
unsigned int offset
 =true page is private(COW), =false page is shared More...
 
unsigned int dev [2]
 
ino_t inode
 dev[0] major, dev[1] minor More...
 
std::string pathname
 

Detailed Description

Definition at line 20 of file procmaps.h.

Constructor & Destructor Documentation

◆ Entry()

procmaps::Entry::Entry ( const char *  line)

Definition at line 11 of file procmaps.cxx.

11  :
12  begAddress(0),endAddress(0),
13  readable(false), writable(false), executable(false), isPrivate(false),
14  offset(0), inode(0)
15 {
16  dev[0]=0; dev[1]=0;
17  char pageProts[5];
18  memset(pageProts,' ', 4);
19  uint64_t inode_tmp;
20  char path[2048] = "";
21  sscanf(procMapsLine,
22  "%80lx-%80lx %4s %80x %4x:%4x %80lu %2047s",
23  &this->begAddress,
24  &this->endAddress,
25  pageProts,
26  &this->offset,
27  &this->dev[0],
28  &this->dev[1],
29  &inode_tmp,
30  path
31  );
32  this->inode = inode_tmp;
33  this->pathname = std::string (path);
34  //printf("pageProts %s pathname <%s> \n", pageProts, pathname);
35  this->readable = (pageProts[0] == 'r');
36  this->writable = (pageProts[1] == 'w');
37  this->executable = (pageProts[2] == 'x');
38  this->isPrivate = (pageProts[3] == 'p');
39 }

Member Data Documentation

◆ begAddress

unsigned long procmaps::Entry::begAddress

Definition at line 22 of file procmaps.h.

◆ dev

unsigned int procmaps::Entry::dev[2]

Definition at line 29 of file procmaps.h.

◆ endAddress

unsigned long procmaps::Entry::endAddress

Definition at line 23 of file procmaps.h.

◆ executable

bool procmaps::Entry::executable

Definition at line 26 of file procmaps.h.

◆ inode

ino_t procmaps::Entry::inode

dev[0] major, dev[1] minor

Definition at line 30 of file procmaps.h.

◆ isPrivate

bool procmaps::Entry::isPrivate

Definition at line 27 of file procmaps.h.

◆ offset

unsigned int procmaps::Entry::offset

=true page is private(COW), =false page is shared

Definition at line 28 of file procmaps.h.

◆ pathname

std::string procmaps::Entry::pathname

Definition at line 31 of file procmaps.h.

◆ readable

bool procmaps::Entry::readable

Definition at line 24 of file procmaps.h.

◆ writable

bool procmaps::Entry::writable

Definition at line 25 of file procmaps.h.


The documentation for this struct was generated from the following files:
athena.path
path
python interpreter configuration --------------------------------------—
Definition: athena.py:128
procmaps::Entry::writable
bool writable
Definition: procmaps.h:25
procmaps::Entry::isPrivate
bool isPrivate
Definition: procmaps.h:27
procmaps::Entry::readable
bool readable
Definition: procmaps.h:24
procmaps::Entry::inode
ino_t inode
dev[0] major, dev[1] minor
Definition: procmaps.h:30
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
procmaps::Entry::executable
bool executable
Definition: procmaps.h:26
procmaps::Entry::endAddress
unsigned long endAddress
Definition: procmaps.h:23
procmaps::Entry::dev
unsigned int dev[2]
Definition: procmaps.h:29
procmaps::Entry::pathname
std::string pathname
Definition: procmaps.h:31
procmaps::Entry::begAddress
unsigned long begAddress
Definition: procmaps.h:22
procmaps::Entry::offset
unsigned int offset
=true page is private(COW), =false page is shared
Definition: procmaps.h:28
inode
Definition: listroot.cxx:155