summaryrefslogtreecommitdiffstats
path: root/cmds/dumpstate
Commit message (Collapse)AuthorAgeFilesLines
...
* dumpstate: fix dumping traces for vm processes on 64-bitColin Cross2014-07-171-2/+2
| | | | | | | | | | | | dumpstate was not dumping any stack traces for vm processes because it was failing the string compare for /system/bin/app_process. 64-bit devices use app_process32 and app_process64 instead of app_process, and zygote64 alongside zygote. Change the string matching to be prefix matching. (cherry picked from commit 8eb25d552b07ffa799b7b61ad46d0109e7512741) Change-Id: I6b1568161fae278f0e6107990e5b750cf0ca902b
* dump bluedroid kernel status do not mergeMatthew Xie2014-07-141-0/+1
| | | | | Change-Id: I4617f770088f86ceda2caf58bd1fdae81b3e31df (cherry picked from commit ed3b9a09771a79b62fd4a5943d3845e7ceee6a34)
* resolved conflicts for merge of 928e05b1 to masterSreeram Ramachandran2014-07-093-4/+25
|\ | | | | | | Change-Id: I1d1e623a1f95baa4375a87242ce71ea789884649
| * am 0d2bee0c: Merge "Dump all the correct routing tables."Sreeram Ramachandran2014-07-093-4/+25
| |\ | | | | | | | | | | | | * commit '0d2bee0c0baec56ec98867d7e044602097525248': Dump all the correct routing tables.
| | * Dump all the correct routing tables.Sreeram Ramachandran2014-07-083-4/+25
| | | | | | | | | | | | | | | | | | The list of tables is maintained in /data/misc/net/rt_tables by netd. Change-Id: I55475c08c5e43bcf61af916210e680c47480ac32
* | | am 45fcfb48: am 85453ecc: dumpstate: increase poll timeout waiting for ↵Nick Vaccaro2014-04-301-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | SIGQUIT logging * commit '45fcfb48ef9e65747e7a3f35e1a4da232f6e161a': dumpstate: increase poll timeout waiting for SIGQUIT logging
| * | am 85453ecc: dumpstate: increase poll timeout waiting for SIGQUIT loggingNick Vaccaro2014-04-301-1/+1
| |\ \ | | | | | | | | | | | | | | | | * commit '85453ecc90a94564e586f0f97c9ec2c0cf831501': dumpstate: increase poll timeout waiting for SIGQUIT logging
| | * | dumpstate: increase poll timeout waiting for SIGQUIT loggingNick Vaccaro2014-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Increased the maximum time dumpstate will wait for SIGQUIT process to finish dumping its thread stacks to the logfile to 5 seconds. Bug: 14057177 Change-Id: I0b43004512855d202f2fe0ea7b0e934e77a3a070
* | | | am 0e4d2885: am 2044ac43: Merge "Convert all selinux_android_restorecon and ↵Nick Kralevich2014-02-131-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | _setfilecon calls to new API." * commit '0e4d2885a34d31f5dbe5a08bdb654953abaf82a2': Convert all selinux_android_restorecon and _setfilecon calls to new API.
| * | | am 2044ac43: Merge "Convert all selinux_android_restorecon and _setfilecon ↵Nick Kralevich2014-02-121-1/+1
| |\ \ \ | | |/ / | |/| / | | |/ | | | | | | | | | calls to new API." * commit '2044ac43e53b517526b3c70dc4fbc60ffc01693f': Convert all selinux_android_restorecon and _setfilecon calls to new API.
| | * Convert all selinux_android_restorecon and _setfilecon calls to new API.Stephen Smalley2014-02-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libselinux selinux_android_restorecon API is changing to the more general interface with flags and dropping the older variants. Also get rid of the old, no longer used selinux_android_setfilecon API and rename selinux_android_setfilecon2 to it as it is the only API in use. Change-Id: I1e71ec398ccdc24cac4ec76f1b858d0f680f4925 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* | | Dump system settings for all usersJohn Spurlock2014-01-293-3/+47
|/ / | | | | | | Change-Id: Ic832b19fe698da1984876b2949c3f26990ae5076
* | dumpstate: dump console-ramoops instead of last_kmsg if presentTodd Poynor2013-12-101-3/+11
|/ | | | Change-Id: I41a922b33f0b6b4e8e150a92e46032501a165e33
* Fix issue #10422349: Limit/change the battery history data in batterystatsDianne Hackborn2013-09-041-1/+1
| | | | | | Use new compact option to include history when dumping battery stats. Change-Id: I3833a88db76d8791bd5c2e8f6ff414af65472a42
* 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