Re: [RFC][Patch] Adding kmsg_dump() to reboot/halt/poweroff/emergency_restart path

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Wednesday, October 27, 2010 - 4:35 pm

On Tue, 19 Oct 2010 11:51:12 +0300
Artem Bityutskiy <Artem.Bityutskiy@nokia.com> wrote:


mtdoops was the only user until ramoops came along.


Fair enough.  So I suppose the existing clients (mtdoops_do_dump and
ramoops_do_dump) should be altered to inspect the `reason' argument,
and return if it isn't KMSG_DUMP_OOPS, KMSG_DUMP_PANIC or
KMSG_DUMP_KEXEC (I assume?)

If that sounds suitable then I'd ask Seiji to update and resend the
patch, along with a complete changelog as earlier dicussed.

I'd suggest doing it as two patches, the first of which alters mtdoops
and ramoops to perform their actions only for the appropriate `reason'
values.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC][Patch] Adding kmsg_dump() to reboot/halt/powerof ..., Andrew Morton, (Wed Oct 27, 4:35 pm)
Re: [RFC][Patch] Adding kmsg_dump() to reboot/halt/powerof ..., Artem Bityutskiy, (Thu Oct 28, 12:58 pm)