[sysprof] libsysprof: add context check for inline symbol decoding
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] libsysprof: add context check for inline symbol decoding
- Date: Wed, 26 Feb 2020 18:55:53 +0000 (UTC)
commit 1fbeabf2a24408209b9c62816d444f156ebd6911
Author: Christian Hergert <chergert redhat com>
Date: Wed Feb 26 10:55:34 2020 -0800
libsysprof: add context check for inline symbol decoding
src/libsysprof/sysprof-symbol-map.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/libsysprof/sysprof-symbol-map.c b/src/libsysprof/sysprof-symbol-map.c
index 1d52f5c..2ff57d5 100644
--- a/src/libsysprof/sysprof-symbol-map.c
+++ b/src/libsysprof/sysprof-symbol-map.c
@@ -313,6 +313,10 @@ sysprof_symbol_map_do_sample (SysprofSymbolMap *self,
continue;
}
+ /* Handle backtrace() style backtraces with no context switch */
+ if (last_context == SYSPROF_ADDRESS_CONTEXT_NONE)
+ last_context = SYSPROF_ADDRESS_CONTEXT_USER;
+
for (guint j = 0; j < self->resolvers->len; j++)
{
SysprofSymbolResolver *resolver = g_ptr_array_index (self->resolvers, j);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]