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>
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
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>
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
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
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)
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)
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
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
Bug: 193467774
Test: check bugreport for touch pre-logs.
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I5c854866302333df7eac803b0366d432bc8d2540
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
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
debugfs not accessible in user builds. Hence dumping through
sysfs.
Bug: 200313640
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: I5e42d1cd9b53c0989dbbb35bf580271d15cd8db3
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>
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>
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
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
This also change the sequence of run_rawcap_read_all
and run_self_rawcap_read_all to last. Because these
two commands need to run selftest first to read data,
this will make ambient update to make other raw data with
differen baseline.
Bug: 195111369
Test: check touch data in bugreport.
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I4693b099fbc98d80fbe166525773e3ab803c98d8
Dump state2power table in cooling_device
Bug: 189488358
Test: local test and state2power table can be dumped.
Change-Id: Ifb9a8e41158c5452b2f6e856d30ac97011460298
Signed-off-by: David Chao <davidchao@google.com>