Wiwit Rifa'i
6d5272b851
dumpstate: add HWC logs
...
Add HWC log files in /data/vendor/log/hwc to dumpstate.
Bug: 230361290
Test: adb bugreport
Change-Id: I354b8dc1b6ce35b25976624125dd8f90ce90eef2
2022-07-26 08:25:42 +00:00
Adam Shih
1334b20d50
Accelerate fetching trusty log am: b074658691
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19395411
Change-Id: I017794c4596b40cef0ad0b82059ae816fdd18a4f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 00:34:12 +00:00
Adam Shih
b074658691
Accelerate fetching trusty log
...
Bug: 238980177
Test: vts-tradefed run vts -m VtsHalDumpstateTargetTest
Change-Id: Ib26f3c217ef4826495ee0d98a659503de2fb5ab2
2022-07-26 00:12:44 +00:00
George Lee
6497f603e9
dumpstate: Enable print out of thismeal.txt am: cc1831b66a
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19225814
Change-Id: I8edd99fc9e90b335be24f6aa7f0a1a36efdd7a7d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-11 18:30:13 +00:00
George Lee
cc1831b66a
dumpstate: Enable print out of thismeal.txt
...
thismeal.txt captures the ODPM breakdown when mitigation interrupt
occurs. This can help understand the power breakdown when interrupt
happens.
Bug: 238435115
Test: Bugreport contains the thismeal.txt once mitigation interrupt
triggers.
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I5dcfbaae9832b4e0c50293d0cc45d4b40ac9da7f
2022-07-11 18:01:18 +00:00
Kyle Tso
e31dc795f1
dumpstate: Dump logs
...
Bug: 237082721
Test: log dumped in bugreport
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: I8dfcbb397581644b6daf1a4c0aa45d53b5662dcd
2022-07-09 07:22:55 +00:00
Salmax Chang
40985ae6b5
dumpstate: refine the dumpstate logs collection am: aedd43e3cb
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19173749
Change-Id: I44275a7a597f14c8addd6ce1a5dff821abacdd00
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-06 07:01:42 +00:00
Salmax Chang
aedd43e3cb
dumpstate: refine the dumpstate logs collection
...
- Move dumpstate logs collection forward.
- Create dumpstate log sections and collection for all modules.
Bug: 238038612
Change-Id: If09e82edbdc4b24de3c667a3666af32e0acaa318
2022-07-06 06:35:36 +00:00
Ted Lin
d03b3f92bf
battery: Dump Health index stats
...
Bug:236856796
Test: Check the bugreport
Change-Id: I0b3d72c265d2a22553a048daa023bcc75a253fac
Signed-off-by: Ted Lin <tedlin@google.com>
2022-06-30 06:00:41 +00:00
Ted Lin
51958660cd
battery: Dump Health index stats
...
Bug:236856796
Test: Check the bugreport
Change-Id: I0b3d72c265d2a22553a048daa023bcc75a253fac
Signed-off-by: Ted Lin <tedlin@google.com>
2022-06-30 05:59:55 +00:00
Jenny Ho
f35f7bd5f4
dumpstate: add dump battery data for debugging
...
Bug: 205259954
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I11c93e25e12261444b222dfcc3bcdc6c6383072d
2022-06-21 06:33:43 +00:00
Minchan Kim
d4bfa6908a
dumpstate: dump cma information
...
At bugreport, dump cma information, which is useful for CMA
memory leak.
Bug: 233535442
Test: adb bugreport contains cma information in dumpstate_board.txt
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I37aa901b0376d5187c18c73422e9fa56bfd0d6bc
2022-06-13 22:35:38 +00:00
Jenny Ho
4617cffdd7
dumpstate: dump AACR related data
...
Add charging table and capacity dump for Age Adjusted Charge Rate (AACR) feature
Bug: 209987670
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: Ic9dd435557bf4e941fcbdb48fb134c938dd5be83
2022-06-06 13:00:09 +00:00
Alex Hong
b9cd590fd1
Do not register GS201 dumpstate HAL as a lazy HAL
...
Test: adb bugreport
./vts-tradefed run vts -m VtsHalDumpstateTargetTest
Bug: 231299630
Change-Id: I003b2560dc723570403440719b7b7cc259e75205
2022-05-30 05:04:11 +00:00
George Lee
fb6e5cf647
dumpstate: Mitigation logger readout
...
Mitigation Logger logs battery related information for 1 second when it
is triggered by under voltage or over current interrupts. Information
collected is to help debug system brownout. This change is to enable
bugreport reading out the mitigation log.
Bug: 228383769
Test: Boot and Test
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Ia735e46fc1b86b1971e8838d43f8733c73793ef8
2022-05-27 21:00:35 +00:00
Jacqueline Wong
21157f5ffa
Add gxp coredumps to Android bug report
...
- Add gxp dump files to dumpstate_board.bin of Android bug report:
/data/vendor/ssrdump/coredump/coredump_gxp_platform* and
/data/vendor/ssrdump/crashinfo_gxp_platform*
Test: adb root; adb remount -R; adb bugreport
Bug: 218358165
Signed-off-by: Jacqueline Wong <jacqwong@google.com>
Change-Id: Ib73659e94d86932b97756f13a19b7f093e23dc63
(cherry picked from commit a31c0571d3
)
2022-05-19 17:40:09 +00:00
Jenny Ho
60ccbd668e
dumpstate: add max77759_chg/max77729_pmic register dump
...
Bug: 230360103
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I93257674bf96f4e6bb6d9009c5a90571e251198a
2022-05-03 06:54:05 +00:00
Minchan Kim
520ebd6475
dumpstate: change page_pinner output file name
...
Change konb name to "buffer"
Bug: 230651222
Test: check dumpstate_board.txt from adb bugreport
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I80674d8728bab322ae2acdb3a8cd0ffaff39c977
2022-04-29 16:33:43 +00:00
SalmaxChang
c3151e4190
dumpstate: change log compression timeout to 20s
...
The duration of dumpstate board binary is only 45s.
Change the log compression timeout from 120s to 20s.
Bug: 229932116
Change-Id: I4f3ebe0c89db50a3ad7071fe730585a391f7ac81
2022-04-21 16:48:52 +00:00
Mason Wang
e8c9a801ab
Revert "dumpstate: Fix P10 touch can't work after bugreport."
...
This reverts commit 101c17fc95
.
Reason for revert: Please refer to b/228928861#comment21.
Change-Id: Ib85f87de4d8f220c30686c745ceb625a8055d649
2022-04-19 09:51:08 +08:00
Alex Hong
cbc81c7f5b
Upgrade android.hardware.dumpstate from HIDL 1.1 to AIDL 1
...
lshal is not supported for AIDL, now use dumpsys instead.
Update the debug command as below.
Old: lshal debug android.hardware.dumpstate@1.1::IDumpstateDevice/default [section]
New: dumpsys android.hardware.dumpstate.IDumpstateDevice/default [section]
Currently dumpsys does not start the Lazy HAL service, only dumpstate does.
Because we need to run dumpsys for debugging, keep the dumpstate HAL running at boot.
Do not set it to be a lazy HAL.
Test: atest VtsHalDumpstateTargetTest pass
adb shell dumpsys -t 30 android.hardware.dumpstate.IDumpstateDevice/default all
Bug: 223118410
Change-Id: I7f866a57c3eff8c9783fee89dce205cf9728c459
2022-04-15 17:00:31 +08:00
Mason Wang
101c17fc95
dumpstate: Fix P10 touch can't work after bugreport.
...
Do not dump the touch heatmap data to fix touch abnormally after bugreport.
This is the WA. I will revert it after kernel includes the solution
commit pa/2194708.
Bug: 228928861
Test: touch works well after triggering bugreport.
Change-Id: I43a92efa78d8b77e1616c8bf63800d5a93b99456
2022-04-14 10:56:27 +00:00
Jeremy DeHaan
baed6217b0
Add additional display info to dumpstate
...
Bug: 225376485
Test: Manual - ran 'adb bugreport'
Change-Id: I0cffe416805593241c629328973ad005b8c27b08
2022-04-06 18:51:45 +00:00
Mason Wang
0f7a0cb1a6
dumpstate: Dump P10 touch information.
...
Dump the touch information and rawdata when bugreport is triggered.
Bug: 199105131
Test: adb bugreport
Change-Id: Ie2450a3530ebd615067eaa70f1a0d74985d0e758
2022-04-06 10:03:14 +00:00
Luigi Zevola
d2c46291d5
dumpstate: remove tasks prints and clean up
...
Remove tasks printing when dumping state and clean up format
Bug: 226718218
Test: On C10
Signed-off-by: Luigi Zevola <zevola@google.com>
Change-Id: I275b9d213c133e8b80cbdb88d587c83cfe395089
(cherry picked from commit ce46e3cd48
)
2022-03-29 00:22:44 +00:00
Minchan Kim
ec97992b78
dump page_pinner information into bugreport
...
Dump page_pinner information into dumpstate_board.txt.
It helps to find vulnerable place of CMA failure.
Page pinned ts 13 us count 0
PFN 10292273 Block 10051 type CMA Flags 0x8000000000080024(uptodate|active|swapbacked)
try_grab_page+0x168/0x17c
follow_page_pte+0x2e4/0x4c8
follow_pmd_mask+0x180/0x498
__get_user_pages+0x1a0/0x42c
__get_user_pages_remote+0xa4/0x28c
get_user_pages_remote+0x20/0x48
copy_strings+0x188/0x2ac
do_execveat_common+0x278/0x300
__arm64_sys_execve+0x44/0x5c
el0_svc_common+0xa4/0x180
do_el0_svc+0x28/0x88
el0_svc+0x14/0x24
el0_sync_handler+0x88/0xec
el0_sync+0x19c/0x1c0
Page pinned ts 2 us count 0
PFN 10436170 Block 10191 type CMA Flags 0x8000000000080026(referenced|uptodate|active|swapbacked)
try_grab_page+0x168/0x17c
follow_page_pte+0x2e4/0x4c8
follow_pmd_mask+0x180/0x498
__get_user_pages+0x1a0/0x42c
__get_user_pages_remote+0xa4/0x28c
get_user_pages_remote+0x20/0x48
copy_strings+0x188/0x2ac
do_execveat_common+0x290/0x300
__arm64_sys_execve+0x44/0x5c
el0_svc_common+0xa4/0x180
do_el0_svc+0x28/0x88
el0_svc+0x14/0x24
el0_sync_handler+0x88/0xec
el0_sync+0x19c/0x1c0
Bug: 226956571
Test: adb bugreport <zip> and confirmed it contains page_pinner
information.
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: Iaf5cd9b70116ed5fff9351dcdcc5485aef18063f
2022-03-28 16:35:02 +00:00
Luigi Zevola
b1dadb6889
dumpstate: add additional AoC entries
...
Add additional AoC Entries to dumpstate to improve debuggability
Bug: 225585054
Test: On P10/C10
Signed-off-by: Luigi Zevola <zevola@google.com>
Change-Id: I2c276a0c157e64b3f376c4af1dbe214223a22af7
(cherry picked from commit 1f1958d031
)
2022-03-22 22:51:49 +00:00
TeYuan Wang
e138cd41be
dumpstate: dump cooling device user_vote
...
Bug: 221180075
Test: check dumpstate from bugreport
Change-Id: I68e1d5d3561770714f13ab2560a0533d2cbec243
2022-03-21 16:30:04 +00:00
Shinru Han
f943e9a4f3
gps: Add MCU crash dump to bugreport
...
- Add MCU (ESW) crash dump
- Add tmp log
- Reduce log number to 20
Bug: 223741583
Test: bugreport gps log test
Change-Id: I157d93bd0a3ede4e547df193d2808c4338c8c405
2022-03-18 03:21:36 +00:00
SalmaxChang
dd1cd8388f
dumpstate: add timeout for AoC memory dump
...
AoC memory dumps will take too long time and cause dumpstate board
timeout. Add 2s timeout for the memory dumps.
Bug: 216422700
Test: Triggered bugreport and checked dumpstate file.
Change-Id: Iedb49fa78caf7c5c54a9a1f69191d7441b7308ee
2022-03-17 02:03:12 +00:00
YiHo Cheng
1f04eb4aa6
dumpstate: Add tmu register dump
...
Add tmu register dump in thermal dumpstate section
Bug: 215040856
Test: check tmu register dump output in thermal dumpstate
Change-Id: Ia71d801b28b64abefbc472be717eb4e266599964
2022-03-01 01:23:19 +00:00
SalmaxChang
a04c61d42b
dumpstate: correct verbose logging property
...
Bug: 221173724
Change-Id: I9d525c55bed2f05e7e89d2253f7bd4f67b7cd6f3
2022-02-24 14:55:11 +08:00
Rick Yiu
13a4cde946
Dumpstate: Dump vendor group value
...
Dump attributes and tasks for each vendor group.
Bug: 216844247
Test: build pass
Change-Id: I001efa93fb1ea2fc283daaa28363a0cfc1eefbe8
2022-02-14 06:05:03 +00:00
Fangzhou Liu
536a1fea9b
Add CPA latency files into bugreport
...
Bug: b/215395069
Test: Verify bugreport
Change-Id: I6e500a741388a17f023d160dc7aca6dee81ee7af
2022-01-20 01:59:59 +00:00
George Lee
0d5e6ab435
bcl: Remove unused sysfs read
...
Bug: 197028142
Test: adb bugreport
Signed-off-by: George Lee <geolee@google.com>
Change-Id: Ia14108684ece750df7ce18314b97059f25b04591
2021-12-16 13:38:38 -08:00
Hsiu-Chang Chen
9401fa60b4
dumpstate: dump wlan firmware symbol file
...
Bug: 205919442
Test: Build Pass
Change-Id: Ib48b8bdf002e6462a7a0499f02b6a7b76329dee4
2021-12-14 11:10:37 +00:00
TeYuan Wang
404a90ef54
dumpstate: add more cooling device debug info
...
Bug: 202813409
Test: check dumpstate_board.txt
Change-Id: Ice04536c321d35553a948cdea2e6a1add207c2c7
2021-12-08 00:52:53 +00:00
davidycchen
8b35b3cf81
dumpstate: read C10 touch information
...
Dump the touch information and rawdata when bugreport is triggered.
Bug: 199104466
Test: adb bugreport
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I1047ddfd063d90114b3ff2173c3b4da3a2bb414a
2021-12-01 10:01:51 +00:00
Jenny Ho
49425acfb8
dumpstate: sync battery dumpstate data
...
Bug: 205071645
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I16dbfb492311e532fa14a001686ca1d3386b57aa
2021-11-15 01:53:30 +00:00
Ted Lin
270a005cb4
dumpstate: eeprom and fix the permission problem
...
Bug: 200119012
Change-Id: I753ab06c819f6b1c739a87f27785bcdab05282b6
Signed-off-by: Ted Lin <tedlin@google.com>
2021-11-11 06:48:39 +00:00
Jenny Ho
184fe31622
dumpstate: dump battery maxfg monitor log
...
Bug: 196755019
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I04e2be21680c2cc673af1205cdb772fa3b845bd4
2021-11-11 06:48:39 +00:00
Ted Lin
189567984c
dumpstate: initialize for gs201
...
Sync code for charger/guage/PPS/gvotables/Mitigation.
Bug:200119012
Change-Id: I1046626185ac516c5ed4d491e4d7fe7822d1db1b
Signed-off-by: Ted Lin <tedlin@google.com>
2021-11-11 06:48:39 +00:00
Michael Eastwood
54862e27b5
Save .cpa files generated when camera HAL is killed by the watchdog thread.
...
Bug: 197979923
Test: m -j
Change-Id: Ifbf22dbd9f5fe58d69e27ec157c10fafde4b18e3
2021-11-01 22:58:37 +00:00
Max Kogan
56ea9bfc5b
dumpstate: merge AoC gs101 dumpstate
...
Bug: 203827311
Change-Id: Icb7a925445992d534cae86625b249b46952d9d53
2021-10-28 05:14:06 +00:00
Joseph Jang
24b6c9320a
dumpstate: Add support to get GSC DEBUG DUMP
...
In order to get GSC DEBUG DUMP in bugreport zip file, we add a new
console command "./vendor/bin/hw/citadel_updater -D" to retrieve 1KB
GSC DEBUG DUMP for dumpstate.
If so, we could check GSC DEBUG DUMP in dumpstate_board.txt from bugreport.
File: dumpstate_board.txt
------ Citadel VERSION (vendor/bin/hw/citadel_updater -lv) ------
0.0.2/nugget_v0.0.1138-399621c+ 2021-10-07 08:53:24 josephjang
Chip: Google Dauntless D2 (evt)
Board: 0
RO_A: 0.1.1/17af49b9 ok
RO_B: * 0.1.1/b0de9d69 ok
RW_A: * 0.0.2/nugget_v0.0.1138-399621c+ ok
RW_B: Error
------ Citadel STATS (vendor/bin/hw/citadel_updater --stats) ------
hard_reset_count 1
time_since_hard_reset 335976980
wake_count 5
time_at_last_wake 335920127
time_spent_awake 50563801
deep_sleep_count 4
time_at_last_deep_sleep 268360610
time_spent_in_deep_sleep 285413177
time_at_ap_reset 11401
time_at_ap_bootloader_done 10939493
PHONE_ON_L: 1
VOL_UP_L: 1
VOL_DN_L: 1
TEMP.RANGE: 39,39
------ GSC DEBUG DUMP (vendor/bin/hw/citadel_updater -D) ------
debug dump start
000007d70605 85 00 0174aa0d 00000000
000007f56df5 85 00 0174aa0d 00000000
0000080212cd 85 00 0174aa0d 00000000
00000b73fe80 85 00 0174aa0d 00000000
debug dump end
------ Section end: gsc ------
Bug: 194113345
Change-Id: I48feabac2bf2b42f8f0b10a396ea066ace67b694
2021-10-18 14:49:38 +00:00
Kyle Tso
1fc334c1c6
dumpstate: dump logbuffer tcpm logs in bugreport
...
(Port of ag/15018442)
Bug: 189792358
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: I936028d0d3360f2611b672bdc353438fb8478ca6
2021-09-02 14:08:05 +08:00
Roger Wang
49d98956fc
dumpstate: remove wifi fw symbol table
...
In b/183180525, vendor mentioned they won't provide
fw symbol table (logstrs.bin) in terms of their internal
concern. Hence, remove wifi fw symbol table from dumpstate.
Bug: 197849117
Test: build pass, device can connect to AP.
Change-Id: I91f5c38b87fd099961a95ac2ddf7fb8232003cd7
2021-08-27 10:24:13 +08:00
Michael Eastwood
bdd18706de
Attach the latest .cpa file to bugreports (gs201).
...
* Latest is determined by alphabetical order
* To find the .cpa file, unzip the bug report and run
`tar -xvf dumpstate_board.bin`
* The .cpa file can then be found under the `camera/` directory
* This can be disabled with the prop
`vendor.camera.debug.camera_performance_analyzer.attach_to_bugreport`
Bug: 191169822
Test: m -j
Change-Id: Iee7fbe45dfd5bbd67af0e5ebd965884b84e531ff
2021-08-16 13:28:38 -07:00
Armelle Laine
ab4c5929db
Include /dev/trusty-log0 as one of the Cloudripper's dumpstate_board section
...
- DumpState add trusty section to dump /dev/trusty-log0
- ueventd.gs101.rc: add /dev/trusty-log0 (system ownership) and r/w permissions to user/group
Test: adb root; adb shell lshal debug android.hardware.dumpstate@1.1::IDumpstateDevice/default trusty
Bug: 192036703
Change-Id: I752ee9c9a88855485d71ed9deb1555df5bb005cd
Signed-off-by: Armelle Laine <armellel@google.com>
2021-06-25 20:37:56 +00:00
Pat Tjin
89841bf57a
s/gs101/gs201
...
do a global substitution
Bug: 186836335
Signed-off-by: Pat Tjin <pattjin@google.com>
Change-Id: Ic79e8983d04615be7da70ebb2b5092aae5178495
2021-05-20 17:54:35 +08:00