Adam Shih
40b3e768e4
move modem dump to gs-common
...
Bug: 250475732
Test: adb bugreport
Change-Id: Ifa227d7712c5d019db2e3a9d6fea118d054be601
2022-10-07 01:04:49 +00:00
Adam Shih
69aa9e1774
move soc dump to gs-common
...
Bug: 248428203
Test: adb bugreport
Change-Id: Ia96ecf46bb3af9d72da1bf30cfa0d17d9985e4c4
2022-10-05 02:14:13 +00:00
Adam Shih
2b7c6714f1
move ramdump relate dumpstate to gs-common
...
Bug: 248428203
Test: adb bugreport
Change-Id: I2e3f3ebaccd6a6b345f75d6ebfb3f38d8be6d0f8
2022-10-03 06:02:36 +00:00
Adam Shih
badac57edd
move UFS dump to gs-common
...
Bug: 248143736
Test: adb bugreport
Change-Id: I39b950942d0d7d9331fa808f46cd7622c5b43690
2022-09-29 01:07:43 +00:00
Adam Shih
c20b957299
dump f2fs in gs-common
...
Bug: 248143736
Test: adb bugreport
Change-Id: Ife974bc4e246f9a85475cf78bc6867a29f5423c7
2022-09-27 17:02:26 +08:00
Adam Shih
552fe66f7f
allow dumpstate to execute files under vendor/bin/dump
...
Bug: 240530709
Test: adb bugreport has the same result
Change-Id: I6927c3ab64369f1e3c30842d571f66374dd544ac
2022-09-16 11:29:12 +08:00
JJ Lee
6ac6818309
dumpstate: Add aoc memory vote dump for a32 and ff1 am: 0327040142
am: 0c0e38a98c
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/19738947
Change-Id: I6d6151ee8713b5fd30c4f644dc4f5830139bb7b9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-08 06:00:11 +00:00
Wiwit Rifa'i
be25a86c46
dumpstate: add HWC fence state, error log, and debug dump files
...
Add some HWC log files in /data/vendor/log/hwc to dumpstate, i.e.
[1] hwc_fence_state.txt: contains the dump of fence state when there's
a fence leak warning. We can also execute `vndservice call
Exynos.HWCService 11 i32 0 i32 308 i32 1` to trigger the dump to this
file. The size of this file is limited to about 1 MB.
[2] hwc_error_log.txt: contains some early logs of ALOGE() from HWC.
The size of this file is limited to about 1 MB.
[3] {display_name}_hwc_debug0.dump - {display_name}_hwc_debug9.dump:
contain the debug dumps when there are some failures in HWC (e.g.
failures in validateDisplay() or presentDisplay()). HWC will only limit
up to first 10 debug dumps per display to be saved in separated files.
Bug: 230361290
Test: adb bugreport
Change-Id: If2158a326faef96c0e0cd4e93a17ec420409bf1e
2022-09-07 12:28:31 +00:00
JJ Lee
0327040142
dumpstate: Add aoc memory vote dump for a32 and ff1
...
Bug: 223674292
Test: Boot test, taking bugreport is not blocked
Change-Id: I2b88004ba641b8ef339826130e7aa4e61f5b0d11
Signed-off-by: JJ Lee <leejj@google.com>
2022-09-07 11:45:34 +00:00
Adam Shih
02836452b1
Move dauntless settings to gs-common
...
Bug: 242479757
Test: build pass on all Gchip devices
Change-Id: I888eaee83c6045b4535bca23082ab1ce75e0dfc8
2022-08-31 23:49:33 +00:00
Robb Glasser
bd74c5f123
Dump usf stats history in bugreports. am: 93e624ad3f
am: 3d01326626
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/19672463
Change-Id: I77e8e887123def938196f330ec8bd1fd8fd5d44c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-25 04:06:32 +00:00
Robb Glasser
93e624ad3f
Dump usf stats history in bugreports.
...
USF saves a stat buffer to the filesystem periodically. Dump this as
part of bugreports.
Bug: 242320914
Test: Stats are visible in a bugreport.
Change-Id: If609d76b224228061021fdc1463b6e8dfb6170ca
2022-08-25 02:47:58 +00:00
Jaegeuk Kim
8f8428d618
Dumpstate: get fsck log
...
Bug: 241641121
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: Iaadb166fe9194518b2db75080cddc02526bdf2bb
2022-08-22 04:41:14 +00:00
Ted Lin
af22af8d11
battery: Dump Health index stats
...
Bug:236856796
Test: Check the bugreport
Change-Id: Icc365357fa2d1fbeaa6c776d88cac3828192e59d
Signed-off-by: Ted Lin <tedlin@google.com>
2022-06-29 03:47:40 +00:00
Ken Huang
b4854aa4bb
Revert "dumpstate: add HWC logs"
...
This reverts commit b495f66b85
.
Reason for revert: CTS failure
Bug: 233982921
Test: bugreport
Change-Id: Ic1bb3fe6b3ac2b8f56646e3c9cdbfda963a5462e
2022-06-09 07:49:07 +00:00
Wiwit Rifa'i
b495f66b85
dumpstate: add HWC logs
...
Add hwc log files in /data/vendor/log/hwc to dumpstate.
Bug: 230361290
Test: Manual - 'adb bugreport'
Change-Id: Id23a16f42ecbdf75d83e056c7cba076041e19176
2022-05-24 02:12:28 +00:00
Kyle Tso
4db75dda18
dumpstate: Dump logs
...
Bug: 232556226
Test: log dumped in bugreport
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: Iacd4db38dd56c1d5ba6f58c757f023795a9c3a3b
Merged-In: Iacd4db38dd56c1d5ba6f58c757f023795a9c3a3b
2022-05-24 00:00:46 +00:00
Jenny Ho
93baf1e97e
dumpstate: add max77759_chg/max77729_pmic register dump
...
Bug: 230360103
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I4042e58370d70b97dc1e84e72a8c927b68e08b17
2022-05-03 10:39:20 +00:00
Minchan Kim
b584dfcbac
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: I4fbab07047af73e38bad3c4a222ba191d045a961
2022-04-28 17:47:19 +00:00
chungkai
deca07793f
init: modify path of i2c peripherals
...
add potential paths when enable parpllel module loading
Test: build pass
Bug: 228181404
Signed-off-by: chungkai <chungkai@google.com>
Change-Id: I929669a2ddc9155ad4dac1f40f808ffcb4c914f2
2022-04-07 09:33:25 +00:00
Jenny Ho
1549259d37
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
(cherry picked from commit 5b71630967
)
2022-03-29 08:10:15 +00:00
Luigi Zevola
f0cc850c9a
dumpstate: remove tasks prints and clean up
...
Remove tasks printing when dumping state and clean up format
Bug: 226718218
Test: On R4
Signed-off-by: Luigi Zevola <zevola@google.com>
Change-Id: I596dc6ffa047d951cb87a9905d145cdaa8365d2e
(cherry picked from commit 734c360052
)
2022-03-28 21:46:09 +00:00
Super Liu
40429a7aef
dumpstate: update the nvt touch path.
...
Bug: 219602920
Test: TH build pass.
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I9f97cef742e16ee357bc5b872180682520602c76
2022-03-24 09:48:55 +00:00
Luigi Zevola
7a185ef62c
dumpstate: add additional AoC entries
...
Add additional AoC Entries to dumpstate to improve debuggability
Bug: 225576718
Test: On R4/O6
Signed-off-by: Luigi Zevola <zevola@google.com>
Change-Id: I1eda56f2e98f60ff6056e9cf7549dc598d1c35f2
(cherry picked from commit f7227d95d7
)
2022-03-22 22:51:18 +00:00
TeYuan Wang
3eb0ab2628
dumpstate: dump cooling device user_vote
...
Bug: 221180075
Test: check dumpstate from bugreport
Change-Id: I59da9c36ff2cfcd4176906992b35dd113aff90b1
2022-03-21 10:28:32 +08:00
Fangzhou Liu
2e38d1aa45
Add CPA latency files into bugreport
...
This is to support gs101 devices
Bug: b/215395069
Test: Verify bugreport
Change-Id: I8d3f045f63c65e9d75041c28d740dcbabffbc78a
2022-01-21 03:21:48 +00:00
YiHo Cheng
32f8b076b4
dumpstate: Add tmu register dump am: 676247423b
am: f71383eb96
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16569086
Change-Id: I8aa7ac9bb8f285f8f1f7bdb6a9873c3e278373b5
2022-01-12 23:26:51 +00:00
YiHo Cheng
676247423b
dumpstate: Add tmu register dump
...
Add tmu register dump in thermal section to get tmu status
Bug: 202736838
Test: check tmu register dump info in thermal dumpstate
Change-Id: Ife2ff971eaeda2b132658ca2704bf1edde6fd80a
2022-01-12 23:03:41 +00:00
TeYuan Wang
125d1d5833
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
Super Liu
7dc7b5ff1d
dumpstate: stop dumping pretouch status.
...
Somehow FW will be unstable after dumping status.
Temporarily remove this to find out the root cause
with vendor.
Bug: 193467774
Test: lshal debug android.hardware.dumpstate@1.0::IDumpstateDevice/default pre-touch
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I670558f30f9d809a8f9df41e4844ee451c7f3f17
2021-11-18 12:27:29 +08:00
Super Liu
b32bc7188d
dumpstate: support pre-touch status.
...
Bug: 193467774
Test: check bugreport for touch pre-logs.
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I5c854866302333df7eac803b0366d432bc8d2540
2021-11-16 10:56:42 +00:00
davidycchen
82343a1489
dumpstate: dump touch HDM debug information am: 87c912336a
am: 7a68c3cc43
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16169685
Change-Id: I6ead244615b425084ff208b7e525de2c6de75804
2021-11-03 05:23:23 +00:00
davidycchen
87c912336a
dumpstate: dump touch HDM debug information
...
HDM debug information already expend to 64 bytes. Dump whole debug
information when bugreport is triggered.
Read HDM debug information twice to check if any status events keep
changing.
Bug: 174191180
Test: trigger bugreport and check the data.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I9d2f9ed094f85dae303ba47e85a182adcd6954ac
2021-11-03 04:46:03 +00:00
Michael Eastwood
156d28682b
Save .cpa files generated when camera HAL is killed by the watchdog thread.
...
Bug: 197979923
Test: m -j
Change-Id: I357828a2b13185cc605fe60b0d3647ad94509ffa
2021-11-01 17:41:53 -07:00
Joseph Jang
473f1211f1
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: I1c43c337cef49b2be4af27d2dc28797e29f0dc9a
2021-10-19 08:39:28 +00:00
Max Kogan
27387c062b
dumpstate: dump AoC memory votes stats am: 03c1d9311b am: 3f76fa5e24 am: 8f0acb3d64
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15901108
Change-Id: I3ed726451477c4b8ea1fe75c02ddfe4dc2e60c0a
2021-10-04 18:57:11 +00:00
Max Kogan
e39ae2f261
dumpstate: dump AoC memory votes stats am: 03c1d9311b am: 3f76fa5e24
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15901108
Change-Id: I4dcc012073e403823f6a772caf790b5068fce71a
2021-10-04 18:24:27 +00:00
Max Kogan
12186695b5
dumpstate: dump AoC memory votes stats am: 03c1d9311b
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15901108
Change-Id: I14f2fe73e01ec2544ab7e83b384ed4f4cb0da90a
2021-10-04 18:15:20 +00:00
Max Kogan
6896836e0e
dumpstate: dump AoC memory votes stats
...
Bug: 198203507
Test: adb bugreport, open Bug Sections "dumpstate_board.txt"
Test: search for "AoC memory votes"
Change-Id: I24d80a6e3493ccc961b8eed3b9da4b9dfbbf457f
2021-10-04 18:04:01 +00:00
Jenny Ho
bec20a58c0
dumpstate: dump battery maxfg monitor log
...
Bug: 196755019
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Merged-In: I04e2be21680c2cc673af1205cdb772fa3b845bd
Change-Id: I04e2be21680c2cc673af1205cdb772fa3b845bd4
2021-09-27 15:39:49 +00:00
Shinru Han
eed7afc0c3
gps: Reduce gps log in bugreport am: f9ac8dc5a6 am: 65c5d56dbc
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15898344
Change-Id: If7c313e19e62d818d22db57d3cfce4dc22016b2a
2021-09-27 07:48:02 +00:00
Shinru Han
bd41d508db
gps: Reduce gps log in bugreport
...
Since the lhd traffic log is disabled, currently the GPS log in
bugreport can record ~45 min ( (1.5 min per file) * 30 ) GPS track,
which is 15 min longer than expected.
To get smaller bugreport, we reduce the log count to 20.
(~= 30 min GPS track)
Bug: 200916523
Test: adb bugreport and check gps log count
Change-Id: Ic3969949968a30a77a4c6092eeea73d5053f906b
2021-09-27 07:22:28 +00:00
Badhri Jagan Sridharan
9a5cd29e7c
dumpstate: Dump TCPC registers and attributes am: 7372d2275b am: d8dc4e43bb am: 35068885ad
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15856534
Change-Id: I559acb873491754131dd73e75bfb40c882799268
2021-09-23 06:16:59 +00:00
Badhri Jagan Sridharan
4fff4091a8
dumpstate: Dump TCPC registers and attributes am: 7372d2275b am: d8dc4e43bb
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15856534
Change-Id: Ibd3473244c9a3866f4b252ae8d6fab61a0345427
2021-09-23 06:07:01 +00:00
Badhri Jagan Sridharan
eac22f2c6f
dumpstate: Dump TCPC registers and attributes am: 7372d2275b
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15856534
Change-Id: Ifc7f9c69859f7e8514e2e27ee0cb5f1a6233c699
2021-09-23 05:53:43 +00:00
Badhri Jagan Sridharan
aa0a8e1b7d
dumpstate: Dump TCPC registers and attributes
...
debugfs not accessible in user builds. Hence dumping through
sysfs.
Bug: 200313640
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: I5e42d1cd9b53c0989dbbb35bf580271d15cd8db3
2021-09-23 05:38:36 +00:00
Jenny Ho
fa71329aeb
dumpstate: dump battery maxfg monitor log am: c553a4484b am: 7fc5dc7c60
...
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15732961
Change-Id: I529984b86a7631b63aad9cfadae4f69454d76919
2021-09-07 14:33:01 +00:00
Jenny Ho
1dfbc241a0
dumpstate: dump battery maxfg monitor log
...
Bug: 196755019
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I04e2be21680c2cc673af1205cdb772fa3b845bd4
2021-09-07 14:00:21 +00:00
Ted Lin
2b86da4352
dumpstate: move the dump registers from regmap to each driver
...
dumpstate availible to dump data with below 2 permission:
-r--r--r-- 1 root root
-r--r----- 1 system system
but /d/regmap permission is -r-------- 1 root root
1. we cannot change root to system with chown if the file node is root
2. we cannot change to read with chmod if the file node is root
3. try change permission in vendor_init causes sepolicy build fail with
message rule neverallow
Base on above results, we added new file node in kernel with available
permission to dump needed data and dump it.
Bug: 194941806
Test: adb bugreport
Change-Id: Ieeb1adfb0351ceb33bf817cbef3663d41cdb8645
Signed-off-by: Ted Lin <tedlin@google.com>
2021-09-03 05:44:37 +00:00
Jack Wu
cc5cecb4e4
dumpstate: dump dock power_supply
...
Bug: 196017001
Test: can show in dumpstate
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: I6cc739cb26b9cc2131357297d6cab116de4db012
2021-08-17 03:49:02 +00:00