最終更新:2014-12-19 (金) 07:43:29 (3409d)
Android/proc/last_kmsg
- If your tablet rebooted unexpectedly, you need to save last_kmsg log. It will contain kernel log just before reboot and may show what caused reboot.
- This allows saving the kernel printk messages to a buffer in RAM, so that after a kernel panic they can be viewed in the next kernel invocation, by accessing /proc/last_kmsg.
定義
設定
- CONFIG_ANDROID_RAM_CONSOLE
- 〜Linux 3.5まで
- https://android.googlesource.com/kernel/common.git/ /android-3.4/drivers/staging/android/ram_console.c
- persistent_ram?を使ってる
メモ
- There are currently two competing debug facilities to store kernel messages in a persistent storage: a generic pstore and Google’s persistent_ram? by Colin Cross.
- All the functionality is now supported by pstore and pstore_ram? drivers.
参考
- https://code.google.com/p/tegraowners-ics-rom/wiki/How_to_get_logs
- http://pyeh.github.io/blog/2013/11/08/android-ram-console-upstreaming/