Sat Jun 18 22:45:04 2005  Søren Sandmann  <sandmann@redhat.com>

	* TODO: Updates

	* configure.ac: Check for Linux 2.6.11

	* process.c (get_pidname): Present pid=-1 as [kernel].

	* module/sysprof-module.c: Use register_timer_hook() instead of
	a kernel timer. Set trace.pid to -1 if interrupt happens in
	kernel.
This commit is contained in:
Søren Sandmann
2005-06-19 02:46:19 +00:00
committed by Søren Sandmann Pedersen
parent fb7e1ddc47
commit 18abd9e1e6
7 changed files with 192 additions and 14 deletions

View File

@ -292,7 +292,10 @@ get_statname (int pid)
static char *
get_pidname (int pid)
{
return g_strdup_printf ("[pid %d]", pid);
if (pid == -1)
return g_strdup_printf ("kernel", pid);
else
return g_strdup_printf ("pid %d", pid);
}
static char *