[sysprof] libsysprof: remove /sysroot/ workaround
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] libsysprof: remove /sysroot/ workaround
- Date: Fri, 27 Aug 2021 00:12:48 +0000 (UTC)
commit 5f255403aa8b34ef3a240d948d155647a0935aaa
Author: Christian Hergert <chergert redhat com>
Date: Thu Aug 26 17:12:37 2021 -0700
libsysprof: remove /sysroot/ workaround
This isnt really need anymore now that we have other ways of resolving this.
It fixes an issue with resolving some symbols on systems like GNOME OS.
src/libsysprof/sysprof-elf-symbol-resolver.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/src/libsysprof/sysprof-elf-symbol-resolver.c b/src/libsysprof/sysprof-elf-symbol-resolver.c
index a38262a..ddf5917 100644
--- a/src/libsysprof/sysprof-elf-symbol-resolver.c
+++ b/src/libsysprof/sysprof-elf-symbol-resolver.c
@@ -146,19 +146,9 @@ sysprof_elf_symbol_resolver_load (SysprofSymbolResolver *resolver,
{
const SysprofCaptureMap *ev = sysprof_capture_reader_read_map (reader);
SysprofMapLookaside *lookaside = g_hash_table_lookup (self->lookasides, GINT_TO_POINTER
(ev->frame.pid));
- const char *filename;
+ const char *filename = ev->filename;
SysprofMap map;
- /* Some systems using OSTree will have /sysroot/ as a prefix for
- * filenames, which we want to skip over so that we can resolve the
- * files as we see them inside the user-space view of the system.
- */
-
- if (strncmp (ev->filename, "/sysroot/", 9) == 0)
- filename = ev->filename + 9;
- else
- filename = ev->filename;
-
map.start = ev->start;
map.end = ev->end;
map.offset = ev->offset;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]