mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof: fix kernel symbols init
This commit is contained in:
@ -107,7 +107,9 @@ sysprof_kernel_symbol_load (void)
|
|||||||
if (!sysprof_helpers_get_proc_file (helpers, "/proc/kallsyms", NULL, &contents, NULL))
|
if (!sysprof_helpers_get_proc_file (helpers, "/proc/kallsyms", NULL, &contents, NULL))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
kernel_symbol_strs = g_string_chunk_new (4096 * 4);
|
||||||
kallsyms = sysprof_kallsyms_new_take (g_steal_pointer (&contents));
|
kallsyms = sysprof_kallsyms_new_take (g_steal_pointer (&contents));
|
||||||
|
ar = g_array_new (FALSE, FALSE, sizeof (SysprofKernelSymbol));
|
||||||
|
|
||||||
while (sysprof_kallsyms_next (kallsyms, &name, &addr, &type))
|
while (sysprof_kallsyms_next (kallsyms, &name, &addr, &type))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user