mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +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;
|
||||
}
|
||||
|
||||
/* 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);
|
||||
|
||||
Reference in New Issue
Block a user