kmsg - kmsg_dump() use iterator to receive log buffer content
authorKay Sievers <kay@vrfy.org>
Fri, 15 Jun 2012 12:07:51 +0000 (14:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Jun 2012 21:53:59 +0000 (14:53 -0700)
commite2ae715d66bf4becfb85eb84b7150e23cf27df30
tree206f08bc1f5138d1416c040f78c5b527ca07536d
parent1bd289d1e8e29c09be0e783a53f16a1dc80684be
kmsg - kmsg_dump() use iterator to receive log buffer content

Provide an iterator to receive the log buffer content, and convert all
kmsg_dump() users to it.

The structured data in the kmsg buffer now contains binary data, which
should no longer be copied verbatim to the kmsg_dump() users.

The iterator should provide reliable access to the buffer data, and also
supports proper log line-aware chunking of data while iterating.

Signed-off-by: Kay Sievers <kay@vrfy.org>
Tested-by: Tony Luck <tony.luck@intel.com>
Reported-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Tested-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/pseries/nvram.c
arch/x86/platform/mrst/early_printk_mrst.c
drivers/mtd/mtdoops.c
fs/pstore/platform.c
include/linux/kmsg_dump.h
kernel/printk.c