summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2005-06-19 02:46:19 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2005-06-19 02:46:19 +0000
commit18abd9e1e674c22dd11a0d4b9d6f18d49904d4f9 (patch)
tree167059b0662d1ab0b8677432659eaa562ab5db8f /process.c
parentfb7e1ddc473010df68cfd02a5a41770354848e17 (diff)
Updates
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.
Diffstat (limited to 'process.c')
-rw-r--r--process.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/process.c b/process.c
index 699eb6b..a28e10c 100644
--- a/process.c
+++ b/process.c
@@ -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 *