summaryrefslogtreecommitdiffstats
path: root/cmds/dumpstate/dumpstate.c
Commit message (Collapse)AuthorAgeFilesLines
* am 18f05518: am eaeb4f4e: Merge "Fix some policy-base routing issues." into ↵Robert Greenwalt2011-11-231-0/+6
|\ | | | | | | | | | | | | ics-mr1 * commit '18f05518a882eeb778433c65bff27831a8accdc2': Fix some policy-base routing issues.
| * Merge "Fix some policy-base routing issues." into ics-mr1Robert Greenwalt2011-11-231-0/+6
| |\
| | * Fix some policy-base routing issues.Robert Greenwalt2011-11-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | Secondary nets sometimes come up with no routes, but parsing errors end up with null routes getting added. Trim that away. Also added some dumpstate logging of the secondary route tables and rules. bug:5615697 Change-Id: I94c9d888bab958df44891b9117236436e046cc7f
* | | am 2084d206: am 0f3570c3: Merge "Re-enable vril-dump for adb bugreport." ↵Jake Hamby2011-11-171-3/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | into ics-mr1 * commit '2084d20668a79e5a31ec7365652434ec943503ef': Re-enable vril-dump for adb bugreport.
| * | Re-enable vril-dump for adb bugreport.Jake Hamby2011-11-171-3/+1
| |/ | | | | | | | | | | | | | | vril-dump was causing adb bugreport to hang on Xoom. The OEM fixed the utility and we can now run it again as part of the bug report. Bug: 5482585 Change-Id: I1db3b50c327d50d18fb9c6327c4cd521e09f3916
* | Include the build fingerprint in bug reports.Jeff Brown2011-11-111-0/+1
|/ | | | | | | We need the build fingerprint to decode the native stacks that appear within the bug report. Change-Id: Ia337addb5e4942c1ec7bcee3407b6a4f6b7e89ab
* Include showmap output in bug report.Dianne Hackborn2011-11-031-0/+2
| | | | Change-Id: I02d246defc73ea45c469ab7cb899f45d5663a301
* dumpstate: add uptime to top of bugreportsColin Cross2011-09-201-0/+1
| | | | | | | uptime is a good indicator to determine whether a restart was a kernel reboot or a runtime restart, put it at the top of bugreports. Change-Id: Ie4f4ef2f319a7216495ead3891bbfdc474146916
* dumpstate: collect /proc/net/dev and /proc/net/xt_qtaguid/iface_stat_allJP Abgrall2011-09-191-2/+5
| | | | | | | | Add extra network interface statistics. Bug:5322407 Change-Id: I9441b2ca2517d8380b2c9f5bb5bd077a48438d04 Signed-off-by: JP Abgrall <jpa@google.com>
* dumpstate: dump qtaguid info, ip6tables info, buddyinfoJP Abgrall2011-08-241-1/+6
| | | | | | | | | This will add around 50-120 lines for qtaguid info and 50-100 for ip6tables. The /proc/buddyinfo is for kernels where /proc/pagetypeinfo is not accurate (ones with more than one memory node, 2.6.35). Change-Id: I7fad53209c706d88e33e5ae824486b84941c02b6
* Add /proc/pagetypeinfo to dumpstateArve Hjønnevåg2011-08-151-0/+1
| | | | | | This shows memory fragmentation Change-Id: I1ba2a764c1f61ce4b29ea14b4b951994488f4c48
* Add lsof to bugreport.Jeff Brown2011-08-111-0/+2
| | | | Change-Id: I439795ad46a4e100019b3819855c76ba695f279f
* resolved conflicts for merge of 41394a36 to honeycomb-plus-aospRobert Greenwalt2011-07-261-2/+2
|\ | | | | | | Change-Id: If4dc99c558dc45c9a7ff8d3ea5be69578b4ee793
| * Disable name lookups for dumpstate calls to "iptables -L"John Michelau2011-07-251-2/+2
| | | | | | | | | | | | | | The name lookups are not helpful enough to warrant the large delays they can cause. Change-Id: I8710e76b15b7cf060b7f4f89128ea3249fcdbd0d
* | Allow BoardConfig.mk to define an extension to dumpstateColin Cross2011-07-181-0/+12
| | | | | | | | | | | | | | | | If BoardConfig.mk defines BOARD_LIB_DUMPSTATE, link to that library and call dumpstate_board(), which can dump debugging information that only make senses on one device. Change-Id: I2c5006a1a04b02cf26fd73575047ac176f222616
* | am 5eeeea29: am 97667d0c: Merge "Allow vril-dump to work on user builds" ↵Wink Saville2011-07-071-4/+14
|\ \ | |/ | | | | | | | | | | into honeycomb-LTE * commit '5eeeea29ecd731897211d31bde7ee87af182420c': Allow vril-dump to work on user builds
| * Allow vril-dump to work on user buildsJohn Michelau2011-07-061-4/+14
| | | | | | | | | | | | | | | | | | Run vril-dump without "su root" when ro.build.type=user. Also add inet perms for dumpstate, so that it can communicate with basebands that have IP-based interfaces. Bug: 4993955 Change-Id: Icc65ba0f80756db1f63f12f89f9973a55bf405f2
| * am 700ab1c7: Merge "DO NOT MERGE. Integrate from master: Improve activity ↵Dianne Hackborn2011-05-161-3/+8
| |\ | | | | | | | | | | | | | | | | | | manager debug dumps." into honeycomb-mr2 * commit '700ab1c75862babba90f54e02bdc877becd4f4fc': DO NOT MERGE. Integrate from master: Improve activity manager debug dumps.
| | * DO NOT MERGE. Integrate from master: Improve activity manager debug dumps.Dianne Hackborn2011-05-131-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Activity manager now does all dump requests into apps asynchronously, so it can nicely timeout if there is an app problem. Also lots of general cleanup of the am dump output. Change-Id: I99447b87f77a701af52aeca984d93dfe931f065d
* | | dumpstate: don't attempt to use vril-dump, it breaks adb bugreportJP Abgrall2011-05-171-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | http://b/4442803 vril-dump's usage of adb causes bugreport to hang lcm-dump.sh re-uses adb which breaks. Change-Id: I5eeb30f78793c0a6d10bfaf0097d6aa7b811cf66 Signed-off-by: JP Abgrall <jpa@google.com>
* | | am 7a2a87d6: am a1c29d30: Merge "Support for Vendor RIL dump of baseband ↵Wink Saville2011-05-151-0/+7
|\ \ \ | |/ / | | | | | | | | | | | | | | | logs" into honeycomb-LTE * commit '7a2a87d6457885c5d3d4dbf335be101aa9c5c3ab': Support for Vendor RIL dump of baseband logs
| * | Support for Vendor RIL dump of baseband logsJohn Michelau2011-05-141-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Added hook for Vendor RIL to provide a dump of the underlying baseband's logs. The Vendor RIL must implement the actual executable that does the capture. Change-Id: I40fdf2ccc4bb14a9cef92b7866fad19684502524
* | | am 67c92fbd: am 5f2ff42b: Add data to bugreports.Robert Greenwalt2011-04-291-0/+3
|\ \ \ | |/ / | | | | | | | | | * commit '67c92fbdfe52a94804f021c2255132c0f3550875': Add data to bugreports.
| * | Add data to bugreports.Robert Greenwalt2011-04-291-0/+3
| |/ | | | | | | | | | | Include IPv6 routes and iptables data. Change-Id: Ie9bca8a935f93933082eef0c45f83a17be76b7ed
* | Improve activity manager debug dumps.Dianne Hackborn2011-04-071-3/+8
| | | | | | | | | | | | | | | | | | Activity manager now does all dump requests into apps asynchronously, so it can nicely timeout if there is an app problem. Also lots of general cleanup of the am dump output. Change-Id: Id0dbccffb217315aeb85c964e379833e6aa3f5af
* | bugreport: Add ping wlan gateway, dns1 and dns2 serversDmitry Shmidt2011-03-291-0/+9
|/ | | | | Change-Id: I91c2b9be217fabe8f854c637c972377bc811cca8 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* bugreport: Remove wlan FW dump logDmitry Shmidt2011-02-141-3/+1
| | | | | Change-Id: I7f211c8125e6c3ba99e9c34e1221dfaa5ac1bee1 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* dumpstate: improved collection, better error handling.JP Abgrall2011-01-261-1/+1
| | | | | | | | | | | | | | | - 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>
* bugreport: Add bcm4329 internal counters dumpDmitry Shmidt2010-11-041-0/+2
| | | | | Change-Id: I8e74bc1bf9a269e2a429ada1b1141d10cb7d914f Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* bugreport: Fix dump of netcfg commandDmitry Shmidt2010-11-031-1/+1
| | | | | Change-Id: Id2f507f4b094cd9cbe5c5eae9030321d1c3ed71a Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Change dumpstate so the logs use threadtime instead of time as the default.Wink Saville2010-10-221-3/+3
| | | | | | | The threadtime option display both the pid and tid which can assist pinpointing bugs. Change-Id: Ib4620d3534a59b291507b757352f9fecb06f7cef
* Show app services in adb bugreport (dumpstate).Joe Onorato2010-10-221-0/+8
| | | | | | | | | | There is a 60s timeout for this command. I'd rather do it as an individual timeout for each of the services, but this is easier and will probably cover for busted apps well enough. Also, this is running last in dumpstate, so if it's lost... oh well. Also, clean up the formatting of the service dump so it's more readable in bugreport. Change-Id: Ibd727f4b3366f7af9e7ef1e231868f5cedc48132
* am 9a430d8c: am 62d0970c: Merge "allow dumpstate to work for non-root ↵Nick Kralevich2010-10-211-13/+15
|\ | | | | | | | | | | | | | | | | users." into gingerbread Merge commit '9a430d8c0e376160f287e50cdad99177e69ec384' * commit '9a430d8c0e376160f287e50cdad99177e69ec384': allow dumpstate to work for non-root users.
| * allow dumpstate to work for non-root users.Nick Kralevich2010-10-211-13/+15
| | | | | | | | Change-Id: Iaad4a097f5e09914842955dafbc0a09cc7a1db48
* | 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-061-6/+15
| |
* | 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-271-1/+2
| | | | | | | 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-081-1/+6
| | | | | | | 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>
* Use six dashes instead of five.Dan Egnor2010-01-261-1/+1
|
* Overhaul of dumpstate (aka bugreport) with cleanups & enhancements:Dan Egnor2010-01-131-304/+197
| | | | | | | | | | | | | | | | - 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.