summaryrefslogtreecommitdiffstats
path: root/cmds/dumpstate/dumpstate.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix deadlock when killing adb bugreportAndres Morales2014-08-221-2/+4
| | | | | | | | | Leave default signal handler (terminate) for parent process, add SIG_IGN as signal handler for children and let them go down when the parent gets SIGPIPE. Bug: 17109154 Change-Id: Id33db3e97a32f289eb2a9a1a0ca8acbe3dcd285d
* Improve network connectivity dumping.Lorenzo Colitti2014-07-311-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | 1. Explicitly dump IP addresses. Currently, some IP addresses are dumped using netcfg, but that only dumps the first IPv4 address on each interface. Instead, call ip -4 addr and ip -6 addr explicitly to dump all IPv4 and IPv6 addresses on the system. 2. Disable dumping /proc/net/{ipv6,}route, because: - We already dump all IPv4 and IPv6 routes in the tables that we use. - /proc/net/route is confusing because it only includes routes in the main table, which are all but unused. It's also in unreadable host-byte-order hex. - /proc/net/ipv6_route is confusing because it includes routes from all tables but does not say what table they are in. 3. Instead of dumping the contents of /proc/net/arp , use "ip -4 neigh show" and "ip -6 neigh show" to dump the neighbour caches for both IPv4 and IPv6. Bug: 16663736 Change-Id: Id3e509b877ab7b00eb2399b6a9868b12245da2f0
* Add dumping of tombstones to dumpstate.Christopher Ferris2014-07-231-6/+53
| | | | | | Dump only those tombstones modified within the last half an hour. Change-Id: I8ce836b2e19eba7a9c0c31a4f312f9a382526da7
* Always #include <sys/...>, not <linux/...>.Elliott Hughes2014-07-181-1/+1
| | | | | | (cherry picked from commit 1e4ee9afd2de12af98dbf476b73e2d43f605384c) Change-Id: Ie005774484f98bb33c8f867cddb778ac04a1d4ea
* 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-091-4/+3
|\ | | | | | | Change-Id: I1d1e623a1f95baa4375a87242ce71ea789884649
| * am 0d2bee0c: Merge "Dump all the correct routing tables."Sreeram Ramachandran2014-07-091-4/+3
| |\ | | | | | | | | | | | | * commit '0d2bee0c0baec56ec98867d7e044602097525248': Dump all the correct routing tables.
| | * Dump all the correct routing tables.Sreeram Ramachandran2014-07-081-4/+3
| | | | | | | | | | | | | | | | | | The list of tables is maintained in /data/misc/net/rt_tables by netd. Change-Id: I55475c08c5e43bcf61af916210e680c47480ac32
* | | Dump system settings for all usersJohn Spurlock2014-01-291-3/+1
|/ / | | | | | | 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-131-2/+0
| | | | 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
* | 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-131-2/+13
| | | | | | | | | | | | | | | | | | 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 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: dump all threads in show_wchanColin Cross2012-11-021-1/+1
|/ | | | | | | | 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
* 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 /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-081-2/+2
|\ \ | |/ | | | | | | | | | | 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-081-2/+2
| | | | | | | | | | 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
* move dumpstate and dumpsys from frameworks/base to frameworks/nativeColin Cross2012-03-261-0/+452
Change-Id: I8a5318022ce5cd3e7c8055f21fe5da74639aa6c0