summaryrefslogtreecommitdiffstats
path: root/cmds/dumpstate/utils.c
Commit message (Collapse)AuthorAgeFilesLines
* allow dumpstate to work with dmesg_restrict=1Nick Kralevich2011-11-291-0/+25
| | | | | | | | | Ensure that dumpstate has the CAP_SYSLOG permission, so that it can always read the kernel syslog buffer. This is needed to ensure that "adb bugreport" shows the dmesg log buffer. Bug: 5585365 Change-Id: I4b561b77ada83dc875de80fe3ed15743c5958d09
* Include showmap output in bug report.Dianne Hackborn2011-11-031-0/+9
| | | | Change-Id: I02d246defc73ea45c469ab7cb899f45d5663a301
* dumpstate: improved collection, better error handling.JP Abgrall2011-01-261-1/+2
| | | | | | | | | | | | | | | - Some of the commands used by dumpstate, which drops root, will not collect anything during a bug report. E.g. df fails on /mnt/secure/asec. - force flushing of error message . without the flush (using gingerbread and not master) *** netcfg: Exit code 255 . with the flush() *** exec(netcfg): Permission denied *** netcfg: Exit code 255 - add a check before using WEXITSTATUS() Change-Id: Ia3924b9cc8a12cecab894cbf7f2c79614a358d34 Signed-off-by: JP Abgrall <jpa@google.com>
* Add support for playing a sound before/after dumpstate.Paul Eastham2010-08-061-0/+4
|
* dumpstate: Add blocked process wait-channel info to bugreportSan Mehat2010-04-271-0/+58
| | | | | | | Fix for http://b/2630027 Change-Id: I3606d8bf95c58df2b290dbd13f48538d82f16088 Signed-off-by: San Mehat <san@google.com>
* More consistent and clear traces.txt reporting.Dan Egnor2010-03-081-0/+20
| | | | | | | Print ANR traces.txt even if it's old. Print more detailed error messages about VM trace dumps. Change-Id: I067c90b8f3b3647b6136528eff3120e6cfea5715
* 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-261-6/+6
|
* Overhaul of dumpstate (aka bugreport) with cleanups & enhancements:Dan Egnor2010-01-131-146/+266
| | | | | | | | | | | | | | | | - 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.
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+230
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-230/+0
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-091-0/+230