Re: files.c SIAL script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bernhard Walle wrote:
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. */


Applied.

Thanks,
  Dave

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility

[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux