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>
Showing
- arch/powerpc/platforms/pseries/nvram.c 7 additions, 54 deletionsarch/powerpc/platforms/pseries/nvram.c
- arch/x86/platform/mrst/early_printk_mrst.c 5 additions, 8 deletionsarch/x86/platform/mrst/early_printk_mrst.c
- drivers/mtd/mtdoops.c 4 additions, 18 deletionsdrivers/mtd/mtdoops.c
- fs/pstore/platform.c 12 additions, 22 deletionsfs/pstore/platform.c
- include/linux/kmsg_dump.h 38 additions, 7 deletionsinclude/linux/kmsg_dump.h
- kernel/printk.c 192 additions, 28 deletionskernel/printk.c
Loading
Please register or sign in to comment