summaryrefslogtreecommitdiff
path: root/dumpstate
AgeCommit message (Collapse)Author
2023-01-19Modify dumpstate to point to decon_counters in sysfs rather than debugfsTaylor Nelms
Bug: 240346564 Test: Build for Oriole device with "user" build, check bug report for decon_counters content Merged-In: I5ae08064c2c4106b9f54f7823f1e325a6d6978b5 Change-Id: Idd5e2558e00d3c0de4d69129b2e49ea6bbc2b240 Signed-off-by: Taylor Nelms <tknelms@google.com>
2022-12-05Dumpstate.cpp: use new history dir and inc more fileskierancyphus
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 Merged-In: I1a57e0f4fea66929803fac350547b706d7442b26
2022-12-01[DO NOT MERGE] gs101:dumpstate: Dump long irq metrics, resume latency ↵Ziyi Cui
metrics at bugreport At the bugreport, capture long irq metrics and resume latency metrics Bug: 227809911 Bug: 232541623 Test: "adb bugreport" includes metrics capture. Change-Id: Ic60cb29b4e58996e7db1dc8fa406b46840ccd446 Signed-off-by: Ziyi Cui <ziyic@google.com>
2022-12-01[ DO NOT MERGE ] gs101: dumpstate: Dump Temperature Residency at bugreportZiyi Cui
At the bugreport, capture Temperature Residency metrics Bug: 246799997 Test: Test: "adb bugreport" includes temp residency metrics capture. Change-Id: I7dcc42e88c3e24506298b9dc46e0728a3eaba518 Signed-off-by: Ziyi Cui <ziyic@google.com>
2022-11-23DumpstateDevice: include mask history fileKieran Cyphus
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: Idfbe759c331a206773bc9dd0647c9016825b17d7
2022-11-03wifi: remove unnecessary debug dumpRoger Wang
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 Merged-In: I907e707be99a35bfd76dfdb5f9bd693cb4b471d8 Signed-off-by: Roger Wang <wangroger@google.com>
2022-11-03dumpstate: dump battery defend logbufferJenny Ho
Bug: 242679204 Change-Id: I59c2267105ef093a75c2cac2183c941def70b10f Signed-off-by: Jenny Ho <hsiufangho@google.com>
2022-09-07dumpstate: Add aoc memory vote dump for a32 and ff1JJ Lee
Bug: 223674292 Test: Boot test, taking bugreport is not blocked Change-Id: I2b88004ba641b8ef339826130e7aa4e61f5b0d11 Signed-off-by: JJ Lee <leejj@google.com>
2022-08-25Dump usf stats history in bugreports.Robb Glasser
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-06-29battery: Dump Health index statsTed Lin
Bug:236856796 Test: Check the bugreport Change-Id: Icc365357fa2d1fbeaa6c776d88cac3828192e59d Signed-off-by: Ted Lin <tedlin@google.com>
2022-06-09Revert "dumpstate: add HWC logs"Ken Huang
This reverts commit b495f66b8559d36f0b500c755a952976413620d1. Reason for revert: CTS failure Bug: 233982921 Test: bugreport Change-Id: Ic1bb3fe6b3ac2b8f56646e3c9cdbfda963a5462e
2022-05-24dumpstate: add HWC logsWiwit Rifa'i
Add hwc log files in /data/vendor/log/hwc to dumpstate. Bug: 230361290 Test: Manual - 'adb bugreport' Change-Id: Id23a16f42ecbdf75d83e056c7cba076041e19176
2022-05-24dumpstate: Dump logsKyle Tso
Bug: 232556226 Test: log dumped in bugreport Signed-off-by: Kyle Tso <kyletso@google.com> Change-Id: Iacd4db38dd56c1d5ba6f58c757f023795a9c3a3b Merged-In: Iacd4db38dd56c1d5ba6f58c757f023795a9c3a3b
2022-05-03dumpstate: add max77759_chg/max77729_pmic register dumpJenny Ho
Bug: 230360103 Signed-off-by: Jenny Ho <hsiufangho@google.com> Change-Id: I4042e58370d70b97dc1e84e72a8c927b68e08b17
2022-04-28dumpstate: change page_pinner output file nameMinchan Kim
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-07init: modify path of i2c peripheralschungkai
add potential paths when enable parpllel module loading Test: build pass Bug: 228181404 Signed-off-by: chungkai <chungkai@google.com> Change-Id: I929669a2ddc9155ad4dac1f40f808ffcb4c914f2
2022-03-29dumpstate: dump AACR related dataJenny Ho
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 5b716309678a8a915767b26cea30495a6b1a4478)
2022-03-28dumpstate: remove tasks prints and clean upLuigi Zevola
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 734c360052c3025156a4cf67b3f6bbf90bcc7029)
2022-03-24dumpstate: update the nvt touch path.Super Liu
Bug: 219602920 Test: TH build pass. Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I9f97cef742e16ee357bc5b872180682520602c76
2022-03-22dumpstate: add additional AoC entriesLuigi Zevola
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 f7227d95d7e7760cbecc887fd075e6e8ac19a604)
2022-03-21dumpstate: dump cooling device user_voteTeYuan Wang
Bug: 221180075 Test: check dumpstate from bugreport Change-Id: I59da9c36ff2cfcd4176906992b35dd113aff90b1
2022-01-21Add CPA latency files into bugreportFangzhou Liu
This is to support gs101 devices Bug: b/215395069 Test: Verify bugreport Change-Id: I8d3f045f63c65e9d75041c28d740dcbabffbc78a
2022-01-12dumpstate: Add tmu register dump am: 676247423b am: f71383eb96YiHo Cheng
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16569086 Change-Id: I8aa7ac9bb8f285f8f1f7bdb6a9873c3e278373b5
2022-01-12dumpstate: Add tmu register dumpYiHo Cheng
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
2021-12-08dumpstate: add more cooling device debug infoTeYuan Wang
Bug: 202813409 Test: check dumpstate_board.txt Change-Id: Ice04536c321d35553a948cdea2e6a1add207c2c7
2021-11-18dumpstate: stop dumping pretouch status.Super Liu
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-16dumpstate: support pre-touch status.Super Liu
Bug: 193467774 Test: check bugreport for touch pre-logs. Signed-off-by: Super Liu <supercjliu@google.com> Change-Id: I5c854866302333df7eac803b0366d432bc8d2540
2021-11-03dumpstate: dump touch HDM debug information am: 87c912336a am: 7a68c3cc43davidycchen
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16169685 Change-Id: I6ead244615b425084ff208b7e525de2c6de75804
2021-11-03dumpstate: dump touch HDM debug informationdavidycchen
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-01Save .cpa files generated when camera HAL is killed by the watchdog thread.Michael Eastwood
Bug: 197979923 Test: m -j Change-Id: I357828a2b13185cc605fe60b0d3647ad94509ffa
2021-10-19dumpstate: Add support to get GSC DEBUG DUMPJoseph Jang
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-04dumpstate: dump AoC memory votes stats am: 03c1d9311b am: 3f76fa5e24 am: ↵Max Kogan
8f0acb3d64 Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15901108 Change-Id: I3ed726451477c4b8ea1fe75c02ddfe4dc2e60c0a
2021-10-04dumpstate: dump AoC memory votes stats am: 03c1d9311b am: 3f76fa5e24Max Kogan
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15901108 Change-Id: I4dcc012073e403823f6a772caf790b5068fce71a
2021-10-04dumpstate: dump AoC memory votes stats am: 03c1d9311bMax Kogan
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15901108 Change-Id: I14f2fe73e01ec2544ab7e83b384ed4f4cb0da90a
2021-10-04dumpstate: dump AoC memory votes statsMax Kogan
Bug: 198203507 Test: adb bugreport, open Bug Sections "dumpstate_board.txt" Test: search for "AoC memory votes" Change-Id: I24d80a6e3493ccc961b8eed3b9da4b9dfbbf457f
2021-09-27dumpstate: dump battery maxfg monitor logJenny Ho
Bug: 196755019 Signed-off-by: Jenny Ho <hsiufangho@google.com> Merged-In: I04e2be21680c2cc673af1205cdb772fa3b845bd Change-Id: I04e2be21680c2cc673af1205cdb772fa3b845bd4
2021-09-27gps: Reduce gps log in bugreport am: f9ac8dc5a6 am: 65c5d56dbcShinru Han
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15898344 Change-Id: If7c313e19e62d818d22db57d3cfce4dc22016b2a
2021-09-27gps: Reduce gps log in bugreportShinru Han
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-23dumpstate: Dump TCPC registers and attributes am: 7372d2275b am: d8dc4e43bb ↵Badhri Jagan Sridharan
am: 35068885ad Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15856534 Change-Id: I559acb873491754131dd73e75bfb40c882799268
2021-09-23dumpstate: Dump TCPC registers and attributes am: 7372d2275b am: d8dc4e43bbBadhri Jagan Sridharan
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15856534 Change-Id: Ibd3473244c9a3866f4b252ae8d6fab61a0345427
2021-09-23dumpstate: Dump TCPC registers and attributes am: 7372d2275bBadhri Jagan Sridharan
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15856534 Change-Id: Ifc7f9c69859f7e8514e2e27ee0cb5f1a6233c699
2021-09-23dumpstate: Dump TCPC registers and attributesBadhri Jagan Sridharan
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-07dumpstate: dump battery maxfg monitor log am: c553a4484b am: 7fc5dc7c60Jenny Ho
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15732961 Change-Id: I529984b86a7631b63aad9cfadae4f69454d76919
2021-09-07dumpstate: dump battery maxfg monitor logJenny Ho
Bug: 196755019 Signed-off-by: Jenny Ho <hsiufangho@google.com> Change-Id: I04e2be21680c2cc673af1205cdb772fa3b845bd4
2021-09-03dumpstate: move the dump registers from regmap to each driverTed Lin
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-08-17dumpstate: dump dock power_supplyJack Wu
Bug: 196017001 Test: can show in dumpstate Signed-off-by: Jack Wu <wjack@google.com> Change-Id: I6cc739cb26b9cc2131357297d6cab116de4db012
2021-08-10dumpstate: move the dump registers from regmap to each driverTed Lin
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-08-09dumpstate: dump recent AP wakeups from AoC DRAM exceptionSiqi Lin
Bug: 186456919 Test: adb bugreport, open Bug Sections "dumpstate_board.txt" Test: search for "AoC memory exception wake" Change-Id: I45edeb5138957405f29b9556acb8ff36fdc9310b
2021-08-05bcl: Enable Instruction print in bugreportGeorge Lee
MPMM/PPM readings, OFFSRC and PWRONSRC will be printed out. Bug: 195455000 Test: Local Test and confirm its printed. ------ Instruction ... ------ enable_mitigation=1 mpmm_settings=0x1a offsrc=0x0 ppm_settings=0x0 pwronsrc=0x4 Signed-off-by: George Lee <geolee@google.com> Change-Id: I1f3e10edc416966f0eba18e0ba94fb56a487eaee
2021-08-04Attach more CPA traces to bug reports.Michael Eastwood
These are small, usually <1MB. Attaching more CPA traces gives us some buffer to ensure that the relevant trace is actually included in the bug report. Previously if the user opens one or two more camera sessions after they observe the performance issue, the trace will be missing. Bug: 191169822 Test: Build Change-Id: I4c10217c39991e80f25a7fd90eee9e8b8c5b6cdb