Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755445Ab2EVNVN (ORCPT ); Tue, 22 May 2012 09:21:13 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:62223 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754095Ab2EVNVL (ORCPT ); Tue, 22 May 2012 09:21:11 -0400 Date: Tue, 22 May 2012 06:19:38 -0700 From: Anton Vorontsov To: Colin Cross Cc: Greg Kroah-Hartman , Kees Cook , Tony Luck , Arnd Bergmann , John Stultz , Shuah Khan , arve@android.com, Rebecca Schultz Zavin , Jesper Juhl , Randy Dunlap , Stephen Boyd , Thomas Meyer , Andrew Morton , Marco Stornelli , WANG Cong , linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, linaro-kernel@lists.linaro.org, patches@linaro.org, kernel-team@android.com Subject: Re: [PATCH 03/14] pstore/ram_core: Do not reset restored zone's position and size Message-ID: <20120522131938.GA26111@lizard> References: <20120518222314.GA9425@lizard> <20120518222426.GC23089@lizard> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1828 Lines: 50 On Fri, May 18, 2012 at 04:42:03PM -0700, Colin Cross wrote: [...] > This causes an interesting behavior change in the console logging. > Before this change, the console log would show only the messages from > the last reboot. After this change, the console log will have logs > from multiple boots appended to each other. Heh. A nice feature, but frankly speaking, that wasn't my intent to introduce it. :-) I will document the new behaviour in the patch description. > I can think of some > places where that could very handy, so I'm not against the change, but > as is it makes reading the logs much harder - the first oops you see > while skimming the log may not be from the last reboot. > > One possibility would be to insert an obvious (and script parseable) > header during probe to separate the boots. Yep, we have it already, i.e. linux_banner. This script should be reliable enough: tac ramoops-console | sed '/^Linux version.*(.*@.*)/ q' | tac > Another option would be to > expand the ringbuffer metadata to contain duplicate start and size > fields that only cover the most recent reboot, and export two files, > console-ramoops that contains the last log, and console-all-ramoops > that contains all the logs. This seems like an overkill. :-) > Or you could just zap the console buffer > at boot to keep the old behavior. Well, I actually like the new behaviour, so assuming that we're all happy with the new feature, there's no need to zap it at boot. Or we can at least make it configurable... Thanks! -- Anton Vorontsov Email: cbouatmailru@gmail.com -- 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/