geopm  3.1.1.dev214+gba4f9f6d
GEOPM - Global Extensible Open Power Manager
ELF.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 - 2024 Intel Corporation
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef ELF_HPP_INCLUDE
7 #define ELF_HPP_INCLUDE
8 
9 #include <string>
10 #include <memory>
11 #include <map>
12 
13 namespace geopm
14 {
21  std::pair<size_t, std::string> symbol_lookup(const void *instruction_ptr);
22 
27  std::map<size_t, std::string> elf_symbol_map(const std::string &file_path);
28 }
29 
30 #endif
Definition: Accumulator.cpp:12
std::pair< size_t, std::string > symbol_lookup(const void *instruction_ptr)
Look up the nearest symbol lower than an instruction address.
Definition: ELF.cpp:80
std::map< size_t, std::string > elf_symbol_map(const std::string &file_path)
Get a map from symbol location to symbol name for all symbols in an ELF file.
Definition: ELF.cpp:65