A simple API to access /proc/self/maps info. More...
#include <procmaps.h>
Classes | |
struct | Entry |
Public Types | |
typedef std::vector< Entry, boost::pool_allocator< 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) |
const_iterator | begin () const |
const_iterator | end () const |
void | loadMaps (bool dump=false) |
load/refresh info from /proc/self/map | |
Static Public Member Functions | |
static const procmaps_t & | pmaps () |
access underlying entries |
A simple API to access /proc/self/maps info.
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