platform_system_core/libcutils
Jeff Brown 053b865412 Enhance native stack dumps.
Provides a new mechanism for dumpstate (while running as root)
to request that debuggerd dump the stacks of native processes that
we care about in bug reports.  In this mode, the backtrace
is formatted to look similar to a Dalvik backtrace.

Moved the tombstone generating code into a separate file to
make it easier to maintain.

Fixed a bug where sometimes the stack traces would be incomplete
because we were not waiting for each thread to stop after issuing
PTRACE_ATTACH, only the main thread.  So sometimes we were missing
traces for some threads.

Refactored the logging code to prevent accidentally writing data
to logcat when explicitly dumping a tombstone or backtrace from the
console.

Only root or system server can request to dump backtraces but
only root can dump tombstones.

Bug: 6615693
Change-Id: Ib3edcc16f9f3a687e414e3f2d250d9500566123b
2012-06-08 13:29:23 -07:00
..
arch-arm Assembly coded android_memset16 and android_memset32 2011-01-07 11:26:34 -08:00
arch-x86 Assembly coded android_memset16 and android_memset32 2011-01-07 11:26:34 -08:00
abort_socket.c Fix bug where ECONNABORTED would have always occured on asocket_write. 2009-05-29 16:10:22 -07:00
Android.mk Enhance native stack dumps. 2012-06-08 13:29:23 -07:00
android_reboot.c Try to unmount writable filesystems when rebooting 2011-03-10 18:11:46 -08:00
array.c auto import from //branches/cupcake_rel/...@138607 2009-03-13 13:04:37 -07:00
ashmem-dev.c Added ashmem_get_size_region() function. 2009-06-02 00:55:30 +01:00
ashmem-host.c Added ashmem_get_size_region() function. 2009-06-02 00:55:30 +01:00
atomic-android-sh.c Remove unconditional swap from the android atomic operations suite. 2011-01-23 14:09:17 -08:00
atomic.c Define inline atomic operations for x86 and ARM. 2010-06-23 12:51:26 -07:00
buffer.c Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE 2012-01-03 22:32:30 +00:00
buffer.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
config_utils.c Config utils improvement 2011-05-26 13:57:03 -07:00
cpu_info.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
debugger.c Enhance native stack dumps. 2012-06-08 13:29:23 -07:00
dir_hash.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
dlmalloc_stubs.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
hashmap.c libcutils: hashmap: save next pointer in forEach before calling callback 2011-04-19 15:16:18 -07:00
iosched_policy.c cutils: schedpolicy: remove stray include 2010-02-26 11:45:27 -08:00
klog.c init/cutils: move kernel logging interface to libcutils from init 2011-09-02 12:11:17 -07:00
list.c init/cutils: move list utility code to cutils from init 2011-09-02 12:11:18 -07:00
load_file.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
loghack.h Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE 2012-01-08 11:03:26 +00:00
memory.c Assembly coded android_memset16 and android_memset32 2011-01-07 11:26:34 -08:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
mq.c Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE 2012-01-05 22:25:38 +00:00
mspace.c Tracking merge of dalvik-dev to gingerbread 2010-08-04 15:45:52 -07:00
native_handle.c move native_handle stuff from master_gl 2009-05-20 17:22:13 -07:00
NOTICE auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
open_memstream.c Try to fix Mac build. 2010-01-26 09:30:02 -08:00
partition_utils.c Crypto changes for devices that don't write ext4 fs on wipe 2011-05-26 19:42:32 -07:00
private.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
process_name.c Add missing includes. 2012-03-19 14:06:50 -07:00
properties.c Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE 2012-01-08 11:03:26 +00:00
qsort_r_compat.c Provide portable wrapper for qsort_r. 2012-03-19 14:07:26 -07:00
qtaguid.c Support full 32 bits for socket tags. 2012-05-02 16:01:31 -07:00
record_stream.c Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE 2012-01-08 11:03:26 +00:00
sched_policy.c cutils: sched_policy: remove audio app/sys groups, merge into fg 2012-06-04 13:20:17 -07:00
selector.c Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE 2012-01-04 19:23:34 +00:00
socket_inaddr_any_server.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_local.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_local_client.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_local_server.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_loopback_client.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_loopback_server.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
socket_network_client.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
sockets.c Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE 2012-01-08 11:03:26 +00:00
str_parms.c cutils: str_parms: when deleting entry, need to also remove key 2012-03-14 23:17:11 -07:00
strdup8to16.c auto import from //branches/cupcake_rel/...@138607 2009-03-13 13:04:37 -07:00
strdup16to8.c Fix a potential integer overflow bug that could result in memory overwrites. 2009-05-02 19:43:30 +02:00
threads.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
tzfile.h auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
tzstrftime.c Add missing includes. 2012-03-19 14:06:50 -07:00
tztime.c Fix an infinite loop in time2sub. 2009-09-09 18:32:07 -07:00
uevent.c cutils: return the remote uid on netlink recv failure 2012-03-29 17:07:24 -07:00
uio.c auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
zygote.c Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE 2012-01-08 11:03:26 +00:00