mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
This allows us to have a sysroot different than /, so that we can resolve symbols that are not necessarily installed on the system. For example, if we are running an application in an alternate mount namespace, we will want to resolve the symbols starting from the location of the checkout for that namespace. Generally alternate mount namespaces will have paths like "/newroot/usr/.." so by setting the source to "/newroot/usr/" to "~/.local/" you can do some fancy remapping.
37 lines
1.3 KiB
C
37 lines
1.3 KiB
C
/* sp-elf-symbol-resolver.h
|
|
*
|
|
* Copyright (C) 2016 Christian Hergert <chergert@redhat.com>
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef SP_ELF_SYMBOL_RESOLVER_H
|
|
#define SP_ELF_SYMBOL_RESOLVER_H
|
|
|
|
#include "sp-symbol-resolver.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define SP_TYPE_ELF_SYMBOL_RESOLVER (sp_elf_symbol_resolver_get_type())
|
|
|
|
G_DECLARE_FINAL_TYPE (SpElfSymbolResolver, sp_elf_symbol_resolver, SP, ELF_SYMBOL_RESOLVER, GObject)
|
|
|
|
SpSymbolResolver *sp_elf_symbol_resolver_new (void);
|
|
void sp_elf_symbol_resolver_set_symbol_dirs (SpElfSymbolResolver *self,
|
|
GHashTable *symbol_dirs);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* SP_ELF_SYMBOL_RESOLVER_H */
|