mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof: add context check for inline symbol decoding
This commit is contained in:
@ -313,6 +313,10 @@ sysprof_symbol_map_do_sample (SysprofSymbolMap *self,
|
|||||||
continue;
|
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++)
|
for (guint j = 0; j < self->resolvers->len; j++)
|
||||||
{
|
{
|
||||||
SysprofSymbolResolver *resolver = g_ptr_array_index (self->resolvers, j);
|
SysprofSymbolResolver *resolver = g_ptr_array_index (self->resolvers, j);
|
||||||
|
|||||||
Reference in New Issue
Block a user