[Crash-utility] files.c SIAL script

Bernhard Walle bwalle at suse.de
Fri Nov 30 13:53:36 UTC 2007


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. */




More information about the Crash-utility mailing list