Commit graph

41 commits

Author SHA1 Message Date
Doug Zobel
b8ff3f3f68 dumpstate: Collect PCIe link stats [DO NOT MERGE]
Collect PCIe link statistics in dumpstate.

DO NOT MERGE because the same functionality is already
implemented in dump_pcie.sh in upstream branches.

Test: adb bugreport && unzip bugreport*.zip &&
      grep link_stats dumpstate_board.txt
Bug: 266561593
Change-Id: I5b530b68f8c8cd6ed2bc5016d5aef55c3caafbd8
Signed-off-by: Doug Zobel <zobel@google.com>
2023-02-14 12:50:37 -06:00
Taylor Nelms
17c28ccd37 Modify dumpstate to point to counters in sysfs rather than debugfs
Bug: 240346564
Test: Build for Cheetah device with user build,
check bugreport for decon_counters content
Merged-In: I0026378d81f5de5ac48b658861a2d8a85c817820
Change-Id: Ia20e1e985d3d83b58e4dce28d7537b49b545e243
Signed-off-by: Taylor Nelms <tknelms@google.com>
2023-02-03 13:18:02 +00:00
Sajid Dalvi
fd2a8ca06b dumpstate: Add logbuffer support for pcie driver [DO NOT MERGE]
Add logbuffer support to pcie driver to reduce dmesg spam.

Bug: 267495494
Change-Id: Ic70dfd696d084c1ab7f55872b69ca86856720592
Signed-off-by: Sajid Dalvi <sdalvi@google.com>
2023-02-02 21:30:23 +00:00
Jack Wu
e28746e3f1 dumpstate: add battery eeprom in bugreport
Bug: 265889611
Test: adb bugreport
Change-Id: I604834cdae4a3352db20301128d61059c71f0fb2
Signed-off-by: Jack Wu <wjack@google.com>
2023-01-18 08:17:23 +00:00
Wasb Liu
08a7fc6c70 dumpstate: dump dual batt logbuffer
Add logbuffer_dual_batt to dumpstate.
Also fix some dual batt related dump pathes.

Bug: 263496320
Test: build pass, no related permission errors.
Change-Id: Ibfd3dfc18acc049052f07246c8d85ae04b4f95f5
Signed-off-by: Wasb Liu <wasbliu@google.com>
2023-01-17 04:52:50 +00:00
Alex Hong
d6f061f45a Fix the index out of bounds error when the modem FD is missing
Bug: 263783650
Test: atest VtsHalDumpstateTargetTest pass
Change-Id: I3795244e111bbf18b1a2a2a27a93242b4015baa7
2023-01-09 21:34:14 +08:00
Super Liu
33673ae71f [DO NOT MERGE] Support gti proc dump.
Bug: 262796907
Test: TreeHugger build pass.
Change-Id: I84f68070b50272d4beeaa6178011584fc3a38a9f
2022-12-23 06:56:00 +00:00
Mason Wang
a6120d0625 Dumpstate: Add golden mutual raw data for FST2 touch. [DO NOT MERGE]
Bug: 254201934
Test: The BR has the data of "Golden Mutual Raw Data.
Signed-off-by: Mason Wang <masonwang@google.com>
Change-Id: I017462d0cd6f2ed3032f0f775d078ef3f5790193
2022-12-13 23:52:03 +00:00
kierancyphus
ebeab15ad7 Dumpstate: 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: Id87f381a4895399a035ea4fe55d132e31d5d796c
Merged-In: Id87f381a4895399a035ea4fe55d132e31d5d796c
2022-12-07 06:55:42 +00:00
Ziyi Cui
ead189b0f8 [DO NOT MERGE] gs201:dumpstate: Dump long irq metrics, resume latency metrics at bugreport
At the bugreport, capture long irq metrics and resume latency metrics

Bug: 227809911
Bug: 232541623
Test: "adb bugreport" includes metrics capture.
Signed-off-by: Ziyi Cui <ziyic@google.com>
Change-Id: I8dc3330da3b9274be24534b52db86f0b3d01a482
2022-12-01 06:31:01 +00:00
Ziyi Cui
78f9096a34 [DO NOT MERGE] dumpstate: Dump Temperature Residency at bugreport
At the bugreport, capture Temperature Residency metrics

Bug: 246799997
Test: Test: "adb bugreport" includes temp residency metrics capture.
Signed-off-by: Ziyi Cui <ziyic@google.com>
Merged-In: I49ffdcadce89e3dc8859819576998df56928a75a
Change-Id: I360b7d26c94556f43945a0c3c0e942fb0c48fa5d
2022-12-01 06:27:22 +00:00
Mason Wang
758d4f22fe Dumpstate: Filter not used dumps of touch node. [DO NOT MERGE]
Bug: 226475119
Test: Dumps of outer panel is in bugreport.
Change-Id: I1e6e59e1709715306671df9536685d9b3a9e34d6
2022-11-30 23:04:01 +00:00
Mason Wang
0cdf324421 Dumpstate: Avoid to dumps on invalid file node [DO NOT MERGE]
Bug: 226475119
Test: Verify pass by touch dump data in bugreport.
Change-Id: I9088ca44a9111ae36462f340da57dfe27d4b86ec
2022-11-28 11:51:37 +08:00
Kieran Cyphus
fef314ea8a Dumpstate: include LoggingMaskHistory.csv on bugreport
Bug: 241739027
Test: trigger bugreport with `adb bugreport` and inspect the
logs to to make sure it is copying over LoggingMaskHistory and
including it in the tar file at the end.

Change-Id: I93ad2655193c57a0782c1535dc1cde3d0db1aeec
2022-11-23 07:27:30 +00:00
Minchan Kim
31883f3edc dumpstate: Dump pixel specific trace events at bugreport
At the bugreport, capture pixel tracee vents. It's useful to know
what happened in kernel side at that time.

Test: "adb bugreport" includes the pixel trace dump.
Bug: 238728493
Change-Id: I43a0b0bc51fc9aae7149e461761b798da9fce5e8
Signed-off-by: Minchan Kim <minchan@google.com>
2022-11-14 19:00:39 +00:00
Star Chang
d9c9199c83 Add TWT statistic logs to dumpstate for bugreport.
Bug: 253348062
Test: dump bugreport ok
Change-Id: I2a1edafa78113e4f48d22244151c3a1500fe7f71
Signed-off-by: Star Chang <starchang@google.com>
2022-11-04 01:31:19 +00:00
Roger Wang
712cb29b4d 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: I1c381a1e0a9bd0611b804c3dd9364eb48e8d4e49
Signed-off-by: Roger Wang <wangroger@google.com>
2022-11-01 15:04:14 +00:00
Jenny Ho
70c85f31ab dumpstate: dump battery defend logbuffer
Bug: 242679204
Signed-off-by: Jenny Ho <hsiufangho@google.com>
Change-Id: I6c3a94a3cab77f9baa49ab8b5f2536e0a1275c7f
2022-11-01 05:34:11 +00:00
Chungjui Fan
9fe1f4be94 Dump the sys node of LED
Bug: 242300919
Change-Id: I04a2cc7cdb80b1d08c5884c26f9edb6782772810
2022-09-14 02:59:20 +00:00
JJ Lee
5d912313d7 dumpstate: Add aoc memory vote dump
Bug: 223674292
Test: Boot test, taking bugreport is not blocked
Change-Id: I514d04de5808e22e3927f9534a5b710b7abc045d
Signed-off-by: JJ Lee <leejj@google.com>
2022-09-07 14:25:06 +00:00
Robb Glasser
21ffd5f188 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: I2020f48026fcad19e41c8959e404e0a0783a2ef0
2022-08-25 02:47:58 +00:00
Wendly Li
08c526a578 dumpstate: Dump GTI touch information.
Dump the touch information and rawdata when bugreport is triggered.

Bug: 214118904
Test: adb bugreport
Change-Id: I08834cf0176be69359264189b703486e33925f2b
Signed-off-by: Wendly Li <wendlyli@google.com>
2022-08-19 08:23:35 +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
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
Renamed from dumpstate/DumpstateDevice.cpp (Browse further)