[Crash-utility] poisoned per_cpu data not handled on ppc64

Badari Pulavarty pbadari at us.ibm.com
Thu Mar 9 21:04:34 UTC 2006


On Thu, 2006-03-09 at 15:24 -0500, Dave Anderson wrote:
> Dave Anderson wrote:
> 
> > Sorry -- I see that NR_CPUS is 128 for ppc64 in crash...
> >
> > But the question remains, do you want to absolutely depend
> > upon that always being the case in the kernel?
> >
> > Dave
> 
> Actually, looking again at the paca code, it doesn't seem that
> it is dependent upon the kernel NR_CPUS value.
> 
> So perhaps all my bitching is much ado about nothing?

Well, I use NR_CPUS as the max value only if I can't find out
"paca" structure length from gdb.

        if (!(nr_paca = get_array_length("paca", NULL, 0)))
                nr_paca = NR_CPUS;

If we can't figure out "paca" struct size from "gdb", I am sure 
there are other things that will break. 

Thanks,
Badari





More information about the Crash-utility mailing list