mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
elf: handle NULL lookaside
This code uses the hashtable directly to avoid the overhead of calling the path which creates ProcessInfo entries. So we need to also handle the chance the lookaside is NULL.
This commit is contained in:
@ -554,8 +554,10 @@ sysprof_elf_symbol_resolver_resolve_full (SysprofElfSymbolResolver *self,
|
||||
if (!(pi = g_hash_table_lookup (self->processes, GINT_TO_POINTER (pid))))
|
||||
return FALSE;
|
||||
|
||||
map = sysprof_map_lookaside_lookup (pi->lookaside, address);
|
||||
if G_UNLIKELY (map == NULL)
|
||||
if (pi->lookaside == NULL)
|
||||
return FALSE;
|
||||
|
||||
if (!(map = sysprof_map_lookaside_lookup (pi->lookaside, address)))
|
||||
return FALSE;
|
||||
|
||||
address -= map->start;
|
||||
|
||||
Reference in New Issue
Block a user