From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756590AbZIVOSg (ORCPT ); Tue, 22 Sep 2009 10:18:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755913AbZIVOSf (ORCPT ); Tue, 22 Sep 2009 10:18:35 -0400 Received: from mail-pz0-f173.google.com ([209.85.222.173]:63767 "EHLO mail-pz0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755473AbZIVOSf convert rfc822-to-8bit (ORCPT ); Tue, 22 Sep 2009 10:18:35 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=k+7vHnkYZU583qwB5Fn0gHPpfcMYVByqdxeOyUse8nyfDrj+O58kkPjYTzwJvw5BSV xzIHo4MxtOR5H6HyKQOfviREnOlr6hmtu/IJAxlw4mXBwCRrwsWzhsFFofI4BKpghiwM HM7TbtKTvdWAjtm5K7j4GVSabD7YJHcanF6Qg= MIME-Version: 1.0 In-Reply-To: <2375c9f90909220231l4833bc75w79403474dc0cab9a@mail.gmail.com> References: <2375c9f90909220231l4833bc75w79403474dc0cab9a@mail.gmail.com> From: Hui Zhu Date: Tue, 22 Sep 2009 22:18:19 +0800 Message-ID: Subject: Re: [Demo/lkm] Kcoredump -- Do coredump in any where of kernel(not same with kcore) To: =?ISO-8859-1?Q?Am=E9rico_Wang?= Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 22, 2009 at 17:31, Américo Wang wrote: > On Tue, Sep 22, 2009 at 4:41 PM, Hui Zhu wrote: >> Hi guys, >> >> Kcoredump do a coredump in most part of kernel (it use kprobe, it can >> be set most of part of kernel).  For example: >> insmod kcoredump.ko name=do_fork offset=11 >> gdb ./vmlinux /proc/kcoredump >> Core was generated by `'. > > But what is your point of generating coredump anywhere? > I mean what do you really want by this? We can get the kernel status in do_fork+11 and put it to core file (It like gdb command "gcore"). GDB can parse it. > > I think we can do this by systemtap+kdump, can't we? > It seems that kdump just can get core when kernel crash. Thanks, Hui