Re: show_regs on SMP

Andi Kleen (ak@muc.de)
25 Jun 1999 00:47:21 +0200


cel@monkey.org (Chuck Lever) writes:

> 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.
>
> it's easy enough to replace kbd_pt_regs with an array of pointers to
> struct pt_regs, and print the contents during a sysreq. but how could i
> grab the stack frame on the other CPUs?
>
> 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/)

-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/