[Crash-utility] Cell/B.E. SPU commands extension optimization

Lucio Correia lcorreia at gmail.com
Fri Sep 21 13:07:43 UTC 2007


On 9/21/07, Dave Anderson <anderson at redhat.com> wrote:
> Lucio Correia wrote:
> > Hi Dave,
> >
> >
> >>+       CBE_SIZE_INIT(spu_prio_array, "spu_prio_array");
> >
> >
> > The extension is not being able to find the symbol spu_prio_array with
> > a 2.6.22-5 patched kernel (Cell SDK 3.0 pre-release kernel in
> > http://www.bsc.es/projects/deepcomputing/linuxoncell/cellsimulator/sdk3.0earlyRel/kernel-2.6.22-5.20070821bsc.ppc64.rpm).
> > I've checked the code and the symbol exists in spufs/sched.c. Do you
> > have any hint why crash can't find the symbol?
> >
> > Thanks
> > Lucio Correia
>
> Is the spu scheduler a module that doesn't exist in the
> vmlinux proper?  If you run "gdb vmlinux" alone, and
> enter "ptype struct spu_prio_array", does it know what
> it is?
>
> If it is a module, then its debuginfo data will have to
> be loaded with the "mod" command.
>
> Dave
>

Thanks a bunch, Dave,

It's in the spufs module. You are correct, I had to load
the module before loading the extension:

mod -s spufs

I hadn't noticed it before because it was not happening.

Regards,
-- 
Lucio Jose Correia




More information about the Crash-utility mailing list