*** empty log message ***
authorSøren Sandmann Pedersen <ssp@src.gnome.org>
Tue, 2 Nov 2004 17:40:28 +0000 (17:40 +0000)
committerSøren Sandmann Pedersen <ssp@src.gnome.org>
Tue, 2 Nov 2004 17:40:28 +0000 (17:40 +0000)
process.c
sysprof-module.c
sysprof.c

index 253440e..9fd29fa 100644 (file)
--- a/process.c
+++ b/process.c
@@ -300,6 +300,7 @@ process_lookup_symbol (Process *process, gulong address)
     return result;
 }
 
+#if 0
 const Symbol *
 process_lookup_symbol_with_filename (Process *process,
                                     int pid,
@@ -324,6 +325,7 @@ process_lookup_symbol_with_filename (Process *process,
 
     return result;
 }
+#endif
 
 const char *
 process_get_cmdline (Process *process)
index b4e2389..7e09b8b 100644 (file)
@@ -94,17 +94,16 @@ read_user_space (userspace_reader *reader,
                int found;
                struct page *page;
                
-               if (reader->user_page)
-                       kunmap (reader->page);
-
-               reader->user_page = user_page;
-
                found = get_user_pages (reader->task, reader->task->mm, user_page,
                                        1, 0, 0, &page, NULL);
 
                if (!found)
                        return 0;
 
+               if (reader->user_page)
+                       kunmap (reader->page);
+
+               reader->user_page = user_page;
                reader->kernel_page = (unsigned long)kmap (page);
                reader->page = page;
        }
index b25206a..b5f527c 100644 (file)
--- a/sysprof.c
+++ b/sysprof.c
@@ -110,12 +110,10 @@ on_read (gpointer data)
     
     rd = read (app->input_fd, &trace, sizeof (trace));
 
-#if 0
     g_print ("pid: %d\n", trace.pid);
     for (i=0; i < trace.n_addresses; ++i)
        g_print ("rd: %08x\n", trace.addresses[i]);
     g_print ("-=-\n");
-#endif
 
     if (rd > 0 && app->profiling && !app->generating_profile)
     {