mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
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:
committed by
Søren Sandmann Pedersen
parent
509d5f07ed
commit
ee53bcffd4
21
process.c
21
process.c
@ -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
|
||||
|
||||
Reference in New Issue
Block a user