Commit Graph

81 Commits

Author SHA1 Message Date
Martin Liu
71a47ab29d dumpstate: Dump fastrpc dma buffer size
Dump fastrpc dma buffer size so we could understand
the memory usage of fastrpc.

Bug: 168084904
Test: boot
Signed-off-by: Martin Liu <liumartin@google.com>
Merged-In: I24251ec2d50fedec40939df480a6473a8a7ef187
Change-Id: I24251ec2d50fedec40939df480a6473a8a7ef187
2020-09-23 10:56:46 +08:00
Kyle Tso
514545bf6b dumpstate: Dump logbuffer_tcpm
Bug: 159590083
Test: check dumpstate result
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: I3a555f76595386b9bb1a685a41a0e7869de4b846
2020-09-07 07:22:56 +00:00
Alex Hong
c0bed9c86e Dump the debugfs information only in userdebug build
W/sh      (10769): type=1400 audit(0.0:416): avc: denied { read } for name="/" dev="dm-5" ino=2 scontext=u:r:hal_dumpstate_impl:s0 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0
W/sh      (10771): type=1400 audit(0.0:417): avc: denied { read } for name="/" dev="dm-5" ino=2 scontext=u:r:hal_dumpstate_impl:s0 tcontext=u:object_r:rootfs:s0 tclass=dir permissive=0

Bug: 160544144
Test: run cts -m CtsSecurityHostTestCases -t android.security.cts.SELinuxHostTest#testNoBugreportDenials
Change-Id: Ib10b9b0e959e86c6e96610015df93537102d7dde
2020-07-09 17:00:43 +08:00
Jack Wu
500b0647da dumpstate: dump logbuffer_device in dumpstate
Bug: 159680802
Test: check dumpstate result
Signed-off-by: Jack Wu <wjack@google.com>
Change-Id: If10d5b654e4e39747a29cfd23fdf6b7b658a007d
2020-07-07 10:09:21 +08:00
Fo Lee
2cd2648d44 Add Camera profiler CamNode log
In order to clarify and improve video jank problem, we plan to add
some CamNode log into bugreport

Bug: 158243741
Change-Id: Idb1cf97c321027cdc7651700d32fe0cb92ab016b
2020-07-06 10:06:37 +08:00
Ken Tsou
2fb7619cfd dumpstate: add battery eeprom to dumpstate
sync ag/10382199

Bug: 149979769
Test: trigger dumpstate and check battery eeprom data
Change-Id: I390bcf599fd232371963b8a3b2cfb282dca05808
Signed-off-by: Wasb Liu <wasbliu@google.com>
Signed-off-by: Ken Tsou <kentsou@google.com>
2020-06-16 09:40:20 +00:00
Super Liu
ac3ffc70ec dumpstate: change touch output data format
Bug: 144326854
Test: check bugreport output data
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I0b240e1488a8319c9472a68bf82476b71614c881
2020-06-10 15:15:50 +08:00
Willy Hu
a42dffa999 [R3] ril: Add null check when strtok_r return
Symptom:
We meet the issue about the incomplete log, when we
process covert to pcap file, it will cause to crash
due to strtok_r return null pointer.

Log:
2020-05-27 20:48:33.058 0000 00 0e b6 00 00 02 00 0e b6 00 00 01 86 DD 60 03 22 0a 00 28 06 40 20 01 b4 00 e3 06 1b 5b a3 67 54 1f b6 41 76 ac 20 01 b0 00 01 68 00 00 00 00 00 00 00 00 00 02 bf d0 03 55 d3 ec 6a 8f 00 00 00 00 a0 02 ff ff 0c b5 00 00 02 04 05 a0 04 02 08 0a 36 45 3b 33 00 00 00 00 01 03 03 08
// it's incomplete log as below
2020-05-27 20:48:33.

Bug: 157973383
Test: 1. We can reproduce this issue by using incomplete log as above
         description.
      2. Manual trigger bugreport with incomplete log and the symptom
         of crash is gone.
Change-Id: I9a69104a1d354da8e732b6c6d7fbe675d2863ed3
2020-06-08 17:19:35 +08:00
Leo Liou
363bcf7857 redfin: dumpstate: add UFS err_stats dump
dumpstate_board.txt:
------ UFS err_stats (/vendor/bin/sh ... ------
err_clear_pend_xfer_tm:0
err_eh:0
err_hibern8_enter:0
err_hibern8_exit:0
err_int_fatal_error:0
err_int_uic_error:0
err_linkstartup:0
err_power_mode_change:0
err_resume:0
err_suspend:0
err_task_abort:0
err_vops_suspend:0

Bug: 137150088
Bug: 151790553
Test: run bugreport and capture dumpstate_board
Change-Id: I519d4d751028e127abffcd0230d0e7664aa13386
Signed-off-by: Leo Liou <leoliou@google.com>
2020-06-08 17:19:28 +08:00
Willy Hu
fd23ca34b5 ril: [R3] Support traffic stats log convert tp pcap
convert traffic stats log(extended_log_datastall_pkt.txt) to pcap
when dump bugreport.

Bug: 154492175
Test: 1. I do see extended_log_datastall.pcap file
      in dumstate_board.bin when I trigger bugreport.
      (data/vendor/radio/extended_logs/extended_log_datastall.txt)
      2. I have do the test about incomplete/truncated logs, pcap just
      can parse to wrong information but not impact the dumpstate
      process.
Change-Id: Iea892bc66bbce8d7f219ca1cde3701cebb35ff80
2020-05-29 21:22:44 +08:00
raylinhsu
2cdd2e37f3 dump panel information in dumpstate_board
add panel information to dumpstate_board.txt

Bug: 152169557
Test: adb bugreport and verify logs in dumpstate_board.txt
Change-Id: Ie86b738b2b2a2c214de2e74d2b46a0f96e703cd0
2020-05-29 21:21:51 +08:00
Leo Liou
aa40533ec4 dumpstate: refactor DumpUFS
The DumpUFS function cannot work with the real sepolicy rules. So
refactor the function to fix the problem.

Bug: 149468879
Test: run bugreport
Change-Id: I9b260d18f4cc768cba98b64d76a149241e17c22b
Signed-off-by: Leo Liou <leoliou@google.com>
2020-05-29 21:21:47 +08:00
Ocean Chen
e3dfbf570f Merge "Dumpstate: add f2fs info and remove too specific fragmentation info" into rvc-dev
Change-Id: I5489d4dd25cc29ff01080de2daab39353944c4be
Change-Id: I9da7bad20f0ae7d34a17aa107ba08a34f514d6a9
Change-Id: I678871172bcda20777e756475833dd75dedf705a
Change-Id: Ic0c9ae80c05b6cc16fa5d0cfef4bbe00e47de130
2020-05-29 21:21:25 +08:00
Jaegeuk Kim
c10af43028 Dumpstate: add f2fs info and remove too specific fragmentation info
Bug: 149844577

Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Signed-off-by: Ocean Chen <oceanchen@google.com>
Change-Id: Id05aaa58118e3d12b4e2734e3014e586e33ee84d
2020-05-29 21:21:25 +08:00
TreeHugger Robot
9170c61c9b Merge "dumpstate: add rtx logbuffer in dumpstate" into rvc-dev
Change-Id: I15ce120c4a9c246149f3fe291fbd3f6fcab4b036
Change-Id: I0414eb56ec39855e3e950c511999600f0a886714
Change-Id: I5a0ed95c29b1bb82073570f657f5369bbf53b0f5
Change-Id: Ie56c524c40d50cf37eab99b67c2757a939979492
2020-05-29 21:21:20 +08:00
YiHsiang Peng
f3f7f90dfd dumpstate: add rtx logbuffer in dumpstate
Bug: 149061606
Signed-off-by: YiHsiang Peng <yihsiangpeng@google.com>
Change-Id: I6421315d57cf21a169e1da1473da7e6e8251e232
2020-05-29 21:21:20 +08:00
Hungyen Weng
80ac375948 dumpstate: don't dump modem logs if verbose logging is disabled.
Bug: 151186921
Change-Id: I9e7b499d332ea4e042edf173ac0368f3c537f0f7
2020-05-29 21:21:17 +08:00
Hunter Knepshield
db895423ca Redfin: fix DumpstateMode validation.
The PROTO mode was added after initial HAL upgrade and is causing VTS
failures due to the way the DumpstateMode param is being validated.

Bug: 150873571
Test: make (no device run VTS, older devices pass with identical change)
Change-Id: I5a26d9e12fb60ddd5526275cb0d176ff9acef6e4
(cherry picked from commit 1d4fd8a0b221ef14cbe56a67dbe7b303bf065cd0)
2020-05-29 21:21:09 +08:00
Hungyen Weng
e7b7e29dab dumpstate: Use thread to dump modem logs
Bug: 150185396

Change-Id: I9d989d5e42158b8d85dfd05761eca2516be9a1d6
2020-05-29 21:20:59 +08:00
chasewu
4057c6cb8d vibrator: Sync factory fixed to mainline
Bug: 149666621
Bug: 149274114
Test: manual check logs
Change-Id: Ib360f31008c5619d64a1c5c2a9b24baed53140f7
Signed-off-by: chasewu <chasewu@google.com>
2020-05-29 21:20:52 +08:00
Automerger Merge Worker
8946aba2cc Merge "dumpstate: Remove unused files" into qt-qpr1-dev am: af4b41f7f5 am: 7f188ffbad
Change-Id: I5ec0f3220795d1893083fa21b6d8971da555a3d7
2020-05-29 21:20:49 +08:00
Salmax Chang
fc9f5b212d Merge "dumpstate: Remove unused files" into qt-qpr1-dev
Change-Id: Ia3e3285ffb0f63bb733f4aeab209fdbf8ad77ed8
2020-05-29 21:20:48 +08:00
Hungyen Weng
fa2f03bca1 Merge "redfin: support modem logging on user build"
Change-Id: Id146dcbffb51ed44e4c090875eff4a23faef4b88
Change-Id: I5d36054e592196719ac0841ae1c34cfba4a733a2
Change-Id: If11b59fb1ba69947fd1e4716f10da1a5a450f749
Change-Id: Ifa5b46ec193150bbbbba9e9185811c6da1f4163f
2020-05-29 21:20:47 +08:00
SalmaxChang
3e11992b0d dumpstate: Remove unused files
Bug: 144332391
Change-Id: I87b3a2dda2eee10aa7ee69e906341f4815fae1f4
2020-05-29 21:20:47 +08:00
Hungyen Weng
c779d79569 redfin: support modem logging on user build
Bug: 143047251
Change-Id: Ifd6f6c779ee0f757b5be11282758d86b78420d3e
2020-05-29 21:20:47 +08:00
Hungyen Weng
150ff07f8c Update dumpstate HAL to V1.1
Bug: 143184495
Test: atest VtsHalDumpstateV1_1TargetTest pass
Change-Id: I087622c49e2632d7e759a6384c5e09102e072fd7
2020-05-29 21:20:46 +08:00
Raylin Hsu
538ddad31b dumpstate: Remove to dump MDP xlog in bugreport. am: cc642e0216 am: a4d444688c
Change-Id: I7493b5afeaf3eff735bcea16d2de6819a0f337aa
2020-05-29 21:20:45 +08:00
Raylin Hsu
b1715c0bad dumpstate: Remove to dump MDP xlog in bugreport.
The /data/vendor/display/mdp_xlog is for mdp driver but not for DRM/KMS.
The bugreport should not need dump it.

Bug: 149467103
Test: There is no failed selinux log of display_vendor_data_file.
Change-Id: I79adfd810be9c5df1f42ce5732aca930c2cee4e3
2020-05-29 21:20:44 +08:00
Bill Richardson
7c81f10e1b dumpstate: Include Citadel status in all bugreports
Gather Citadel's firmware version, uptime stats, and motherboard type in all
bug reports. None of this can be used to identify a specific phone, so it's
safe to run in production builds.

Previously we were running --id and --selftest. Because these could be used
to indentify a specific Citadel chip, we only gathered it on userdebug and
test builds. We used that to isolate problems with early Citadel samples in
prototype phones, which we've done, fixed, and replaced. We don't need that
info anymore.

Bug: 141235263
Test: manual
Change-Id: Ie8bbf818bca5bfda3905cbef9e103854dc0abaef
Merged-In: Ie8bbf818bca5bfda3905cbef9e103854dc0abaef
Signed-off-by: Bill Richardson <wfrichar@google.com>
(cherry picked from commit cbb9211b88ad75d17835579b3af31daa76910bc0)
2020-05-29 21:20:18 +08:00
Jie Song
2eb6949659 Pause modem logging earlier to avoid timeout
Bug: 148300450
Change-Id: I76eb29a80d8f6b0e3f424c046fb4620e9a4434ab
2020-05-29 21:20:17 +08:00
Automerger Merge Worker
c6331ae847 Merge "dumpstate: Change TCPM and pd_engine logs paths" into qt-qpr1-dev am: 83d1864efb am: 8dfbad966d
Change-Id: I9b366d26c8dfc3937a7761e247f6c6db0af48c6f
2020-05-29 21:20:17 +08:00
Kyle Tso
ac99d26353 dumpstate: Change TCPM and pd_engine logs paths
Bug: 140367237
Test: check logs in dumpstate
Change-Id: I98dd9b724f50ab788986721ee1dd0e3d189576a2
Signed-off-by: Kyle Tso <kyletso@google.com>
2020-05-29 21:20:16 +08:00
Automerger Merge Worker
2244099469 Merge "redfin: dumpstate: add touch raw data types 3, 5, 30 and 31 to bugreport" into qt-qpr1-dev am: 78227d661f am: 9badd4dbad
Change-Id: I40400d8753929bc463c581d7c85306bd1b183005
2020-05-29 21:20:12 +08:00
TreeHugger Robot
48c21394d4 Merge "redfin: dumpstate: add touch raw data types 3, 5, 30 and 31 to bugreport" into qt-qpr1-dev
Change-Id: I0ee0a7cdea042ccfe8d9911535f440eb3dc72ba1
2020-05-29 21:20:11 +08:00
Super Liu
9ddfb169a9 redfin: dumpstate: add touch raw data types 3, 5, 30 and 31 to bugreport
Bug: 144538796
Test: check bugreport for touch snapshots
Change-Id: If683e4271fcee01f3db4c864a094ac795469106f
Signed-off-by: Super Liu <supercjliu@google.com>
2020-05-29 21:20:11 +08:00
Automerger Merge Worker
0b2fd64143 Add cooling device stat dump in BR am: 92575f1061 am: 8c31a81f47
Change-Id: I7bb309780c53bb977bf40ca88b6e24b14047313c
2020-05-29 21:20:10 +08:00
Wei Wang
eaed077922 Add cooling device stat dump in BR
Test: Verified dumpstate_board.txt

(cherry picked from commit 3a3004d07a1db8d23a71a6481bbeb5d31a03d173)

Change-Id: I7d42bce8d63da01ee2415349926eec6506d1b062
Signed-off-by: TeYuan Wang <kamewang@google.com>
2020-05-29 21:20:10 +08:00
Automerger Merge Worker
9c4ed74312 Merge "dumpstate: dump ttf logbuffer in dumpstate" into qt-qpr1-dev am: 290de49440 am: d3f072ceed
Change-Id: I2d818c27fdca310d8a86a81d73f6b7c47cdf7c32
2020-05-29 21:20:09 +08:00
Jack Wu
ffb2cba2f9 dumpstate: dump ttf logbuffer in dumpstate
Bug: 146775451
Test: check dumpstate result
Change-Id: I7e4af209dc36dd98ff05b95499b297e4969d392d
Signed-off-by: Jack Wu <wjack@google.com>
2020-05-29 21:20:08 +08:00
Bill Richardson
4952a53b1a dumpstate: Include Citadel status in all bugreports
Gather Citadel's firmware version, uptime stats, and motherboard type in all
bug reports. None of this can be used to identify a specific phone, so it's
safe to run in production builds.

Previously we were running --id and --selftest. Because these could be used
to indentify a specific Citadel chip, we only gathered it on userdebug and
test builds. We used that to isolate problems with early Citadel samples in
prototype phones, which we've done, fixed, and replaced. We don't need that
info anymore.

Bug: 141235263
Test: manual
Change-Id: Ie8bbf818bca5bfda3905cbef9e103854dc0abaef
Signed-off-by: Bill Richardson <wfrichar@google.com>
2020-05-29 21:20:07 +08:00
Automerger Merge Worker
cffecd3173 redfin: dumpstate: collect touch calibration info am: 85b2ca3003 am: 856fc81d80
Change-Id: I528160b0f8e552d4ac88aa7eda672ab91f0357a8
2020-05-29 21:19:57 +08:00
Super Liu
7f3d415097 redfin: dumpstate: collect touch calibration info
Bug: 145262526
Test: check bugreport for touch snapshots
Change-Id: I0760eafcd0b9a395a00112eb7f9b7fc280945e91
2020-05-29 21:19:56 +08:00
Automerger Merge Worker
f59c2b5b4e redfin: dumpstate: adjust touch snapshoots sequence am: fd86122f1f am: 3dda595df2
Change-Id: I45daf38f2da2cdd31f0252ab0bc7c16790285780
2020-05-29 21:19:54 +08:00
Super Liu
6efd6a14e1 redfin: dumpstate: adjust touch snapshoots sequence
Bug: 144538796
Test: check bugreport for touch snapshots
Change-Id: If72c659349895146bf0b7d37ab5616f372552788
Signed-off-by: Super Liu <supercjliu@google.com>
2020-05-29 21:19:54 +08:00
Automerger Merge Worker
df367a022b Merge changes from topic "R3 battery dumpstate" into qt-qpr1-dev am: c0d279c5bc am: 77aa220a7d
Change-Id: I3e2b418d385e777be2737fcbdcd1b75c92856332
2020-05-29 21:18:53 +08:00
YiHsiang Peng
3538cf4813 dumpstate: add wireless charging info in dumpstate
Bug: 146817163
Test: check dumpstate result
Change-Id: I38d9ffd31acab1208419bee792d0914cce936078
Signed-off-by: YiHsiang Peng <yihsiangpeng@google.com>
2020-05-29 21:18:52 +08:00
Jack Wu
89ba696591 dumpstate: add ttf*, smblib log and ssoc in dumpstate
also remove unused code for WLC and MAXFG

Bug: 146775451
Test: check dumpstate result
Change-Id: I3bbcfec007b1be3eb056e6e9fea92b34d19729f8
Signed-off-by: Jack Wu <wjack@google.com>
2020-05-29 21:18:52 +08:00
Tim Lin
a03a5d3c9a ril: collect haldebug log in bugreport
File is generated when RIL crash to keep haldebug log.

Bug: 129143228
Bug: 146465887
Test: build pass and check haldebug_ril0 in bugreport

Change-Id: I3690845a08fe7fedddc13adced02b9316f54fd39
2020-05-29 21:18:51 +08:00
Automerger Merge Worker
901d669f42 Merge "Put vendor. prefix to radio sysprops" into qt-qpr1-dev am: 501e4f1cbb am: 84d0e86170
Change-Id: I4c9d6dd0f1aaa958931f64080d4f5cb4c1c201e7
2020-05-29 21:18:48 +08:00
Gary Jian
ae6d0a3bc8 Merge "Put vendor. prefix to radio sysprops" into qt-qpr1-dev
Change-Id: I8f058961263908be1f10f2e75fc4d34b2d5ad87d
2020-05-29 21:18:47 +08:00