modem: Add PCIe event stats into bugreport.

We have a new syfs file to track the retries for PCIe linkdowns
and CPL timeouts. We are adding it to the dump_modem script to
export it as part of the bugreport.

Bug: 284947288
Change-Id: I42d06ab1e479db0a7cf7b553191bf8407b3bd32f
Signed-off-by: Mahesh Kallelil <kallelil@google.com>
This commit is contained in:
Mahesh Kallelil 2023-06-06 11:30:54 -07:00
parent 30acbec187
commit cf91a07183
2 changed files with 9 additions and 0 deletions

View file

@ -2,6 +2,7 @@
WAKEUP_EVENTS_FILE=/sys/devices/platform/cpif/wakeup_events WAKEUP_EVENTS_FILE=/sys/devices/platform/cpif/wakeup_events
CPIF_LOGBUFFER=/dev/logbuffer_cpif CPIF_LOGBUFFER=/dev/logbuffer_cpif
PCIE_EVENT_STATS=/sys/devices/platform/cpif/modem/pcie_event_stats
echo "------ Modem Stat ------" echo "------ Modem Stat ------"
cat /data/vendor/modem_stat/debug.txt cat /data/vendor/modem_stat/debug.txt
@ -31,3 +32,10 @@ then
echo $CPIF_LOGBUFFER echo $CPIF_LOGBUFFER
cat $CPIF_LOGBUFFER cat $CPIF_LOGBUFFER
fi fi
if [ -e $PCIE_EVENT_STATS ]
then
echo "\n------ PCIe event stats ------"
echo $PCIE_EVENT_STATS
cat $PCIE_EVENT_STATS
fi

View file

@ -1 +1,2 @@
genfscon sysfs /devices/platform/cpif/wakeup_events u:object_r:sysfs_dump_modem:s0 genfscon sysfs /devices/platform/cpif/wakeup_events u:object_r:sysfs_dump_modem:s0
genfscon sysfs /devices/platform/cpif/modem/pcie_event_stats u:object_r:sysfs_dump_modem:s0