summaryrefslogtreecommitdiffstats
path: root/cmds/dumpstate
Commit message (Collapse)AuthorAgeFilesLines
* am deaa8ff1: am a7ef18fc: Merge "Some debugging support." into gingerbreadDianne Hackborn2010-09-241-5/+5
|\ | | | | | | | | | | | | Merge commit 'deaa8ff1b10d38add4f7c276e7be2ffc19359a14' * commit 'deaa8ff1b10d38add4f7c276e7be2ffc19359a14': Some debugging support.
| * Some debugging support.Dianne Hackborn2010-09-241-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | - New feature to "am monitor" to have it automatically launch gdbserv for you when a crash/ANR happens, and tell you how to run the client. - Update dumpstate to match new location of binder debug logs - Various commented out logs that are being used to track down issues. Change-Id: Ia5dd0cd2df983a1fc6be697642a4590aa02a26a5
* | am b4de2f99: am 05f0382b: When dropping privileges, check return values.Nick Kralevich2010-09-011-2/+12
|\ \ | |/ | | | | | | | | | | Merge commit 'b4de2f997591d3ee5f1eff92fbf2d4628cee5f2c' * commit 'b4de2f997591d3ee5f1eff92fbf2d4628cee5f2c': When dropping privileges, check return values.
| * When dropping privileges, check return values.Nick Kralevich2010-09-011-2/+12
| | | | | | | | | | | | | | | | | | setuid() and family can fail. Check return values to make sure this doesn't happen unexpectedly. Also call setgid() to drop root group permissions. Change-Id: Id06fbe6239e2ed2fe23368695e333514e0581e6d
* | bugreport: bcm4329: Add Wifi state dumpDmitry Shmidt2010-09-011-0/+2
| | | | | | | | | | Change-Id: I00a448bd44f3f5ca76948acad12ba20be794f3bd Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* | On-device screenshot support.Daniel Sandler2010-08-201-7/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This comes in the form of a command, `screenshot`, which will read /dev/graphics/fb0 (in a manner very similar to adb's framebuffer_service) and write to the specified PNG file. Additionally, dumpstate now accepts a -p flag (mnemonic: "picture" or "png") that, when specified, will cause a screenshot to be captured in the same directory as the bugreport. Future work: invoke `dumpstate -p` when the bugreport keychord is pressed, giving users a convenient way to attach screenshots to bug reports (or simply take screenshots at all without developer tools). Bug: 2216571 (and probably plenty of others) Change-Id: I36afbc55a0308a7bc01112ef39c4c62777efb203
* | Add support for playing a sound before/after dumpstate.Paul Eastham2010-08-063-6/+22
| |
* | bugreport: wifi: Add list of networksDmitry Shmidt2010-05-261-0/+3
|/ | | | | Change-Id: I0271bf1f2cac874c1801658a81a3dcf7533da781 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* dumpstate: Add blocked process wait-channel info to bugreportSan Mehat2010-04-273-1/+66
| | | | | | | Fix for http://b/2630027 Change-Id: I3606d8bf95c58df2b290dbd13f48538d82f16088 Signed-off-by: San Mehat <san@google.com>
* Fix bcm4329 FW dump in bugreport for user-debug buildDmitry Shmidt2010-03-191-1/+1
| | | | | Change-Id: I56dfdc700db5704a91015ddcdc2adb0952b097ba Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* dumpstate: Remove df from bugreport and add vold system dumpSan Mehat2010-03-171-1/+1
| | | | | Change-Id: Ib5a7611019c13bae04f6bf099c4c598f1662890a Signed-off-by: San Mehat <san@google.com>
* More consistent and clear traces.txt reporting.Dan Egnor2010-03-082-1/+26
| | | | | | | Print ANR traces.txt even if it's old. Print more detailed error messages about VM trace dumps. Change-Id: I067c90b8f3b3647b6136528eff3120e6cfea5715
* dumpstate: Add secure container + mounted filesystems to bugreportSan Mehat2010-03-081-1/+4
| | | | | Change-Id: I0cb465da86976f5cce3594c4bb846aa6510c52d6 Signed-off-by: San Mehat <san@google.com>
* Add Arp Cache dumpDmitry Shmidt2010-02-231-0/+1
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Don't overwrite ANR traces.txt if it can't be renamed (usuallyDan Egnor2010-02-171-1/+4
| | | | | due to lack of permissions, usually due to an old adb running "dumpstate" directly rather than via bugreport).
* Use six dashes instead of five.Dan Egnor2010-01-262-7/+7
|
* Overhaul of dumpstate (aka bugreport) with cleanups & enhancements:Dan Egnor2010-01-134-604/+473
| | | | | | | | | | | | | | | | - 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.
* less log spewJoe Onorato2010-01-081-1/+1
|
* Add FW log dump for bcm4329Dmitry Shmidt2009-12-163-2/+19
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* dumpstate: Pick up the last kernel log from /procDima Zavin2009-11-251-1/+1
| | | | | | | This is needed since its no longer copied to /data/dontpanic by init. Change-Id: I5217da73ec470653824b7fb9a31e093e263a8dc9 Signed-off-by: Dima Zavin <dima@android.com>
* frameworks: base: dumpstate: Dump kernel cpufreq speeds.Mike Chan2009-11-191-0/+2
| | | | | Change-Id: I99194df1d6c46254affef86ea8eb39e784c3dfb3 Signed-off-by: Mike Chan <mike@android.com>
* dumpstate: include the contents of the last radio logIliyan Malchev2009-11-151-0/+4
| | | | Signed-off-by: Iliyan Malchev <malchev@google.com>
* Add -P flag to ps in dumpstateEvan Millar2009-10-292-3/+20
|
* Fix issue #2175693: Add vmallocinfo to dumpstateDianne Hackborn2009-10-081-0/+2
| | | | Change-Id: I88c6e2679919e56f581fcf79dbe683393dd8ce27
* dumpstate: 'RAMCONSOLE' -> 'LAST KMSG'San Mehat2009-10-081-1/+1
| | | | Signed-off-by: San Mehat <san@google.com>
* dumpstate: Emit a logcat message at beginning and end of execution.Mike Lockwood2009-10-051-0/+8
| | | | | | | | | | | 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>
* dumpstate: Add backlight information to bugreport output.Mike Lockwood2009-10-041-0/+7
| | | | | | | To help diagnose bugs b/2164183 and b/2164647 Change-Id: Ie80c3b205c231c485d8a24e68b0a9c5e025da479 Signed-off-by: Mike Lockwood <lockwood@android.com>
* dumpstate: Display mtime instead of ctimeSan Mehat2009-10-021-1/+1
| | | | Signed-off-by: San Mehat <san@google.com>
* dumpstate: Switch back to running as non-rootMike Lockwood2009-09-111-2/+0
| | | | | | | | 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>
* dumpstate: Add the ctime (time the file was harvested out of /proc) to dump.San Mehat2009-09-051-5/+13
| | | | Signed-off-by: San Mehat <san@google.com>
* Replace the bugreport symlink with a tool that starts the new dumpstate service.Mike Lockwood2009-09-031-1/+1
| | | | | Change-Id: I57acae2344a264751f38b910e1e2bc750a1f1d24 Signed-off-by: Mike Lockwood <lockwood@android.com>
* dumpstate: Add option to output to socket, disable code that switched to nonrootMike Lockwood2009-09-021-26/+54
| | | | | | | | 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>
* dumpstate: Add support for apanic crash dataSan Mehat2009-09-011-2/+19
| | | | Signed-off-by: San Mehat <san@google.com>
* dumpstate: Get last_kmsg from /data instead of /proc.San Mehat2009-08-261-1/+1
| | | | Signed-off-by: San Mehat <san@google.com>
* Revert "dumpstate: Temporarily disable dumping /proc/slabinfo to avoid ↵Mike Lockwood2009-06-161-4/+0
| | | | | | kernel crash." This reverts commit 666c11d13fbf7b8e0502d44a94ffa00597ce92eb.
* dumpstate: Temporarily disable dumping /proc/slabinfo to avoid kernel crash.Mike Lockwood2009-06-111-0/+4
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* dumpstate: Add to AID_SDCARD_RW group to fix saving bugreports to the SD card.Mike Lockwood2009-05-221-1/+2
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* auto import from //branches/cupcake_rel/...@138607The Android Open Source Project2009-03-132-3/+3
|
* auto import from //depot/cupcake/@136594The Android Open Source Project2009-03-052-1/+13
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-034-0/+686
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-034-686/+0
|
* auto import from //branches/cupcake/...@132276The Android Open Source Project2009-02-192-13/+31
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-0/+2
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-095-118/+654
|
* Initial ContributionThe Android Open Source Project2008-10-212-0/+130