Hi,

http://people.redhat.com/anderson/extensions/files.c doesn't work on
2.6.22 kernels (and later). Fix is below.


Thanks,
   Bernhard

--- files.c.orig        2007-11-30 14:25:05.000000000 +0100
+++ files.c     2007-11-30 14:29:39.000000000 +0100
@@ -139,7 +139,12 @@
         printf("%sPID: %-5ld  TASK: 0x%p  CPU: %-2d  COMMAND: \"%s\"\n",
                newline ? "\n" : "", t->pid, 
                t,
-               t->thread_info->cpu, getstr(t->comm));
+#if LINUX_RELEASE >= 0x020616
+               ((struct thread_info *)(t)->stack)->cpu,
+#else
+               t->thread_info->cpu,
+#endif
+               getstr(t->comm));
 }
 
 /* Traditional mask definitions for st_mode. */

--
Crash-utility mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/crash-utility

Reply via email to