• Home
  • History
  • Annotate
  • only in /frameworks/native/cmds/dumpstate/
History log of /frameworks/native/cmds/dumpstate/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8a0cb4ee0b6c351de82987efb472fa38dfaf608a 10-Apr-2013 Ying Wang <wangying@google.com> Add liblog

Bug: 8580410
Change-Id: I2ca4fa00dde0b574df3619134836bcb9315bd506
ndroid.mk
aaaa57bf8904ef383a9e766ace09725bc392aceb 26-Mar-2013 Jeff Sharkey <jsharkey@android.com> Bugreport broadcasts are only useful to owners.

Bug: 8415156
Change-Id: Ia73969262abe9f715f038dad934651d7e5d65c87
umpstate.c
5a93003d3f0d1808b6dcd9928041ec62ea7f67ad 19-Mar-2013 Jeff Sharkey <jsharkey@android.com> Move screenshots near beginning of dumpstate.

Bug: 8420215
Change-Id: I6adffd1182ed8f99b8d11d43785a4eb4a388ceb5
umpstate.c
7560443061846fe0be5b658a7904786892007034 14-Mar-2013 Jeff Sharkey <jsharkey@android.com> Increase screenshot timeout.

Devices with large displays take longer than 5 seconds to write.

Change-Id: If74bc4a3cec366ae28eca549bce28ef212e47d8f
umpstate.c
27f9e6d849fce956c9b8f1ad5c3d9a954501a76b 13-Mar-2013 Jeff Sharkey <jsharkey@android.com> Support broadcast when dumpstate finishes.

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
umpstate.c
tils.c
574d6902b7e30a1e9c2375481549c8e8a712d6e6 11-Mar-2013 jp abgrall <jpa@google.com> am ba8abb51: Merge "Ensure dumpstate children die"

* commit 'ba8abb517d1eddebeda62bf907fa446e3c3b81f6':
Ensure dumpstate children die
e7b6cf13f94f66ea446c95ab34040b0a577e43dc 07-Mar-2013 John Michelau <w14107@motorola.com> Ensure dumpstate children die

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
tils.c
98ca63e6d15e47a9b62971f0db6424c13c226019 01-Mar-2013 Nick Kralevich <nnk@google.com> am 22641851: Merge "dumpstate: use correct header file."

* commit '22641851c48fee6e79d01adcfab01c0b625cfb3c':
dumpstate: use correct header file.
e96b2d0037857646dbf50968fbf4b2973a07f1c9 01-Mar-2013 Nick Kralevich <nnk@google.com> dumpstate: use correct header file.

Change-Id: I006d7a219ce6309259f271beff6011cc266f1a61
umpstate.c
5b8176471c0704651ceb22608c74d03877513ec0 22-Feb-2013 Dmitry Shmidt <dimitrysh@google.com> Remove obsolte 'su' from 'ping' call (to work on user build)

Change-Id: I2d391bbd39fc591eef33b9c9e4b4cdbda29e41e7
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
umpstate.c
8f75fa7bcfec553eddb59b919b44d7a93c9846a1 09-Feb-2013 Ken Sumrall <ksumrall@android.com> Do not use su to run the df command in bugreports

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
umpstate.c
258fe7eac91689866fc5f6420bea56432799743e 09-Nov-2012 Dmitry Shmidt <dimitrysh@google.com> am 77622879: am 4bacaec4: am 0b2c9268: bugreport: Add /proc/interrupts dump

* commit '77622879a6a12c6cb916df46c919dde87656e6df':
bugreport: Add /proc/interrupts dump
03d0600ea7aa31dc1be245f787084bb151403cf4 09-Nov-2012 Dmitry Shmidt <dimitrysh@google.com> am af9e8a59: am 61db92e7: am c11f56e5: bugreport: Add wlan FW counters dump for bcmdhd

* commit 'af9e8a59619ec6050739dd68ea108cc7e182d059':
bugreport: Add wlan FW counters dump for bcmdhd
1493a3974a725d6873f317b774be333ca035a64c 07-Nov-2012 Colin Cross <ccross@android.com> dumpstate: fix incorrectly zeroed array

Change-Id: I55a916568baf66629b02a6d80fce34b84ffb3a34
tils.c
0b2c9268265e9a165551eaa66cb461d3fab8b564 07-Nov-2012 Dmitry Shmidt <dimitrysh@google.com> bugreport: Add /proc/interrupts dump

Bug: 7301178

Change-Id: Ifad3b981ac904d4637d69dfc223d5bb2c9d80bda
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
umpstate.c
c11f56e5615c5d388c072705322df5bcf22c2012 07-Nov-2012 Dmitry Shmidt <dimitrysh@google.com> bugreport: Add wlan FW counters dump for bcmdhd

Bug: 7494877

Change-Id: I4d24dbcf7596777ec02ab1312c2ab996ba7688f1
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
umpstate.c
0c22e8b31651caf12a2b4d4acef5bc65d486e570 02-Nov-2012 Colin Cross <ccross@android.com> dumpstate: dump all threads in show_wchan

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
umpstate.c
umpstate.h
tils.c
2281af967dd840aade7bc55b19ea7df0e6da36f2 29-Oct-2012 Colin Cross <ccross@android.com> dumpstate: add kernel memory fragmentation unusable index

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
umpstate.c
719b8aa1c5c2c2e5675f92442f3da8509b297775 01-Oct-2012 Jeff Sharkey <jsharkey@android.com> Include Global table in bugreports.

Bug: 7257648
Change-Id: I84c7230fd115cf9d7269bc5367026b52cbcc86ac
umpstate.c
c8cff90d49b6eeaf0290c16517ff49df185dbdcd 17-Sep-2012 Elliott Hughes <enh@google.com> Merge "Use a named constant rather than a magic number." into jb-mr1-dev
5f87b31d8076dff08b2363961b07fc052364fe95 17-Sep-2012 Elliott Hughes <enh@google.com> Use a named constant rather than a magic number.

Change-Id: I86e8c91c6f5628df3eec38faf28598cc8cef2ea3
tils.c
86ca50d860fa256f5553ac7b313ba5ff0f120ef0 17-Sep-2012 jp abgrall <jpa@google.com> am e917bfbd: am 09a22fc2: Merge "Allow disable of dumpstate vibrate"

* commit 'e917bfbd19c265ef09c90f93f5dc175fc62259f5':
Allow disable of dumpstate vibrate
1f794c442cc63f7962c21e8e712adeca338af63e 17-Sep-2012 John Michelau <w14107@motorola.com> Allow disable of dumpstate vibrate

Change-Id: I747b757f4b5e2d6a472b7b2a19f8c1ca8a4b7fdd
umpstate.c
1fc4f80fc38f782f128102795481924a97a2d3c5 11-Sep-2012 James Dong <jdong@google.com> Add stack dump from drmserver process to bugreports

This would be helpful tracking down ANR issues in drmserver

o related-to-bug: 7132419

Change-Id: I7eceaa0c29af26bd0092110be6bddf8f4c063545
tils.c
85aea748861b5665e68b786b55f1c798f56fc0da 09-Aug-2012 Mathias Agopian <mathias@google.com> add /d/sync to dumpstate

Change-Id: I24f8f3e0420c2198ae3981fc067fb660898655e8
umpstate.c
04d7eaf138678ef591076ff02b896f93394bcfaf 09-Jun-2012 Jeff Brown <jeffbrown@google.com> am 4f0dfaa7: am 9be7caf3: Merge "Include stack traces for certain native processes in bugreport." into jb-dev

* commit '4f0dfaa7c338870eb58d96fe40234505734db728':
Include stack traces for certain native processes in bugreport.
bf7f49238d0af497d4300f7e611cf831854d6434 08-Jun-2012 Jeff Brown <jeffbrown@google.com> Include stack traces for certain native processes in bugreport.

Bug: 6615693
Change-Id: I64c3b3ce0bba62d9c332a795f7d979fb753dc27b
ndroid.mk
umpstate.c
umpstate.h
tils.c
1e339878c128ef47271278779c2685a8dfa49cd1 25-Apr-2012 Nick Kralevich <nnk@google.com> dumpstate: handle old style "adb bugreport"

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
umpstate.c
29e27a84c144fe3b941648094cad2a3f1e61e8b3 23-May-2012 Todd Poynor <toddpoynor@google.com> dumpstate: Add kernel wakeup sources info

Change-Id: I0f95afd6815c1403d8400a18ef3cd19d936d4601
umpstate.c
13461c2ffe1c77a0c11a922ba41b0922791a7874 17-May-2012 Jeff Sharkey <jsharkey@android.com> Dump packages.xml as root.

Bug: 6501151
Change-Id: Ied638bdbe9ed6fbf749a44de8ac1f9d4167829c1
umpstate.c
012c2ea5651a56218a4359c78db26dd700d9930b 17-May-2012 JP Abgrall <jpa@google.com> dumpstate: collect xtables based iface stats, update iptables info.

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
umpstate.c
3e03d3fb6a4cb93f5f978f9d2eed7b7cc62a06a6 11-May-2012 JP Abgrall <jpa@google.com> Ignore SIGPIPE is some of the tools used via bugreport

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
umpstate.c
4287cb4595d72066bc2d3cd1e2ac59cde254c707 11-Apr-2012 Jeff Sharkey <jsharkey@android.com> Add sdcard_r group to dumpstate.

Bug: 6321962
Change-Id: I318cd88493396f3d8adb5d4d0fc7a12ee40ba737
umpstate.c
d51820e8dea4f5bd9d06ff22335bead7409864b2 06-Apr-2012 Nick Kralevich <nnk@google.com> dumpstate: don't follow symlinks when creating /data/anr/traces.txt

Make Android more robust against symlink attacks when /data/anr
is world-writable.

Bug: 5614000
Change-Id: I9a7e4c4ec9aa4300ac30a968db0dcd276f364ab6
tils.c
c7f1fe26804ab986b90f3ba007db94f71e94932a 06-Apr-2012 Nick Kralevich <nnk@google.com> Ensure that /data/anr/traces.txt is world-writable

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
tils.c
f45fa6b2853cc32385375a0b63ee39ad6a968869 26-Mar-2012 Colin Cross <ccross@android.com> move dumpstate and dumpsys from frameworks/base to frameworks/native

Change-Id: I8a5318022ce5cd3e7c8055f21fe5da74639aa6c0
ndroid.mk
umpstate.c
umpstate.h
tils.c