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:
Soren Sandmann
2006-10-11 05:37:24 +00:00
committed by Søren Sandmann Pedersen
parent 6475029375
commit df07f71539
5 changed files with 104 additions and 4 deletions

View File

@ -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;