Re: show_regs on SMP

Andi Kleen (ak@muc.de)
27 Jun 1999 08:57:04 +0200


cel@monkey.org (Chuck Lever) writes:

> On 25 Jun 1999, Andi Kleen wrote:
> > > i was thinking it would be nice to have show_regs show the EIP and
> > > call traceback for all processors in an SMP configuration, not just the
> > > interrupted processor.
> > >
> > > perhaps the keyboard interrupt could instead trigger an IPI to all
> > > processors in the configuration which causes them to dump their stack
> > > frame on the console.
> > >
> > > comments? anyone already have a patch that does this?
> >
> > kdb can do this (http://reality.sgi.com/slurn_engr/)
>
> except kdb is only for 2.2.3, and doesn't build (on my configuration, at
> least). otherwise it looks like a very cool idea.

I have it running with various 2.2 and 2.3, with only minor hacking.
You may also need to increase the rather small symbol table limit in
scripts/genkdbsyms.awk (I was a bit surprised too that I run bigger
kernels than SGI ;);)

The main advantage of kdb over the usual kgdb stubs is that it is fully
SMP aware, can switch between CPUs etc. Now I only need a gdb remote-kdb.c
that speaks kdb commands...

-Andi

-- 
This is like TV. I don't like TV.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/