summaryrefslogtreecommitdiffstats
path: root/cmds/dumpstate
Commit message (Collapse)AuthorAgeFilesLines
* dumpstate: Fix wifi list of networks dumpDmitry Shmidt2013-08-211-1/+1
| | | | | | | Bug: 9056601 Change-Id: Ia0adb67afdf3d478033d0ee34bbb95e621e2fe51 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* dumpstate: switch to HAL static librariesTodd Poynor2013-08-133-8/+28
| | | | Change-Id: I865a0b4b4a84a2d54a239e7b09874287f0c1ad56
* dumpstate: remove libutils dependencyAlex Ray2013-07-231-1/+1
| | | | Change-Id: I9745f389402c01b90877612e060ac996eba99964
* dumpstate: Show SELinux process labelsNick Kralevich2013-07-151-0/+1
| | | | Change-Id: Ie19586a3b733bd4420f6b20b5d253d42c2f165ea
* Fix cmd line arguments for usagestats.Dianne Hackborn2013-07-121-1/+1
| | | | Change-Id: I9a1436aa1d1665924ba62a568bb4b66d67ae2814
* Update to follow procstats options changes.Dianne Hackborn2013-07-091-2/+1
| | | | Change-Id: I6f016c944cfcd01bbbcf3cf37bc7ff05482f0012
* Update to use --include-committed for procstats.Dianne Hackborn2013-07-031-1/+3
| | | | Change-Id: I5ce737b624c5617c94054d6bedebca754fbf16a9
* Add checkin dumps to bug reports.Dianne Hackborn2013-06-261-0/+9
| | | | | | | This is a duplicate of the associated human-readable dumps of these services, but much better for automated parsing. Change-Id: I902b768b03aeac1472f03f96913f9b8ada5dba9c
* am 74bd799e: Merge "Exit dumpstate on SIGPIPE to avoid cascading child crashes"jp abgrall2013-05-281-1/+9
|\ | | | | | | | | * commit '74bd799ec20d2420459fa382533b1cc39ca9a54c': Exit dumpstate on SIGPIPE to avoid cascading child crashes
| * Exit dumpstate on SIGPIPE to avoid cascading child crashesJohn Michelau2013-05-281-1/+9
| | | | | | | | | | | | | | | | When dumpstate ignores SIGPIPE it can lead to a cascade of tombstones / coredumps since many of its children don't handle or ignore it. It's best to just exit dumpstate once the pipe is broken. Change-Id: Ic0c57ecf4171f0c0a07837e51c41cb1876e1350c
* | resolved conflicts for merge of c76e8a20 to jb-mr2-dev-plus-aospYing Wang2013-04-091-1/+1
|\ \ | | | | | | | | | Change-Id: I895a8ad8c936a80c70aaac739c6441d3c7c55834
| * | Add liblogYing Wang2013-04-091-1/+1
| | | | | | | | | | | | | | | Bug: 8580410 Change-Id: I2ca4fa00dde0b574df3619134836bcb9315bd506
* | | am a3d3e137: Merge "dumpstate: Add SELinux restorecon call."Geremy Condra2013-04-042-1/+6
|\ \ \ | |/ / |/| / | |/ | | * commit 'a3d3e137f473a965fefced9670e3b0c6b5f7f791': dumpstate: Add SELinux restorecon call.
| * dumpstate: Add SELinux restorecon call.Robert Craig2013-04-042-1/+6
| | | | | | | | | | | | | | | | Set the security context on the directory used to dump Dalvik and native stack traces. Change-Id: Iba13783f10e850485ce1a8d4aa5792d55085eb22 Signed-off-by: Robert Craig <rpcraig@tycho.ncsc.mil>
* | Bugreport broadcasts are only useful to owners.Jeff Sharkey2013-03-251-1/+1
| | | | | | | | | | Bug: 8415156 Change-Id: Ia73969262abe9f715f038dad934651d7e5d65c87
* | Move screenshots near beginning of dumpstate.Jeff Sharkey2013-03-191-6/+6
| | | | | | | | | | Bug: 8420215 Change-Id: I6adffd1182ed8f99b8d11d43785a4eb4a388ceb5
* | Increase screenshot timeout.Jeff Sharkey2013-03-141-1/+1
| | | | | | | | | | | | Devices with large displays take longer than 5 seconds to write. Change-Id: If74bc4a3cec366ae28eca549bce28ef212e47d8f
* | Support broadcast when dumpstate finishes.Jeff Sharkey2013-03-132-3/+14
| | | | | | | | | | | | | | | | | | Add flag that sends BUGREPORT_FINISHED broadcast when dumpstate is finished, including the resulting filesystem paths. Also reduces directory creation to 0770. Bug: 7005318 Change-Id: Id4c6b699a56f8acd859b7ab73368500e1a8f3c67
* | am ba8abb51: Merge "Ensure dumpstate children die"jp abgrall2013-03-111-0/+4
|\ \ | |/ | | | | | | * commit 'ba8abb517d1eddebeda62bf907fa446e3c3b81f6': Ensure dumpstate children die
| * Ensure dumpstate children dieJohn Michelau2013-03-111-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use prctl(PR_SET_PDEATHSIG, SIGKILL) in each forked child to ensure it dies when dumpstate dies. This is important for two cases: - dumpstate runs a timer for each child process. On expiration, it sends SIGTERM to kill the process. Sometimes SIGTERM isn't enough to kill a hung process, so the child lives on. - When dumpstate is killed by the user before completing, outstanding children continue to run and generate output. Change-Id: I96e0dc918c26d56c9fee53611980ba2edd238712
* | am 22641851: Merge "dumpstate: use correct header file."Nick Kralevich2013-03-011-1/+1
|\ \ | |/ | | | | | | * commit '22641851c48fee6e79d01adcfab01c0b625cfb3c': dumpstate: use correct header file.
| * dumpstate: use correct header file.Nick Kralevich2013-02-281-1/+1
| | | | | | | | Change-Id: I006d7a219ce6309259f271beff6011cc266f1a61
* | Remove obsolte 'su' from 'ping' call (to work on user build)Dmitry Shmidt2013-02-221-3/+3
| | | | | | | | | | Change-Id: I2d391bbd39fc591eef33b9c9e4b4cdbda29e41e7 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | Do not use su to run the df command in bugreportsKen Sumrall2013-02-081-1/+1
| | | | | | | | | | | | | | | | | | User builds do not have su, so when the bugreport attempts to report disk free space, the command fails and nothing is reported. However, the df command does not need to be run as root to report free space, so just run the command directly. Change-Id: Ic7deb696f293e772ddf28eacfe16e4250af9a9f3
* | am 77622879: am 4bacaec4: am 0b2c9268: bugreport: Add /proc/interrupts dumpDmitry Shmidt2012-11-081-0/+3
|\ \ | |/ | | | | | | * commit '77622879a6a12c6cb916df46c919dde87656e6df': bugreport: Add /proc/interrupts dump
| * bugreport: Add /proc/interrupts dumpDmitry Shmidt2012-11-071-0/+3
| | | | | | | | | | | | | | Bug: 7301178 Change-Id: Ifad3b981ac904d4637d69dfc223d5bb2c9d80bda Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | am af9e8a59: am 61db92e7: am c11f56e5: bugreport: Add wlan FW counters dump ↵Dmitry Shmidt2012-11-081-1/+5
|\ \ | |/ | | | | | | | | | | for bcmdhd * commit 'af9e8a59619ec6050739dd68ea108cc7e182d059': bugreport: Add wlan FW counters dump for bcmdhd
| * bugreport: Add wlan FW counters dump for bcmdhdDmitry Shmidt2012-11-071-1/+5
| | | | | | | | | | | | | | Bug: 7494877 Change-Id: I4d24dbcf7596777ec02ab1312c2ab996ba7688f1 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | dumpstate: fix incorrectly zeroed arrayColin Cross2012-11-071-1/+1
| | | | | | | | Change-Id: I55a916568baf66629b02a6d80fce34b84ffb3a34
* | dumpstate: dump all threads in show_wchanColin Cross2012-11-023-9/+81
|/ | | | | | | | for_each_pid only finds processes and not their threads. Add for_each_tid and call it for show_wchan so we can see where all threads are blocked in the kernel. Change-Id: Iffb59f7c2933cecf51cdd358a36e19932c2f24c7
* dumpstate: add kernel memory fragmentation unusable indexColin Cross2012-10-281-0/+1
| | | | | | | | Dump /d/extfrag/unusable_index in bugreports. It shows the percentage of memory in each zone that is not available for allocations for each order. Change-Id: I2af6680cb609887ea7b3d6107d1aa88bd0206b52
* Include Global table in bugreports.Jeff Sharkey2012-10-011-1/+1
| | | | | Bug: 7257648 Change-Id: I84c7230fd115cf9d7269bc5367026b52cbcc86ac
* Merge "Use a named constant rather than a magic number." into jb-mr1-devElliott Hughes2012-09-171-1/+2
|\
| * Use a named constant rather than a magic number.Elliott Hughes2012-09-171-1/+2
| | | | | | | | Change-Id: I86e8c91c6f5628df3eec38faf28598cc8cef2ea3
* | am e917bfbd: am 09a22fc2: Merge "Allow disable of dumpstate vibrate"jp abgrall2012-09-171-5/+11
|\ \ | |/ |/| | | | | * commit 'e917bfbd19c265ef09c90f93f5dc175fc62259f5': Allow disable of dumpstate vibrate
| * Allow disable of dumpstate vibrateJohn Michelau2012-09-171-5/+11
| | | | | | | | Change-Id: I747b757f4b5e2d6a472b7b2a19f8c1ca8a4b7fdd
* | Add stack dump from drmserver process to bugreportsJames Dong2012-09-101-0/+1
| | | | | | | | | | | | | | | | This would be helpful tracking down ANR issues in drmserver o related-to-bug: 7132419 Change-Id: I7eceaa0c29af26bd0092110be6bddf8f4c063545
* | add /d/sync to dumpstateMathias Agopian2012-08-081-0/+1
| | | | | | | | Change-Id: I24f8f3e0420c2198ae3981fc067fb660898655e8
* | am 4f0dfaa7: am 9be7caf3: Merge "Include stack traces for certain native ↵Jeff Brown2012-06-084-38/+82
|\ \ | |/ | | | | | | | | | | processes in bugreport." into jb-dev * commit '4f0dfaa7c338870eb58d96fe40234505734db728': Include stack traces for certain native processes in bugreport.
| * Include stack traces for certain native processes in bugreport.Jeff Brown2012-06-084-38/+82
| | | | | | | | | | Bug: 6615693 Change-Id: I64c3b3ce0bba62d9c332a795f7d979fb753dc27b
* | dumpstate: handle old style "adb bugreport"Nick Kralevich2012-06-061-36/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When "adb bugreport" was run on previous adb releases, it called "adb shell dumpstate". In later versions of Android, this was changed to "adb shell bugreport", which starts the dumpstate service. Modify the dumpstate command so that it calls bugreport when it's not running as root. This allows both "adb shell dumpstate" and "adb shell bugreport" to have the exact same output. Bug: 6391938 Change-Id: Ia32bb9ebc579db3bee7caa0fe66dc3f124d60a12
* | dumpstate: Add kernel wakeup sources infoTodd Poynor2012-05-221-0/+1
|/ | | | Change-Id: I0f95afd6815c1403d8400a18ef3cd19d936d4601
* Dump packages.xml as root.Jeff Sharkey2012-05-171-1/+1
| | | | | Bug: 6501151 Change-Id: Ied638bdbe9ed6fbf749a44de8ac1f9d4167829c1
* dumpstate: collect xtables based iface stats, update iptables info.JP Abgrall2012-05-161-2/+5
| | | | | | | | The newer kernels now have /proc/net/xt_qtaguid/iface_stat_fmt. Add the extra iptables output and remove ip6tables for nat which doesn't exist. Change-Id: I819c707b337a707ca0acd87d9ab38cd68ca0f36c
* Ignore SIGPIPE is some of the tools used via bugreportJP Abgrall2012-05-111-0/+2
| | | | | | | | | | | adb bugreport > b & sleep 5; kill $? will show that a bunch of tools will SIGPIPE when trying to output data which is normal. We don't have a way on linux (bsd yes), to set NOSIGPIPE on the file desc passed down via fork/exec. Bug: 6447319 Change-Id: I25b30a823addcff89d252f162d0a07035d4fdd3f
* Add sdcard_r group to dumpstate.Jeff Sharkey2012-04-111-1/+2
| | | | | Bug: 6321962 Change-Id: I318cd88493396f3d8adb5d4d0fc7a12ee40ba737
* dumpstate: don't follow symlinks when creating /data/anr/traces.txtNick Kralevich2012-04-061-1/+1
| | | | | | | | Make Android more robust against symlink attacks when /data/anr is world-writable. Bug: 5614000 Change-Id: I9a7e4c4ec9aa4300ac30a968db0dcd276f364ab6
* Ensure that /data/anr/traces.txt is world-writableNick Kralevich2012-04-061-0/+7
| | | | | | | | | | | | The umask changed for init. We have to force /data/anr to be world readble and /data/anr/traces.txt to be world writable so dalvik processes can write to it. Hopefully this is a short term change while we investigate tightening up these permissions. Bug: 6300296 Change-Id: Iacb4c9f1bc69d2ac679697f9cf9a52694f888489
* move dumpstate and dumpsys from frameworks/base to frameworks/nativeColin Cross2012-03-264-0/+1003
Change-Id: I8a5318022ce5cd3e7c8055f21fe5da74639aa6c0