mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Make this function return a list of immediate callers again.
2006-10-09 Soren Sandmann <sandmann@daimi.au.dk> * profile.c (profile_list_callers): Make this function return a list of immediate callers again. * sysprof.c (build_gui): Change label back to "Callers" * process.c (get_kernel_symbols): Only attempt to read the kernel symbols once.
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
6475029375
commit
df07f71539
@ -555,9 +555,10 @@ parse_kallsyms (const char *kallsyms,
|
||||
static GHashTable *
|
||||
get_kernel_symbols (void)
|
||||
{
|
||||
static gboolean read_symbols = FALSE;
|
||||
static GHashTable *kernel_syms;
|
||||
|
||||
if (!kernel_syms)
|
||||
if (!read_symbols)
|
||||
{
|
||||
char *kallsyms;
|
||||
g_file_get_contents ("/proc/kallsyms", &kallsyms, NULL, NULL);
|
||||
@ -572,6 +573,8 @@ get_kernel_symbols (void)
|
||||
g_free (kallsyms);
|
||||
g_hash_table_destroy (kernel_syms);
|
||||
}
|
||||
|
||||
read_symbols = TRUE;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user