[Crash-utility] files.c SIAL script

Dave Anderson anderson at redhat.com
Fri Nov 30 14:09:47 UTC 2007


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




More information about the Crash-utility mailing list