diff options
author | Søren Sandmann <sandmann@redhat.com> | 2005-06-19 02:46:19 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2005-06-19 02:46:19 +0000 |
commit | 18abd9e1e674c22dd11a0d4b9d6f18d49904d4f9 (patch) | |
tree | 167059b0662d1ab0b8677432659eaa562ab5db8f /process.c | |
parent | fb7e1ddc473010df68cfd02a5a41770354848e17 (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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 * |