From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.nokia.com ([192.100.122.230] helo=mgw-mx03.nokia.com) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1Mzqjr-0006vO-4K for linux-mtd@lists.infradead.org; Mon, 19 Oct 2009 11:49:27 +0000 Subject: Re: [PATCH v11 4/5] core: Add kernel message dumper to call on oopses and panics From: Artem Bityutskiy To: Simon Kagstrom In-Reply-To: <20091016140918.3981cfa2@marrow.netinsight.se> References: <20091015094057.7298e0d7@marrow.netinsight.se> <20091015094805.754461fa@marrow.netinsight.se> <20091015093133.GF10546@elte.hu> <20091015161052.0752208e@marrow.netinsight.se> <20091015154640.GA11408@elte.hu> <20091016094601.4e2c2d3e@marrow.netinsight.se> <20091016080935.GA3895@elte.hu> <1255681467.32489.360.camel@localhost> <20091016112556.6902b2dc@marrow.netinsight.se> <20091016101045.GA3263@elte.hu> <20091016140918.3981cfa2@marrow.netinsight.se> Content-Type: text/plain; charset="UTF-8" Date: Mon, 19 Oct 2009 14:48:42 +0300 Message-Id: <1255952922.32489.505.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: David Woodhouse , LKML , "Koskinen Aaro \(Nokia-D/Helsinki\)" , linux-mtd , Ingo Molnar , Linus Torvalds , Andrew Morton , Alan Cox Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2009-10-16 at 14:09 +0200, Simon Kagstrom wrote: > The core functionality is implemented as per Linus suggestion from > > http://lists.infradead.org/pipermail/linux-mtd/2009-October/027620.html > > (with the kmsg_dump implementation by Linus). A struct kmsg_dumper has > been added which contains a callback to dump the kernel log buffers on > crashes. The kmsg_dump function gets called from oops_exit() and panic() > and invokes this callbacks with the crash reason. > > Signed-off-by: Simon Kagstrom > Reviewed-by: Anders Grafstrom > Reviewed-by: Ingo Molnar > --- > The bikeshed paint is drying: > > ChangeLog: > * (Ingo Molnar): Flatten lock use > * (Artem, Aaro): Fix style issues > > include/linux/kmsg_dump.h | 44 ++++++++++++++++++ > kernel/panic.c | 3 + > kernel/printk.c | 112 +++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 159 insertions(+), 0 deletions(-) > create mode 100644 include/linux/kmsg_dump.h I wonder, via which tree this should go in. We are going to have mtdoops depend on this. Should we go one of these ways: * this patch goes to one of Ingo's tip trees, so we can pull it and work on top. * we have Ingo's / Linus' acks, and this goes via the MTD tree. ? -- Best Regards, Artem Bityutskiy (Артём Битюцкий)