Commit graph

138 commits

Author SHA1 Message Date
Adam Shih
a9207eff25 Move camera text dump to dump_gs101
Bug: 273380985
Test: adb bugreport
Change-Id: Ie82c87ba87d175cb861d36f7e4a94c0e730da0d2
2023-03-28 02:20:56 +00:00
Adam Shih
05082134e1 Move cma dump to itself
Bug: 273380985
Test: adb bugreport
Change-Id: I6732dd8dbbf0367f99e25b29f2a0dd526aaac9d4
2023-03-24 13:55:53 +08:00
Adam Shih
9df43666f0 use devfreq dump from gs-common
Bug: 273380985
Test: adb bugreport
Change-Id: I2d301fad03cbac0bc63ae6f522df31ab5c607118
2023-03-21 07:51:50 +00:00
Adam Shih
27657f1a1e allow modem to debug 5 seconds longer
Bug: 273638955
Bug: 273639036
Test: adb bugreport
Change-Id: I0c978577625397ba88958b31ae8ace6a6aabd9ab
2023-03-20 10:26:33 +08:00
Adam Shih
78bbc7d5f8 Move display dump to gs-common
Bug: 269212897
Test: adb bugreport
Change-Id: Idc38fd971b274ba4ef62e2347c92eef7fb13e20f
2023-03-07 12:57:48 +08:00
Adam Shih
1f747d3b75 Move memory dump to gs-common
Bug: 240530709
Test: adb bugreport
Change-Id: I3ee10b08e4218f2e7cda7f741936bc647818c447
2023-02-14 07:22:05 +00:00
Adam Shih
a64bf67d97 extract misc section from dumpstate
Bug: 240530709
Test: adb bugreport
Change-Id: Idd305ceb4786b5e66c2f1d8e2ae20ffd233bd088
2023-02-10 13:42:43 +08:00
Pat Tjin
eda8cd2218 Add OWNERs to dumpstate
Change-Id: I1f6d0b7d8c950dffc9f438f554c05db537fe94a7
2023-01-31 05:24:03 +00:00
Taylor Nelms
c50d6678f6 Modify dumpstate to point to decon_counters in sysfs rather than debugfs
Bug: 240346564
Test: Build for Oriole device with "user" build, check bug report for decon_counters content
Change-Id: I5ae08064c2c4106b9f54f7823f1e325a6d6978b5
Signed-off-by: Taylor Nelms <tknelms@google.com>
2022-12-21 01:41:36 +00:00
Adam Shih
989d016d98 move dump cpu to gs-common
Bug: 240530709
Test: adb bugreport
Change-Id: I073a4c55053b8844b2702c9cd5d7a9e84840b66d
2022-12-14 00:41:12 +00:00
Wiwit Rifa'i
73e95ea084 dumpstate: change HWC fence & error logs to be per display
hwc_error_log.txt and hwc_fence_state.txt files will be changed to be
per display. Those files could also be divided into at most 2 files,
i.e.
- hwc_error_log.txt will be renamed to
  {DisplayName}_hwc_error_log{index}.txt where {index} is 0 or 1.
- hwc_fence_state.txt will be renamed to
  {DisplayName}_hwc_fence_state{index}.txt where {index} is 0 or 1.

Bug: 245511651
Test: adb bugreport
Change-Id: I08fbc4faf5fea72cbbca007f43ccedd22d1e0aca
2022-12-13 05:09:22 +00:00
kierancyphus
a381b21dfc Dumpstate.cpp: use new history dir and inc more files
Modify the logging mask file path to instead point to the new history
directory, as well as include more files (right now only logging mask
history and logging enabled history).

Bug: 259174982
Test: Manually build and inspect bugreport to make sure files are
included

Change-Id: I1a57e0f4fea66929803fac350547b706d7442b26
2022-12-07 03:18:53 +00:00
Adam Shih
66379fde0e use touch dump from gs-common
Bug: 256521567
Test: adb bugreport
Change-Id: I224a2a194c9e37768e8a5c7e879da97964d97fbf
2022-11-29 04:47:15 +00:00
kierancyphus
fddf45d940 Include modem log mask history in dumpstate
Includes the file `LoggingMaskHistory.csv` when a bug report is triggered.

Bug: 241739027
Test: Trigger a bugreport with `adb bugreport` and check to make sure
the report contains the `LoggingMaskHistory` file. E.g. after
unzipping `cat <bugreport>.txt | grep -a 'LoggingMaskHistory'`.

Change-Id: Ibfa74194d13cb4dc5c3f2cf9f54ee81390a301a6
2022-11-25 03:58:45 +00:00
Adam Shih
34fc0761d3 remove raven touch dump
Bug: 256521567
Test: adb bugreport
Change-Id: I17b72b69b882fc670f780f7d480ae828d9f3c931
2022-11-16 07:42:22 +00:00
Adam Shih
e182c63bd6 move thermal dump to gs-common
Bug: 257880034
Test: adb shell dumpsys android.hardware.dumpstate.IDumpstateDevice/default dump_thermal.sh
Change-Id: I6fa51c7662401a45defed776d69334fc42cee49e
2022-11-16 03:52:39 +00:00
Adam Shih
95e0d9bdb9 move sensors dump to gs-common
Bug: 250475720
Test: adb bugreport
Change-Id: I500bfba706b74a872d4ba07b9b58efaed015772e
2022-11-11 05:35:22 +00:00
Kevin Jeon
9257a5f2dc Add tracepoints to gs101 dumpstateBoard
This change adds tracepoints for the gs101 implementation of
dumpstateBoard. This is intended to help identify long-running sections.

Test: Build+flash, check that traces of 'adb bugreportz' show the
      expected trace sections.
Bug: 258228821
Change-Id: I8efea28278b4507a7e2a448c96281113331cbd02
2022-11-10 15:33:05 +00:00
Jenny Ho
d5d60ee813 Merge "[conflict] dumpstate: dump battery defend logbuffer am: 34e66966c7 am: e4fd1ce422" 2022-11-03 06:33:04 +00:00
Roger Wang
6665f0dcc7 wifi: remove unnecessary debug dump
Since design was adjusted, we are no longer need
to cat dump_start when bugreport be triggered.

Bug: 256746618
Test: Trigger bugreport and check debug files.
Change-Id: I907e707be99a35bfd76dfdb5f9bd693cb4b471d8
Signed-off-by: Roger Wang <wangroger@google.com>
2022-11-03 05:33:08 +00:00
Jenny Ho
90ad087288 [conflict] dumpstate: dump battery defend logbuffer am: 34e66966c7 am: e4fd1ce422
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/20310168

Bug: 257151155
Change-Id: Ib5ebc52513667e163a8db7d5b36b7438e4c7b8cc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 03:37:04 +00:00
Jenny Ho
e4fd1ce422 dumpstate: dump battery defend logbuffer am: 34e66966c7
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/20310168

Change-Id: Ibbc74ada239907e10aeaf9a392cf392a3eee37d4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 00:59:48 +00:00
Jenny Ho
34e66966c7 dumpstate: dump battery defend logbuffer
Bug: 242679204
Change-Id: I59c2267105ef093a75c2cac2183c941def70b10f
Signed-off-by: Jenny Ho <hsiufangho@google.com>
2022-11-03 00:39:32 +00:00
Adam Shih
3c94afad75 align user experience on Android bug tool
Bug: 255250616
Test:
adb shell dumpsys android.hardware.dumpstate.IDumpstateDevice/default wlan

Change-Id: Ibefd8f9fff91cf6ece1f09dd6b207b6f9c97df4d
2022-11-02 07:22:56 +00:00
Adam Shih
0e57a35f5d upgrade dumpstate from hidl to aidl
Bug: 240530709
Test: adb bugreport
Change-Id: I0cd75fa84e495037a55284b43bd0ee53e5379d4c
2022-10-14 07:37:42 +00:00
Adam Shih
179d0e83ea remove redundant code that has moved to gs-common
Bug: 248426917
Test: adb bugreport
Change-Id: I61a64b13a84bdf397a7cf0e11e7665711529e35e
2022-10-12 10:56:15 +08:00
Adam Shih
b2d7dc9459 move trusty dump from gs101 to gs-common
Bug: 244504232
Test: adb bugreport
Change-Id: I486f18dc55eea3843972d856e81d736cd6c25141
2022-10-11 08:07:16 +08:00
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
JJ Lee
0c0e38a98c dumpstate: Add aoc memory vote dump for a32 and ff1 am: 0327040142
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/19738947

Change-Id: Ie598bcd62199f531836d7ad39d8c799abdb398f0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-08 05:16:23 +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
3d01326626 Dump usf stats history in bugreports. am: 93e624ad3f
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/19672463

Change-Id: Ibecfc8e1a9edba9d6caa14d52858fc7531f99bd4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-25 03:38:27 +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
Adam Shih
9a55ac6b53 Add Owners file to manage dumpstate am: ec4736a3ec am: 5f45253fdb am: 952d5ae441 am: 28502d8ad4
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2185955

Change-Id: I7ad04531d6e0c26c1c3ecd6b5ee9b96b0680eaf1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-15 04:24:53 +00:00
Adam Shih
5f45253fdb Add Owners file to manage dumpstate am: ec4736a3ec
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2185955

Change-Id: If0a0b7a2ec5797d257d0a5e51cc707da005b0ed0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-15 03:21:47 +00:00
Adam Shih
ec4736a3ec Add Owners file to manage dumpstate
Bug: 240530709
Change-Id: If7d9a169a3085e358256289dd8a8284a4d808271
2022-08-15 09:59:26 +08: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
Kyle Tso
d1e76e74ef dumpstate: Dump logs am: 21502f2978
Original change: https://android-review.googlesource.com/c/device/google/gs101/+/2098913

Change-Id: I4a7de39f80fc91443c3405278c66d48cc0a5ff61
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-19 07:56:40 +00:00