ATLAS Offline Software
|
A simple API to access /proc/self/maps info. More...
#include <procmaps.h>
Classes | |
struct | Entry |
Public Types | |
typedef std::vector< Entry > | procmaps_t |
typedef procmaps_t::const_iterator | const_iterator |
Public Member Functions | |
procmaps (size_t entries=1024) | |
const Entry * | getEntry (const void *address, bool tryReloadMaps=true) |
main entry point: get info for the page range containing address by default tries to reload /proc/self/maps when address is not found More... | |
const procmaps_t & | pmaps () const |
access underlying entries More... | |
const_iterator | begin () const |
const_iterator | end () const |
void | loadMaps (bool dump=false) |
load/refresh info from /proc/self/map More... | |
Private Attributes | |
procmaps_t | m_pmaps |
A simple API to access /proc/self/maps info.
On stopMonitoring/finalize the handler is uninstalled. On finalize a report of the accessed and unaccessed pages and addresses is produced. processing. Additional information can be added via setPageAccessControlInfo().
Properties: AutoMonitor: when true start monitoring on initialize, stop on finalize;
Definition at line 18 of file procmaps.h.
typedef procmaps_t::const_iterator procmaps::const_iterator |
Definition at line 38 of file procmaps.h.
typedef std::vector<Entry> procmaps::procmaps_t |
Definition at line 37 of file procmaps.h.
procmaps::procmaps | ( | size_t | entries = 1024 | ) |
Definition at line 41 of file procmaps.cxx.
|
inline |
Definition at line 46 of file procmaps.h.
|
inline |
Definition at line 47 of file procmaps.h.
const procmaps::Entry * procmaps::getEntry | ( | const void * | address, |
bool | tryReloadMaps = true |
||
) |
main entry point: get info for the page range containing address by default tries to reload /proc/self/maps when address is not found
Definition at line 59 of file procmaps.cxx.
void procmaps::loadMaps | ( | bool | dump = false | ) |
|
inline |
|
private |
Definition at line 53 of file procmaps.h.