[sysprof/wip/chergert/mem-preload] elf: short-circuit symbol resolving
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/chergert/mem-preload] elf: short-circuit symbol resolving
- Date: Tue, 4 Feb 2020 19:21:21 +0000 (UTC)
commit 9a03b9f25782b674c59e71822fb938a8115c66c1
Author: Christian Hergert <chergert redhat com>
Date: Tue Feb 4 11:08:01 2020 -0800
elf: short-circuit symbol resolving
src/libsysprof/sysprof-elf-symbol-resolver.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/libsysprof/sysprof-elf-symbol-resolver.c b/src/libsysprof/sysprof-elf-symbol-resolver.c
index 5dec9ec..2425ed6 100644
--- a/src/libsysprof/sysprof-elf-symbol-resolver.c
+++ b/src/libsysprof/sysprof-elf-symbol-resolver.c
@@ -400,6 +400,14 @@ sysprof_elf_symbol_resolver_resolve_with_context (SysprofSymbolResolver *resolve
gchar *name = NULL;
SysprofCaptureAddress begin, end;
+ /* If not user context, nothing we can do here */
+ if (context != SYSPROF_ADDRESS_CONTEXT_USER)
+ return NULL;
+
+ /* If this is a jitmap entry, bail early to save some cycles */
+ if ((address & SYSPROF_CAPTURE_JITMAP_MARK) == SYSPROF_CAPTURE_JITMAP_MARK)
+ return NULL;
+
sysprof_elf_symbol_resolver_resolve_full (SYSPROF_ELF_SYMBOL_RESOLVER (resolver),
time,
pid,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]