return result;
}
+#if 0
const Symbol *
process_lookup_symbol_with_filename (Process *process,
int pid,
return result;
}
+#endif
const char *
process_get_cmdline (Process *process)
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;
}
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)
{