Complain if we can't find /lib/modules/uname -r/build/Makefile.

Tue Aug 30 16:57:33 2005  Søren Sandmann  <sandmann@redhat.com>

	* configure.ac: Complain if we can't find /lib/modules/`uname
	-r`/build/Makefile.

	* process.c (process_lookup_symbol): Take an address of 0x1 to
	mean "in kernel".

	* module/sysprof-module.c (timer_notify): When reporting in-kernel
	time, give the current pid instead of -1.

	* TODO: updates
This commit is contained in:
Søren Sandmann
2005-08-30 20:58:18 +00:00
committed by Søren Sandmann Pedersen
parent 509d5f07ed
commit ee53bcffd4
5 changed files with 50 additions and 14 deletions

View File

@ -342,17 +342,26 @@ process_lookup_symbol (Process *process, gulong address)
{
static Symbol undefined;
const Symbol *result;
static Symbol kernel;
Map *map = process_locate_map (process, address);
/* g_print ("addr: %x\n", address); */
if (!map)
{
if (undefined.name)
g_free (undefined.name);
undefined.name = g_strdup_printf ("??? %s", process->cmdline);
undefined.address = 0xBABE0001;
if (address == 0x1)
{
kernel.name = "in kernel";
kernel.address = 0x0001337;
return &kernel;
}
else
{
if (undefined.name)
g_free (undefined.name);
undefined.name = g_strdup_printf ("??? %s", process->cmdline);
undefined.address = 0xBABE0001;
}
#if 0
g_print ("no map for %p (%s)\n", address, process->cmdline);
#endif