Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable pstore/ramoops dump for kernel panics.
Updated to include options for proper last_kmsg generation CONFIG_SEC_DEBUG_NOCACHE_LOG_IN_LEVEL_LOW=y CONFIG_PRINTK_PROCESS=y CONFIG_SEC_DEBUG_LOW_LOG=y Squashed commit of the following: commit cf46f03896a2010cd291607e143638aea86cf5bd Author: Tony Layher <layhertony@gmail.com> Date: Sun Jan 25 23:34:40 2015 -0500 trlte: enable panic dumps in defconfig and carve out mem region Change-Id: Ifee3321b13a2fbd908a62f442b1a3656f793373d commit 683306b316e6296084fbe6d53dcad9824dd525ad Author: Yi-wei Zhao <gbjc64@motorola.com> Date: Thu Aug 7 13:59:41 2014 -0500 fs/pstore: handle panic kmsg dump There are two changes: 1. read 'record size' and 'dump oops' from device tree. 2. only write for KMSG_DUMP_PANIC. When oops happens (panic_on_oops = 1), both oops_exit() and panic() will dump kmsg. Skip KMSG_DUMP_OOPS to avoid dump kmsg twice. Signed-off-by: Yi-wei Zhao <gbjc64@motorola.com> Reviewed-by: Hong-Mei Li <a21834@motorola.com> commit 74305f95eccb13b0658817b0cd5c08b1fb18008d Author: Arve Hjønnevåg <arve@android.com> Date: Fri May 2 20:23:21 2014 -0700 pstore/ram: Add ramoops_console_write_buf api Allow writing into the ramoops console buffer. Change-Id: Iff0d69b562e4dae33ea7f8d19412227bebb17e47 Signed-off-by: Arve Hjønnevåg <arve@android.com> Signed-off-by: Patrick Tjin <pattjin@google.com> Conflicts: fs/pstore/ram.c commit 0e9158f4623586c10050471ce20298f99b4063f9 Author: Yuanyuan Zhong <zyy@motorola.com> Date: Tue Jun 10 16:20:27 2014 -0500 pstore/ram: export map/unmap functions Export persistent_ram_map() and persistent_ram_unmap() as general purpose functions for mapping and unmapping reserved memory buffer. Signed-off-by: Yuanyuan Zhong <zyy@motorola.com> Reviewed-by: Yi-Wei Zhao <gbjc64@motorola.com> commit 5a7438174d61d26b6d7e321eedabb0801b5b660d Author: Yuanyuan Zhong <zyy@motorola.com> Date: Tue Jun 10 14:23:07 2014 -0500 pstore/ram: allow annotation appending Existing pstore ram annotation stores messages and exports them after reset. Add function which can be used to append messages to the annotation after reset and before they are exported to annotation-ramoops file. Signed-off-by: Yuanyuan Zhong <zyy@motorola.com> Reviewed-by: Yi-Wei Zhao <gbjc64@motorola.com> commit a950f7ff89cae0a0d4bced57fc94bff218a25e16 Author: Dmitry Ornatsky <cdo021c@motorola.com> Date: Tue Apr 8 08:11:06 2014 -0500 fs: pstore: add annotation support Add annotation type prz support to pstore. Publish annotate function for kernel modules. On warm power up pstore will make annotation information found in new ramprz available in annotation-ramoops file. Signed-off-by: Dmitry Ornatsky <cdo021c@motorola.com> Reviewed-by: Russell Knize <rknize@motorola.com> commit 7bbbdcacd7b11d02c7e70e875f04d24c6a423b86 Author: Yi-wei Zhao <gbjc64@motorola.com> Date: Mon Mar 31 19:28:35 2014 -0500 fs:pstore:ramoops: config mem from dt configure the start & size of ramoops memory using device tree. the 'dummy' device is no harm as long as initial mem_size is zero. Signed-off-by: Yi-wei Zhao <gbjc64@motorola.com> Reviewed-by: Jeffrey Carlyle <jeff.carlyle@motorola.com> Change-Id: I371bfdcfc0bb4dca76c40ed03705ad32fd8b97ab
- Loading branch information