geopm 3.1.1.dev410+g40bf96ed
GEOPM - Global Extensible Open Power Manager
Loading...
Searching...
No Matches
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

namespace  geopm
 

Functions

std::shared_ptr< ELFgeopm::elf (const std::string &file_path)
 Factory method to construct an ELF pointer from a path to an ELF encoded file.
 
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.
 
std::pair< size_t, std::string > geopm::symbol_lookup (const void *instruction_ptr)
 Look up the nearest symbol lower than an instruction address.