37 Commits

Author SHA1 Message Date
San Mehat
57fff78a70 dumpstate: Add blocked process wait-channel info to bugreport
Fix for http://b/2630027

Change-Id: I3606d8bf95c58df2b290dbd13f48538d82f16088
Signed-off-by: San Mehat <san@google.com>
2010-04-27 10:53:35 -07:00
Dmitry Shmidt
c277f2c43d Fix bcm4329 FW dump in bugreport for user-debug build
Change-Id: I56dfdc700db5704a91015ddcdc2adb0952b097ba
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-03-19 16:22:07 -07:00
San Mehat
9e3f8c631e dumpstate: Remove df from bugreport and add vold system dump
Change-Id: Ib5a7611019c13bae04f6bf099c4c598f1662890a
Signed-off-by: San Mehat <san@google.com>
2010-03-17 09:50:25 -07:00
Dan Egnor
efd1393801 More consistent and clear traces.txt reporting.
Print ANR traces.txt even if it's old.
Print more detailed error messages about VM trace dumps.

Change-Id: I067c90b8f3b3647b6136528eff3120e6cfea5715
2010-03-08 19:21:32 -08:00
San Mehat
54aa577ea2 dumpstate: Add secure container + mounted filesystems to bugreport
Change-Id: I0cb465da86976f5cce3594c4bb846aa6510c52d6
Signed-off-by: San Mehat <san@google.com>
2010-03-08 08:58:03 -08:00
Dmitry Shmidt
84b72ec3b4 Add Arp Cache dump
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-02-23 15:21:11 -08:00
Dan Egnor
6a70d7d1e2 Don't overwrite ANR traces.txt if it can't be renamed (usually
due to lack of permissions, usually due to an old adb running
"dumpstate" directly rather than via bugreport).
2010-02-17 14:25:03 -08:00
Dan Egnor
ea11654e68 Use six dashes instead of five. 2010-01-26 17:04:26 -08:00
Dan Egnor
52952b1bca Overhaul of dumpstate (aka bugreport) with cleanups & enhancements:
- include basic build & timestamp information in the header
- collect stack traces immediately at bugreport time
- *also* show stack traces from last ANR (as before), if in the last 15 minutes
- alphabetize system properties dump
- remove now-obsolete (and always questionable) "dumpcrash" functionality
- write to a .tmp file first, then rename to the final filename
- friendly usage message
- output sections include the exact file/command run
- source de-weirdification -- it's several hundred lines shorter now

The same data is present in the same order as before, and I've tried
to preserve all the grep/search targets people might use to find their
way through the file.
2010-01-13 14:30:33 -08:00
Joe Onorato
f5d95cbc1a less log spew 2010-01-08 15:46:24 -05:00
Dmitry Shmidt
64bf3d53d5 Add FW log dump for bcm4329
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2009-12-16 16:05:08 -08:00
Dima Zavin
f817218e09 dumpstate: Pick up the last kernel log from /proc
This is needed since its no longer copied to /data/dontpanic by init.

Change-Id: I5217da73ec470653824b7fb9a31e093e263a8dc9
Signed-off-by: Dima Zavin <dima@android.com>
2009-11-25 23:34:19 -08:00
Mike Chan
c6b406f0eb frameworks: base: dumpstate: Dump kernel cpufreq speeds.
Change-Id: I99194df1d6c46254affef86ea8eb39e784c3dfb3
Signed-off-by: Mike Chan <mike@android.com>
2009-11-19 16:01:05 -08:00
Iliyan Malchev
326e3e291a dumpstate: include the contents of the last radio log
Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-11-15 18:28:41 -08:00
Evan Millar
26a2d829b3 Add -P flag to ps in dumpstate 2009-10-29 12:53:46 -07:00
Dianne Hackborn
b80b8d5637 Fix issue #2175693: Add vmallocinfo to dumpstate
Change-Id: I88c6e2679919e56f581fcf79dbe683393dd8ce27
2009-10-08 16:33:30 -07:00
San Mehat
b7c34cecd1 dumpstate: 'RAMCONSOLE' -> 'LAST KMSG'
Signed-off-by: San Mehat <san@google.com>
2009-10-08 07:48:21 -07:00
Mike Lockwood
bb6fa17558 dumpstate: Emit a logcat message at beginning and end of execution.
Since the logcat is not printed until later in the output, this will
make it easier to determine at what point the user pressed the key sequence
to initiate the bugreport, which can be helpful when debugging timing dependent problems.

b/2164183

Change-Id: I5b650a6163c383183ff28e344dac36fab11a2c7b
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-05 23:26:34 -04:00
Mike Lockwood
2ecf3f5e00 dumpstate: Add backlight information to bugreport output.
To help diagnose bugs b/2164183 and b/2164647

Change-Id: Ie80c3b205c231c485d8a24e68b0a9c5e025da479
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-04 17:21:05 -04:00
San Mehat
af6863447c dumpstate: Display mtime instead of ctime
Signed-off-by: San Mehat <san@google.com>
2009-10-02 13:15:53 -07:00
Mike Lockwood
5a131e52cc dumpstate: Switch back to running as non-root
Now that we have straightened out the permissions on /data/dontpanic,
root is no longer necessary.

Change-Id: Ic895d712c2e929e4935707da321e1a2b015285c0
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-11 17:12:27 -04:00
San Mehat
a4eb91da03 dumpstate: Add the ctime (time the file was harvested out of /proc) to dump.
Signed-off-by: San Mehat <san@google.com>
2009-09-05 15:20:20 -07:00
Mike Lockwood
308f31d8e2 Replace the bugreport symlink with a tool that starts the new dumpstate service.
Change-Id: I57acae2344a264751f38b910e1e2bc750a1f1d24
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-03 16:12:09 -04:00
Mike Lockwood
8d5337301b dumpstate: Add option to output to socket, disable code that switched to nonroot
This will be used to allow running dumpstate as root from the init process
to enable gathering debugging information that requires root to access.

Change-Id: I5bb7e83071fad2b377e549058f318a5118194061
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-02 20:31:33 -04:00
San Mehat
30b9f57c8b dumpstate: Add support for apanic crash data
Signed-off-by: San Mehat <san@google.com>
2009-09-01 14:41:13 -07:00
San Mehat
bc7bba419d dumpstate: Get last_kmsg from /data instead of /proc.
Signed-off-by: San Mehat <san@google.com>
2009-08-26 16:43:08 -07:00
Mike Lockwood
8cae2daf98 Revert "dumpstate: Temporarily disable dumping /proc/slabinfo to avoid kernel crash."
This reverts commit 666c11d13fbf7b8e0502d44a94ffa00597ce92eb.
2009-06-16 05:50:46 -04:00
Mike Lockwood
666c11d13f dumpstate: Temporarily disable dumping /proc/slabinfo to avoid kernel crash.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-06-11 17:06:56 -04:00
Mike Lockwood
472be48007 dumpstate: Add to AID_SDCARD_RW group to fix saving bugreports to the SD card.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-05-22 13:31:42 -04:00
The Android Open Source Project
ba87e3e6c9 auto import from //branches/cupcake_rel/...@138607 2009-03-13 13:04:22 -07:00
The Android Open Source Project
4df2423a94 auto import from //depot/cupcake/@136594 2009-03-05 14:34:35 -08:00
The Android Open Source Project
9066cfe988 auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
The Android Open Source Project
d83a98f4ce auto import from //depot/cupcake/@135843 2009-03-03 18:28:45 -08:00
The Android Open Source Project
3001a03543 auto import from //branches/cupcake/...@132276 2009-02-19 10:57:31 -08:00
The Android Open Source Project
d24b8183b9 auto import from //branches/cupcake/...@130745 2009-02-10 15:44:00 -08:00
The Android Open Source Project
b798689749 auto import from //branches/cupcake/...@125939 2009-01-09 17:51:23 -08:00
The Android Open Source Project
54b6cfa9a9 Initial Contribution 2008-10-21 07:00:00 -07:00