geopm  3.1.1.dev296+g5916b956
GEOPM - Global Extensible Open Power Manager
Classes | Namespaces | Functions
ELF.cpp File Reference
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <libelf.h>
#include <gelf.h>
#include <dlfcn.h>
#include <cxxabi.h>
#include <iostream>
#include <climits>
#include "ELF.hpp"
#include "geopm/Exception.hpp"
#include "geopm/Helper.hpp"
Include dependency graph for ELF.cpp:

Classes

class  geopm::ELF
 Class encapsulating interactions with ELF files. More...
 
class  geopm::ELFImp
 

Namespaces

 geopm
 

Functions

std::shared_ptr< ELF > geopm::elf (const std::string &file_path)
 Factory method to construct an ELF pointer from a path to an ELF encoded file. More...
 
std::map< size_t, std::string > geopm::elf_symbol_map (const std::string &file_path)
 Get a map from symbol location to symbol name for all symbols in an ELF file. More...
 
std::pair< size_t, std::string > geopm::symbol_lookup (const void *instruction_ptr)
 Look up the nearest symbol lower than an instruction address. More...