Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754412AbYHGTzx (ORCPT ); Thu, 7 Aug 2008 15:55:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752631AbYHGTzq (ORCPT ); Thu, 7 Aug 2008 15:55:46 -0400 Received: from 166-70-238-42.ip.xmission.com ([166.70.238.42]:32880 "EHLO ns1.wolfmountaingroup.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751708AbYHGTzp (ORCPT ); Thu, 7 Aug 2008 15:55:45 -0400 Message-ID: <2232.69.2.248.210.1218137662.squirrel@webmail.wolfmountaingroup.com> In-Reply-To: <489B5149.4030600@sgi.com> References: <17494.166.70.238.46.1217784156.squirrel@webmail.wolfmountaingroup.com> <200808060133.10457.nickpiggin@yahoo.com.au> <87r6926dsr.fsf@basil.nowhere.org> <200808061550.22996.nickpiggin@yahoo.com.au> <489B34BA.4060300@linux-foundation.org> <489B3A0D.7060706@s5r6.in-berlin.de> <489B48BF.3060609@linux-foundation.org> <489B5149.4030600@sgi.com> Date: Thu, 7 Aug 2008 13:34:22 -0600 (MDT) Subject: Re: [ANNOUNCE] Merkey's Kernel Debugger From: jmerkey@wolfmountaingroup.com To: "Jay Lan" Cc: "Christoph Lameter" , "Stefan Richter" , "Nick Piggin" , "Andi Kleen" , jmerkey@wolfmountaingroup.com, "Geert Uytterhoeven" , "Josh Boyer" , linux-kernel@vger.kernel.org, "Takenori Nagano" , "Vivek Goyal" , "Bernhard Walle" , "Keith Owens" User-Agent: SquirrelMail/1.4.6 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Priority: 3 (Normal) Importance: Normal Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1767 Lines: 50 > Christoph Lameter wrote: >> Stefan Richter wrote: >>> Christoph Lameter wrote: >>>> The competing implementation is kdb not kgdb. kgdb is just a stub for >>>> remote >>>> debugging using gdb. kdb is an in-kernel debugger like the one >>>> proposed here. >>> Is there work underway to get kdb merged? (I'm just asking because I >>> don't know; I personally don't need kdb nor mdb.) >> >> KDB still exists in patches but the merge effort was given up when Linus >> stated that he did not want a kernel debugger. No problem to start merge >> attempts again AFAICT. Jay? > > To merge KDB or any other RAS tools, you need to deal with kdump. Kdump > hijack panic() before the die calling chain. For KDB or a RAS tool to > work, an infrastructure such as the "add new notifier function" by > Takenori Nagano should be in place. > > His last attempt fell short, in my opinion, was partly due to his > "[PATCH 3/3] Move crash_kexec() into panic_notifier" did not do what it > meant to do: to fit kexec/kdump into the new infrastructure. That is > not fatal; it can be fixed to make it right. If community is interested > in getting a kernel debugger to the kernel, we can continue Takenori's > work. Once the infrastructure is accepted, then merging KDB or any other > kernel debugger will make sense. > > Regards, > - jay > > >> As I look through entry_32.S and traps_32.c I do not see where kdump is hooking the notify_die handler which would intercept calls to a debugger. Where does kdump hook this path? Jeff > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/