From 4b0313e4d39d4ce9c911907e0f1b34ab3b32dd58 Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Mon, 15 Dec 2014 07:52:19 -0800 Subject: [PATCH] rootdir: add pstore /dev/pmsg0 used to record the Android log messages, then on reboot /sys/fs/pstore/pmsg-ramoops-0 provides a means to pull and triage user-space activities leading up to a panic. A companion to the pstore console logs. Change-Id: Id92cacb8a30339ae10b8bf9e5d46bb0bd4a284c4 --- rootdir/init.rc | 2 ++ rootdir/ueventd.rc | 1 + 2 files changed, 3 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index 9093b5423..642af09bc 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -157,6 +157,8 @@ on init mount pstore pstore /sys/fs/pstore chown system log /sys/fs/pstore/console-ramoops chmod 0440 /sys/fs/pstore/console-ramoops + chown system log /sys/fs/pstore/pmsg-ramoops-0 + chmod 0440 /sys/fs/pstore/pmsg-ramoops-0 # Healthd can trigger a full boot from charger mode by signaling this # property when the power button is held. diff --git a/rootdir/ueventd.rc b/rootdir/ueventd.rc index eff24c30e..43d7bc923 100644 --- a/rootdir/ueventd.rc +++ b/rootdir/ueventd.rc @@ -16,6 +16,7 @@ subsystem adf # Anyone can read the logs, but if they're not in the "logs" # group, then they'll only see log entries for their UID. /dev/log/* 0666 root log +/dev/pmsg0 0222 root log # the msm hw3d client device node is world writable/readable. /dev/msm_hw3dc 0666 root root