Add support for looking up kernel symbols from /proc/kallsyms

2007-09-16  Soren Sandmann <sandmann@daimi.au.dk>

	* process.c (process_lookup_kernel_symbol): Add support for
	looking up kernel symbols from /proc/kallsyms

	* sysprof-text.c (dump_data): Print note that the file is being
	saved.

	* module/sysprof-module.[ch] (timer_notify): Send a copy of the
	kernel stack to userspace.

	* collector.c: Do kernel symbol lookups.
	

svn path=/trunk/; revision=372
This commit is contained in:
Soren Sandmann
2007-09-17 01:43:07 +00:00
committed by Søren Sandmann Pedersen
parent 39cb26654a
commit f1cbdbf27c
9 changed files with 354 additions and 111 deletions

View File

@ -25,6 +25,7 @@
#include <fcntl.h>
#include <signal.h>
#include <glib.h>
#include <stdio.h>
#include "stackstash.h"
#include "module/sysprof-module.h"
@ -46,18 +47,23 @@ static void
dump_data (Application *app)
{
GError *err = NULL;
Profile *profile = collector_create_profile (app->collector);
Profile *profile;
printf ("Saving profile in %s ... ", app->outfile);
fflush (stdout);
profile = collector_create_profile (app->collector);
profile_save (profile, app->outfile, &err);
if (err)
{
printf ("failed\n");
fprintf (stderr, "Error saving %s: %s\n", app->outfile, err->message);
exit (1);
}
else
{
printf ("Saved profile in %s\n\n", app->outfile);
printf ("done\n\n");
}
}