2024-11-08 23:07:30 +00:00
|
|
|
From 2f9eb12a3348ae41d51bbeb56fd293c5204b7851 Mon Sep 17 00:00:00 2001
|
2024-11-06 20:39:21 +00:00
|
|
|
From: Christian Hergert <chergert@redhat.com>
|
|
|
|
Date: Wed, 23 Oct 2024 11:54:33 -0700
|
2024-11-08 23:07:30 +00:00
|
|
|
Subject: [PATCH 13/31] libsysprof: remove unnecessary address calculation
|
2024-11-06 20:39:21 +00:00
|
|
|
|
|
|
|
We are only fallback symbols here, which is 1 address-wide.
|
|
|
|
---
|
|
|
|
src/libsysprof/sysprof-document-symbols.c | 11 +----------
|
|
|
|
1 file changed, 1 insertion(+), 10 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/src/libsysprof/sysprof-document-symbols.c b/src/libsysprof/sysprof-document-symbols.c
|
|
|
|
index e5584a69..642f702b 100644
|
|
|
|
--- a/src/libsysprof/sysprof-document-symbols.c
|
|
|
|
+++ b/src/libsysprof/sysprof-document-symbols.c
|
|
|
|
@@ -100,8 +100,6 @@ do_symbolize (SysprofSymbolizer *symbolizer,
|
|
|
|
guint64 map_begin;
|
|
|
|
guint64 map_end;
|
|
|
|
guint64 relative_address;
|
|
|
|
- guint64 begin_address;
|
|
|
|
- guint64 end_address;
|
|
|
|
guint64 file_offset;
|
|
|
|
|
|
|
|
if ((ret = _sysprof_symbolizer_symbolize (symbolizer, strings, process_info, last_context, address)))
|
|
|
|
@@ -132,21 +130,14 @@ do_symbolize (SysprofSymbolizer *symbolizer,
|
|
|
|
|
|
|
|
path = sysprof_document_mmap_get_file (map);
|
|
|
|
|
|
|
|
- begin_address = CLAMP (begin_address, file_offset, file_offset + (map_end - map_begin));
|
|
|
|
- end_address = CLAMP (end_address, file_offset, file_offset + (map_end - map_begin));
|
|
|
|
- if (end_address == begin_address)
|
|
|
|
- end_address++;
|
|
|
|
-
|
|
|
|
name = g_strdup_printf ("In File %s+0x%"G_GINT64_MODIFIER"x",
|
|
|
|
sysprof_document_mmap_get_file (map),
|
|
|
|
relative_address);
|
|
|
|
- begin_address = address;
|
|
|
|
- end_address = address + 1;
|
|
|
|
|
|
|
|
ret = _sysprof_symbol_new (sysprof_strings_get (strings, name),
|
|
|
|
sysprof_strings_get (strings, path),
|
|
|
|
sysprof_strings_get (strings, nick),
|
|
|
|
- begin_address, end_address,
|
|
|
|
+ address, address + 1,
|
|
|
|
SYSPROF_SYMBOL_KIND_USER);
|
|
|
|
ret->is_fallback = TRUE;
|
|
|
|
|
|
|
|
--
|
|
|
|
2.45.2
|
|
|
|
|