kdb
[Top] [All Lists]

Re: [ANNOUNCE] Support 'kdump' command from KDB in 2.6.27-rc2-*-2.bz2 pa

To: "Jay Lan" <jlan@xxxxxxx>
Subject: Re: [ANNOUNCE] Support 'kdump' command from KDB in 2.6.27-rc2-*-2.bz2 patchset
From: "jidong xiao" <jidong.xiao@xxxxxxxxx>
Date: Wed, 20 Aug 2008 16:04:56 +0800
Cc: KDB <kdb@xxxxxxxxxxx>, "Zou, Nanhai" <nanhai.zou@xxxxxxxxx>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=lQtJKHgDtGxAINzYpUjRcJ8GtMXvQNiKnZmpDXpFFK8=; b=FP8+7z8vnE5CS6EJ6jqsjAtiCj0+N2hmrrZhnjQGg6M/yOpJgTnq8OhmMYOzf0TakH WQG+kbQAZYCfSrT12WEjqT2cK7h0rTeOG5re8vSltnwc7Rthcd5OOIsbS1HYrR3PNsvd v4aZCXuttS4IelQZMesXYuPk5QSeSLmT+4ozc=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=La8Zb2Sags1pokYxV0QzCyoXK5WMRUCEtBxw9uGOgYgSsnmZKazX74LjqBaohkb6Fx VehVXNnwWPaPY5KOVVHafzocGGAl4jOYa3RdJfhaI6rts0cxNTbHCwBeTFeTQsgUj/AE MWOs1tF9KK9wkXhqepM8JCz53bXhaeQBdpikk=
In-reply-to: <48A5DDC5.6090404@xxxxxxx>
References: <48A5DDC5.6090404@xxxxxxx>
Sender: kdb-bounce@xxxxxxxxxxx
On Sat, Aug 16, 2008 at 3:49 AM, Jay Lan <jlan@xxxxxxx> wrote:
> Hi,
>
> The kdb 2.6.27-rc2-*-2.bz2 patchset contains implementation
> of 'kdump' command. It was based on the original patch posted
> by Dan Aloni last year, then modified to provide i386 support
> by Jason Xiao. I added IA64 support. I also added hooks to
> intercept and drop to KDB from oops.
>
> It looks quite different from your patch, Jason, especially
> in kdb/kdbmain.c to a style i like better. Sorry about that.
>
> This implementation would catch die, panic, MCA, NMI conditions
> and drop into KDB. After analyze the oops situation and data,
> you can issue 'kdump' command and a kdump vmcore will be
> created.
>
> I do not intercept 'echo c > /proc/sysrq-trigger' since i see
> no need to create extra works if users already decide to create
> a vmcore from user space. Besides, you can use KDB key sequence
> to break into KDB and do a 'kdump' command to take a dump as well.
>
> Doing a 'go' after panic is undefined, and it also depends on
> the value of CONFIG_KDB_CONTINUE_CATASTROPHIC. So, do 'kdump'
> after panic if you want take a vmcore.
>
> I have tested on IA64 and X86_64 to see a kdump kernel booted
> up and /proc/vmcore created. Due to bugs of makedumpfile and
> crash against the latest kernels, i did not run crash to
> check validity of the vmcore though.
>
> Please report any bugs to me. Thanks!
>
> Regards,
>  - jay
>
>
Hi,Jay,

arch/ia64/kdb/kdba_support.c,

void
kdba_kdump_prepare(struct pt_regs *fixed_regs)
{
        int i;

        /* Set on KEXEC bit on all onlinr cpus */
        for (i = 1; i < NR_CPUS; ++i) {
                if (!cpu_online(i))
                        continue;

                KDB_STATE_SET_CPU(KEXEC, i);
        }

        /* delaying for 5 seconds ... */
        udelay(5*1000000);
        machine_crash_shutdown(fixed_regs);
}

I wonder why do we need this 5-seconds-delay. Thanks.

Regards
Jason
---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
<Prev in Thread] Current Thread [Next in Thread>