sysprof r398 - trunk
- From: ssp svn gnome org
- To: svn-commits-list gnome org
- Subject: sysprof r398 - trunk
- Date: Sun, 24 Feb 2008 00:53:30 +0000 (GMT)
Author: ssp
Date: Sun Feb 24 00:53:29 2008
New Revision: 398
URL: http://svn.gnome.org/viewvc/sysprof?rev=398&view=rev
Log:
2008-02-23 Soren Sandmann <sandmann redhat com>
* process.c (process_lookup_symbol): Initialize offset to 1. Don't
do kernel lookup for unmapped addresses.
Modified:
trunk/ChangeLog
trunk/process.c
Modified: trunk/process.c
==============================================================================
--- trunk/process.c (original)
+++ trunk/process.c Sun Feb 24 00:53:29 2008
@@ -668,7 +668,7 @@
result = do_lookup ((KernelSymbol *)ksyms->data, address, 0, ksyms->len - 1);
if (result && offset)
*offset = address - result->address;
-
+
return result? result->name : NULL;
}
@@ -681,18 +681,20 @@
/* g_print ("addr: %x\n", address); */
+ if (offset)
+ {
+ /* If we don't have any offset, just return 1, so it doesn't
+ * look like a callback
+ */
+ *offset = 1;
+ }
+
if (address == 0x1)
{
return kernel;
}
else if (!map)
{
- gulong offset;
- const char *res = process_lookup_kernel_symbol (address, &offset);
-
- if (res && offset != 0)
- return res;
-
if (!process->undefined)
{
process->undefined =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]