>>against 2.6.12-rc4 >> >>This patch adds dumping of calltraces on _all_ CPUs >>on AltSysRq-P and NMI LOCKUP. It does this via sending >>NMI IPI interrupts to the cpus. >> >>I saw the same patch in RedHat kernels, here goes our own version of the patch, not sure it will be accepted, but I think it can be used by some people at least for debugging lockups etc. > > > I'd done a similar thing, but just using smp_call_function (I hacked the > interrupt routine to fish pt_regs back out, and override *info in some > cases). Doing NMIs, as you've done, is probably nicer, but a lot more > work. Yes, but it catches _all_ calltraces which is very important, espicially when you do not have NMI watchdog enabled. BTW, why NMI watchdog is disabled by default? We constantly making it on by default in our kernels and had no problems with it. I send a patch attached which tunes NMI watchdog by config option... > The problem with it (and my patch too) is that you're hooking into arch > specific code from generic code, which means you'll break every other > arch apart from i386. Fixing this is a pain in the rear end, but would > be needed to merge the patch. OTOH, the patch is extremely useful, so > would be nice to fix if you have the energy ... Well, I used #idef __i386__ to not break generic code for other archs. I have no any other hardware except for i386+, so it is almost impossible for me to make this code work on other archs. I think people who are interested in this functionality will provide the required code later. Kirill