summaryrefslogtreecommitdiff
path: root/dumpstate
Commit message (Collapse)AuthorAgeFilesLines
* Merge "dumpstate: add maxim FG history" into pi-devThierry Strudel2018-08-201-0/+1
|\
| * dumpstate: add maxim FG historyAleX Pelosi2018-08-161-0/+1
| | | | | | | | | | | | | | | | | | | | - Dump Maxim FG history from /dev/maxfg_history - Fix udev permissions for /dev/maxfg_history Change-Id: I6a3096ac3d2dbda69b95b73a4f6afd0c7be5189e Signed-off-by: AleX Pelosi <apelosi@google.com> Bug: 112201290 Test: triggerd bugreport, check dumpstate
* | dumpstate: log citadel info on -eng and -userdebugnagendra modadugu2018-08-161-3/+5
| | | | | | | | | | | | | | | | | | | | Only log Citadel info on -eng and -userdebug builds, otherwise an ominous binder permission crash gets logged. Bug: 112698875 Test: pending Change-Id: I829d6079f6b9d0e12325bedd3b8c5ce022fe8828
* | dumpstate: add citadel info to bugreportsnagendra modadugu2018-08-141-0/+5
|/ | | | | | | | | | | It would be handy to have citadel info in bug reports, which we have had to manually request thus far. Bug: 112442165 Bug: 112278102 Test: verified userdebug report includes citadel info Change-Id: I137b28f467d0933c334ac93d12e027976f13b5f4
* Merge "dumpstate: move slower dump to bottom" into pi-devTreeHugger Robot2018-07-301-11/+11
|\
| * dumpstate: move slower dump to bottomWei Wang2018-07-291-11/+11
| | | | | | | | | | | | Bug: 111951684 Test: Take a BR Change-Id: I8e1dabcabefa5318e7635e77bff4a1a482811cba
* | crosshatch: dumpstate: improve touch loggingSteve Pfetsch2018-07-261-1/+9
|/ | | | | | | | | Capture additional raw data snapshot and record the current status of the touch controller. Bug: 111520851 Change-Id: Ib780309173d200281fdc27fd87816f2373a4e9f3 Signed-off-by: Steve Pfetsch <spfetsch@google.com>
* Revert "Dump usb phy tune values"Chris Fries2018-07-191-7/+0
| | | | | | | Fix watchdog on bugreports This reverts commit c44229e92dffef185c7e78c30e24f5ffb5930cce. Bug: 111636605
* Dump usb phy tune valuesBadhri Jagan Sridharan2018-07-171-0/+7
| | | | | | Bug: 76173779 Test: Verified on a bugreport Change-Id: I26639d3ecb9453c96ab9acaf82a51f8f75b50227
* Merge "crosshatch: add WLC to dumpstate" into pi-devPat Tjin2018-06-281-0/+2
|\
| * crosshatch: add WLC to dumpstatePatrick Tjin2018-06-271-0/+2
| | | | | | | | | | | | Bug: 110245589 Test: boot, grab bugreport, see new info Change-Id: Ica5f4737f90eba9694c0a16a29b5d6efac0ffb39
* | crosshatch: dumpstate: collect touch snapshotsSteve Pfetsch2018-06-271-1/+29
|/ | | | | | | | | | Use the sysfs interfaces into the touch drivers to log snapshots of touch data in each bugreports. Helpful for diagnosing touch hardware and tuning issues in the field. Bug: 110815748 Change-Id: I50ac7830df09b9a5a6342a2804b3e7882bf04bf8 Signed-off-by: Steve Pfetsch <spfetsch@google.com>
* FG: dump cycle_counts_binsThierry Strudel2018-06-251-0/+1
| | | | | | Bug: 74006386 Change-Id: I32bb48f36981ab1fe108da742efeb8286613741a Signed-off-by: Thierry Strudel <tstrudel@google.com>
* Collect modem debug stat in BugreportJie Song2018-06-071-61/+54
| | | | | | | | | | - Add modem debug stat in Bugreport for user and userdebug build, modem debug stat will contain statistics report of hardware errors. - Add required SELinux policy Bug: 79656374 Test: Verify modem stat in Bugreport Change-Id: I023be7e6d90865f11a874e954ca9963fc1d8cab8
* dumpstate: update slowio splitJaegeuk Kim2018-06-061-1/+4
| | | | | | | | This patch adjusts recent slowio changes. Bug: 79996489 Change-Id: I444fbad5937d2261e6a1ae9b5f5b9be50cff8d33 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
* Dump eSIM presence status into BugreportJie Song2018-05-151-0/+2
| | | | | | Bug: 79717758 Test: Take bugreport and check eSIM status Change-Id: Ibe42359a5e7bc6a19429d51cd83ed6bcb8fa71c2
* Add UFS health information into board specific dumpstateWei Wang2018-05-131-10/+26
| | | | | | | | | + slowio_cnt. Test: Take bugreport Bug: 66967195 Bug: 79552162 Change-Id: Id635b64f77d4a6fdc1ace2290f89adfdf86514a7
* dumptstate: fix partition number for metadata encryptionJaegeuk Kim2018-05-101-1/+1
| | | | | | Bug: 77335096 Change-Id: Ifd5d49c7843adf3763724a3a8f07cc1375fce0a3 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
* Merge "dumpstate: add interface into rc file" into pi-devWei Wang2018-04-241-0/+1
|\
| * dumpstate: add interface into rc fileWei Wang2018-04-051-0/+1
| | | | | | | | | | | | Bug: 77489941 Test: Build Change-Id: I367569e65ddd2b70fd8f7e10b9f4a86fa8e9463c
* | crosshatch: include touch firmware versions in dumpstateSteve Pfetsch2018-04-181-8/+6
| | | | | | | | | | | | | | | | | | Expose touch firmware versions in dumpstate so the information is available in bugreports. Bug: 78249068 Change-Id: I55d08c4315226bfc612be2bfbe2632922fd643f6 Signed-off-by: Steve Pfetsch <spfetsch@google.com>
* | Merge "Add modem metrics data in bugreport" into pi-devTreeHugger Robot2018-04-111-0/+1
|\ \
| * | Add modem metrics data in bugreportJie Song2018-04-041-0/+1
| |/ | | | | | | | | Bug: 73558751 Change-Id: I46ef6761695321d4ac3e0ea39f8f469c251ce158
* | dumpstate: remove all denials and add more FG dataThierry Strudel2018-04-101-3/+10
| | | | | | | | | | | | | | | | | | | | | | - Fix easel curr|temperature|vbat|total_power nodes dump - Dump QCOM FG SRAM - Dump Maxim FG registers and NVRAM - Dump PMIC votables Bug: 69484116 Change-Id: I60968ce14cc6b1c916ba6b1b1b86d85a7307a228 Signed-off-by: Thierry Strudel <tstrudel@google.com>
* | Merge changes I0cda188e,If23ad300 into pi-devTreeHugger Robot2018-04-051-0/+1
|\ \ | |/ |/| | | | | | | * changes: dumpstate: report f2fs fragmentation info device.mk: add UFS FFU tool
| * dumpstate: report f2fs fragmentation infoJaegeuk Kim2018-04-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | This will give f2fs fragmentation info. It applied new partition number fixed by: "dumpstate: adjust partition number" Bug: 67910000 Change-Id: I0cda188efa66723c3ed240cfa37c7b7fc3db4c8a Merged-In: I0cda188efa66723c3ed240cfa37c7b7fc3db4c8a Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
* | dumpstate: add vendor property dump and fix tzlog timeoutWei Wang2018-04-021-3/+3
|/ | | | | | | Bug: 77489941 Bug: 77277669 Test: take BR Change-Id: I69f7d0fa6310870953bf38109b26fef02212a483
* dumpstate: Add missing items and clean up deprecated itemsMaggie White2018-03-201-7/+7
| | | | | | | | | | | | | | - Easel debug info - power_supply properties - Battery cycle count - icnss stats access - Fixed some glint errors Bug: 72067726 Test: adb bugreport Change-Id: I4592d437e74182d8a8967ec963aa03b93303ca15 Signed-off-by: Maggie White <maggiewhite@google.com>
* b1c1: dumpstate: dump cpuidle for all coresWei Wang2018-03-201-4/+2
| | | | | | Bug: 75974794 Test: take BR Change-Id: Iefb52e369db72621554926e59725b5fa4dc74cd7
* Merge "b1c1: dumpstate: add cooling device state into bugreport" into pi-devTreeHugger Robot2018-03-201-5/+6
|\
| * b1c1: dumpstate: add cooling device state into bugreportWei Wang2018-03-191-5/+6
| | | | | | | | | | | | | | | | | | | | | | Additional fix: - time-in-state and cpuidle for BIG core - error in thermal Temperature section Bug: 75974794 Bug: 75977069 Test: Take BR Change-Id: I2c353a742d0be9a40edfa7dd5edfdb30f9095166
* | Merge "Namspace modem_diag_prop and cnss_diag_prop (1/6)" into pi-devTreeHugger Robot2018-03-201-5/+5
|\ \
| * | Namspace modem_diag_prop and cnss_diag_prop (1/6)Jaekyun Seok2018-03-191-5/+5
| |/ | | | | | | | | | | | | | | | | | | | | | | | | modem_diag_prop and cnss_diag_prop should have the "vendor. prefix because they are vendor-specific properties. Especially they are used by PixelLogger and ModemDiagnosticSystem, and so PixelLogger and ModemDiagnosticSystem should be updated not to prevent QCom from modifying their internal sources. Bug: 74266614 Test: succeeded building and tested with blueline Change-Id: I43b169b70653dedc55b61259040e6bb1014969d8
* / Add qsee_log to dumpstateAndrew LeCain2018-03-192-5/+4
|/ | | | | | | | | | Updating dumpstate to cat /d/tzdbg/qsee_log Added debugfs_tzdbg selinux security context Give hal_dumpstate_imp debugfs_tzdbg read permissions Fixes: 74536221 Test: adb root; adb shell setenforce 1; adb unroot; adb bugreport Change-Id: I6bbf61e1c5464f18fb838c9225611d589a8a15f4
* 2018 PowerHAL support for master statsKelly Rossmoyer2018-03-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementation of PowerHAL stats collection for 2018 subsystems/ masters. Adds support for SOC masters: APSS, MPSS, ADSP, SLPI, CDSP, GPU, and DISPLAY (though the last 3 do not currently provide any stats from the rpmh_master_stats driver). Also adds support for the two new system power states: AOSD and CXSD. In a change from earlier devices, getPlatformLowPowerStats() now only returns stats for those two power states, since there are no matter "voting" stats. The stats for all masters and subsystems (e.g. WLAN) are now retrieved through getSubsystemLowPowerStats(). Also updates (or removes) old stale sepolicy entries related to low power stats files that no longer exist, updates device dumpstate support to add one of the two stats files that does exist but isn't currently included, and pulls in the wahoo fix to ensure that stats are available even in user builds. Also fixes build-breaking bug from original CL with incorrect print conversion string used for logging size_t values. Bug: 67381845 Bug: 74405843 Test: Confirmed divisor for RPMh stats is the same as old RPM divisor (19200 to get msecs) by checking logged clock frequency and manually manipulating the sleeping of an easily influenced master (ADSP) and comparing entry and exit times. Test: Built and ran a user build and verified that low power stats are properly accessible by collecting a bugreport. Test: Added test code to rpmh_master_stats driver to populate bogus data for masters that don't have data available and used that to verify that parsing of stats for all sections is working correctly. Test: Compared audit2allow output from bugreport generation on before and after builds to verify that no new sepolicy issues were introduced. Test: Previous build-breaking print conversion string fix verified by building checkbuild on aosp_cf_x86_phone before and after fix. Change-Id: Id2c0bf43e28257db084ecb1d18425a349017c8e4
* Revert "2018 PowerHAL support for master stats"Kelly Rossmoyer2018-03-151-1/+1
| | | | | | | | This reverts commit 4d40822b371f9ba76ad7dfd9702284c1d8869f8d. Reason for revert: Build breakage due to incorrect printf format spec Bug:67381845 Change-Id: Ib302f0aaf46bb4f5889a314e45bc170e66053ada
* 2018 PowerHAL support for master statsKelly Rossmoyer2018-03-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementation of PowerHAL stats collection for 2018 subsystems/ masters. Adds support for SOC masters: APSS, MPSS, ADSP, SLPI, CDSP, GPU, and DISPLAY (though the last 3 do not currently provide any stats from the rpmh_master_stats driver). Also adds support for the two new system power states: AOSD and CXSD. In a change from earlier devices, getPlatformLowPowerStats() now only returns stats for those two power states, since there are no matter "voting" stats. The stats for all masters and subsystems (e.g. WLAN) are now retrieved through getSubsystemLowPowerStats(). Also updates (or removes) old stale sepolicy entries related to low power stats files that no longer exist, updates device dumpstate support to add one of the two stats files that does exist but isn't currently included, and pulls in the wahoo fix to ensure that stats are available even in user builds. Bug: 67381845 Bug: 74405843 Test: Confirmed divisor for RPMh stats is the same as old RPM divisor (19200 to get msecs) by checking logged clock frequency and manually manipulating the sleeping of an easily influenced master (ADSP) and comparing entry and exit times. Test: Built and ran a user build and verified that low power stats are properly accessible by collecting a bugreport. Test: Added test code to rpmh_master_stats driver to populate bogus data for masters that don't have data available and used that to verify that parsing of stats for all sections is working correctly. Test: Compared audit2allow output from bugreport generation on before and after builds to verify that no new sepolicy issues were introduced. Change-Id: I39fb1aa9ec13f2fbc34bed8f7ee90c5c4aa40e64
* dumpsate get the SSR crash logShawn Yang2018-02-271-0/+2
| | | | | | | | | | | Bug:73719004 add /data/vendor/ssrlog/ssr_log.txt /data/vendor/ssrlog/ssr_log_old.txt into bugreport Test: Manually trigger modem SSR and take bugreport Change-Id: Iefdebb4567f6e3b4409ea3189d9d0a4caba03d3a
* wifi: Include the Data.msc content for parsing FW ring buffer on bugbotEcco Park2018-02-201-0/+1
| | | | | | Bug: 73571643 Change-Id: Ib71515eb127b35d2a3e0576e4d26343754da6bda Signed-off-by: Ecco Park <eccopark@google.com>
* RemoteFS: Change MPSS rfs readwrite foler to /data/vendor/Shawn Yang2018-02-021-0/+3
| | | | | | | | | | | | | Bug: 65118243 -Move MPSS RFS ReadWrite folder from persist to /data/vendor/ -Selinux permission changes -Add rfs info into bugreport Test: Powerup device with SIM inserted,Take bugreport and manually confirm MPSS RFS items added correctly Change-Id: I79d5737eabf50829c0c97cdd3c573677e457f282
* Collect mdlog trace and status in BugreportJie Song2018-01-311-10/+27
| | | | | Bug: 72712518 Change-Id: Id6701ddc4fde18bade8acd6cbada1b116ee6455d
* enable power anomaly detectionSooraj Sasindran2018-01-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Move connectivity monitor sepolicies to specific policy file Allow Power Anomaly detector to access /data/vendor/radio Fixes below errors 12-28 18:01:37.294 W/ectivitymonitor( 3619): type=1400 audit(0.0:13): avc: denied { search } for name="radio" dev="sda13" ino=1835015 scontext=u:r:radio:s0 tcontext=u:object_r:radio_vendor_data_file:s0 tclass=dir permissive=0 12-28 18:15:03.838 W/ectivitymonitor( 3621): type=1400 audit(0.0:18): avc: denied { read } for name="u:object_r:tel_mon_prop:s0" dev="tmpfs" ino=9592 scontext=u:r:con_monitor_app:s0:c233,c259,c512,c768 tcontext=u:object_r:tel_mon_prop:s0 tclass=file permissive=0 01-10 19:38:17.399 939 939 W rild : type=1400 audit(0.0:87): avc: denied { read } for name="u:object_r:tel_mon_prop:s0" dev="tmpfs" ino=17732 scontext=u:r:rild:s0 tcontext=u:object_r:tel_mon_prop:s0 tclass=file permissive= add power_anomaly_data.txt to be picked up in bugreport Test: tested by testing power anomaly detector and connectivity monitor Bug: 67058502 Change-Id: I8ad45d5e9cedde8f498627f97b35db27dfd2ea28
* dumpstate: show f2fs statusJaegeuk Kim2017-12-191-0/+1
| | | | | | | This adds f2fs status info in dumpstate. Change-Id: I9a977a3e431c1c3b3a20fb5dcbe530a1bd3ca39e Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
* Dumpstate: add UFS debugging informationJaegeuk Kim2017-12-021-0/+11
| | | | | | | This shows UFS states in dumpstate. Change-Id: I3193ac748a7fe77f0444d5391687aef1f5d61b44 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
* Collect most recent modem logsJie Song2017-11-302-6/+57
| | | | | | Bug: 64329189 Test: Check number of log files in Bugreport Change-Id: I71ebb1d2efda324c9de4adadabf4baac1529f202
* Change rpm_stats to sleep stats for dumpstateRobb Glasser2017-11-161-1/+1
| | | | | | | | | For crosshatch, rpm_stats has been removed and part of it reimplemented as sleep stats. Bug: 67381845 Test: Took bugreport and checked dumpstate Change-Id: I30d7ddadb1d8cd39812bce74bf857946f932c680
* Add 'vendor.' prefix to a vendor HAL service nameJaekyun Seok2017-08-311-1/+1
| | | | | | | | | | | To prevent property name collisions between properties of system and vendor, 'vendor.' prefix must be added to a vendor HAL service name. You can see the details in http://go/treble-sysprop-compatibility. Test: succeeded building, and confirmed that service names were renamed correctly. Bug: 36796459 Change-Id: I7c51123aa83b93b65208c8cfa1766fcc1af4b45b
* crosshatch: Re-add crosshatch, and switch to sdm845Chris Fries2017-06-273-4/+4
| | | | Change-Id: I303e8fe6be155c8c0d5385f5598c7f27c19282b1
* crosshatch: Reset to wahoo on master.Chris Fries2017-06-275-48/+141
| | | | | | | | | | | | | | commit dc78ac4aaa64e427c0f5c0672dc22939a9a7b85f Merge: 820b880 163a21c Author: Glenn Kasten <gkasten@google.com> Date: Tue Jun 27 15:12:54 2017 +0000 Merge "Report feature android.software.midi to enable testing" into oc-dr1-dev am: 614e203677 am: 163a21c15f Change-Id: I18876c0ce8e0435fdcb947d475c66fe7fae57da1 Change-Id: Id08e99f0603407199020818485eb29d92d421c43
* Check handle for nullptrSteven Moreland2017-05-231-1/+1
| | | | | | Test: pass Bug: 37662706 Change-Id: I1a1aab951df43be955812eca1f032cb88f721598