mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-analyze: fix binary-nick usage
This commit is contained in:
@ -131,8 +131,8 @@ sysprof_elf_symbolizer_symbolize (SysprofSymbolizer *symbolizer,
|
|||||||
end_address++;
|
end_address++;
|
||||||
|
|
||||||
return _sysprof_symbol_new (sysprof_strings_get (strings, name),
|
return _sysprof_symbol_new (sysprof_strings_get (strings, name),
|
||||||
sysprof_strings_get (strings, sysprof_elf_get_nick (elf)),
|
|
||||||
sysprof_strings_get (strings, path),
|
sysprof_strings_get (strings, path),
|
||||||
|
sysprof_strings_get (strings, sysprof_elf_get_nick (elf)),
|
||||||
map_begin + (begin_address - file_offset),
|
map_begin + (begin_address - file_offset),
|
||||||
map_begin + (end_address - file_offset));
|
map_begin + (end_address - file_offset));
|
||||||
|
|
||||||
|
|||||||
@ -276,8 +276,8 @@ sysprof_kallsyms_symbolizer_symbolize (SysprofSymbolizer *symbolizer,
|
|||||||
if (address >= ksym->address &&
|
if (address >= ksym->address &&
|
||||||
(address < next->address || next->address == 0))
|
(address < next->address || next->address == 0))
|
||||||
return _sysprof_symbol_new (g_ref_string_acquire (ksym->name),
|
return _sysprof_symbol_new (g_ref_string_acquire (ksym->name),
|
||||||
g_ref_string_acquire (linux_string),
|
|
||||||
NULL,
|
NULL,
|
||||||
|
g_ref_string_acquire (linux_string),
|
||||||
ksym->address,
|
ksym->address,
|
||||||
next->address ? next->address : ksym->address + LAST_SYMBOL_LEN);
|
next->address ? next->address : ksym->address + LAST_SYMBOL_LEN);
|
||||||
|
|
||||||
@ -295,8 +295,8 @@ failure:
|
|||||||
|
|
||||||
g_snprintf (name, sizeof name, "In Kernel+0x%"G_GINT64_MODIFIER"x", address);
|
g_snprintf (name, sizeof name, "In Kernel+0x%"G_GINT64_MODIFIER"x", address);
|
||||||
return _sysprof_symbol_new (sysprof_strings_get (strings, name),
|
return _sysprof_symbol_new (sysprof_strings_get (strings, name),
|
||||||
g_ref_string_acquire (linux_string),
|
|
||||||
NULL,
|
NULL,
|
||||||
|
g_ref_string_acquire (linux_string),
|
||||||
address,
|
address,
|
||||||
address + 1);
|
address + 1);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -42,8 +42,8 @@ struct _SysprofSymbol
|
|||||||
};
|
};
|
||||||
|
|
||||||
SysprofSymbol *_sysprof_symbol_new (GRefString *name,
|
SysprofSymbol *_sysprof_symbol_new (GRefString *name,
|
||||||
GRefString *binary_nick,
|
|
||||||
GRefString *binary_path,
|
GRefString *binary_path,
|
||||||
|
GRefString *binary_nick,
|
||||||
SysprofAddress begin_address,
|
SysprofAddress begin_address,
|
||||||
SysprofAddress end_address);
|
SysprofAddress end_address);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user