platform_system_core/libbacktrace
Christopher Ferris e328673a30 Add method to detect remote read function to use.
The process_vm_read function is much faster than ptrace, but sometimes
that will not work on a remote process. Modify the libunwindstack
MemoryRemote object to figure out which one it can use.

Wrote new unit test to verify this checking behavior.

Modify libbacktrace so that the read from libunwind is used instead of
using the default ptrace calls.

Add some benchmarks to libbacktrace to compare the two different methods.

Test: Ran unit tests libbacktrace/libunwindstack/debuggerd.
Test: Ran debuggerd -b <SYSTEM_SERVER_PID>
Test: Ran debuggerd -b <MEDIACODEC PID>
Test: Ran debuggerd -b <RANDOM_PID>
Test: Used crasher to create tombstones and verified stack data is
Test: dumped properly.
Change-Id: If75ca238289532dd8e1de430d569cabb2523380a
2017-12-07 19:00:00 -08:00
..
include/backtrace Demand read load bias for a map. 2017-12-05 13:12:47 -08:00
testdata libBacktraceOffline: fix using debug frame with load bias. 2017-12-06 11:27:06 -08:00
.clang-format Add a 2 width option of clang format. 2017-03-10 13:01:39 -08:00
Android.bp Add method to detect remote read function to use. 2017-12-07 19:00:00 -08:00
Backtrace.cpp Switch libbacktrace new unwinder. 2017-10-30 13:37:50 -07:00
backtrace_benchmarks.cpp Switch libbacktrace new unwinder. 2017-10-30 13:37:50 -07:00
backtrace_offline_test.cpp Merge "libBacktraceOffline: fix using debug frame with load bias." 2017-12-07 00:25:20 +00:00
backtrace_read_benchmarks.cpp Add method to detect remote read function to use. 2017-12-07 19:00:00 -08:00
backtrace_test.cpp Demand read load bias for a map. 2017-12-05 13:12:47 -08:00
backtrace_testlib.cpp Test unwinding through a signal handler. 2017-03-23 16:16:02 -07:00
backtrace_testlib.h Test unwinding through a signal handler. 2017-03-23 16:16:02 -07:00
BacktraceAsyncSafeLog.h Use async safe logging in signal handlers. 2017-05-04 17:15:17 -07:00
BacktraceCurrent.cpp Use async safe logging in signal handlers. 2017-05-04 17:15:17 -07:00
BacktraceCurrent.h Allow calling GetFunctionName before unwinding. 2017-03-21 14:21:49 -07:00
BacktraceLog.h liblog: use log/log.h when utilizing ALOG macros 2017-01-11 09:31:15 -08:00
BacktraceMap.cpp Demand read load bias for a map. 2017-12-05 13:12:47 -08:00
BacktraceOffline.cpp libBacktraceOffline: fix using debug frame with load bias. 2017-12-06 11:27:06 -08:00
BacktraceOffline.h libbacktrace_offline: support .ARM.exidx. 2016-12-07 10:25:33 -08:00
BacktracePtrace.cpp Revert "Use process_vm_readv to read memory." 2016-11-10 23:19:30 +00:00
BacktracePtrace.h Add method to detect remote read function to use. 2017-12-07 19:00:00 -08:00
GetPss.cpp Fix misc-macro-parentheses warnings in adb, debuggerd, libbacktrace. 2016-05-18 15:53:15 -07:00
GetPss.h Create an UnwindMapLocal object. 2014-04-03 14:19:24 -07:00
thread_utils.c Remove libbacktrace definition of gettid. 2015-05-13 13:44:34 -07:00
thread_utils.h Fix libbacktrace host build. 2015-12-07 20:09:24 -08:00
ThreadEntry.cpp Use async safe logging in signal handlers. 2017-05-04 17:15:17 -07:00
ThreadEntry.h Allow calling GetFunctionName before unwinding. 2017-03-21 14:21:49 -07:00
UnwindCurrent.cpp Cleanup the libbacktrace interface a bit. 2017-07-19 15:36:32 -07:00
UnwindCurrent.h Allow calling GetFunctionName before unwinding. 2017-03-21 14:21:49 -07:00
UnwindMap.cpp Switch libbacktrace new unwinder. 2017-10-30 13:37:50 -07:00
UnwindMap.h Allow calling GetFunctionName before unwinding. 2017-03-21 14:21:49 -07:00
UnwindPtrace.cpp Cleanup the libbacktrace interface a bit. 2017-07-19 15:36:32 -07:00
UnwindPtrace.h Allow calling GetFunctionName before unwinding. 2017-03-21 14:21:49 -07:00
UnwindStack.cpp Add method to detect remote read function to use. 2017-12-07 19:00:00 -08:00
UnwindStack.h Add method to detect remote read function to use. 2017-12-07 19:00:00 -08:00
UnwindStackMap.cpp Demand read load bias for a map. 2017-12-05 13:12:47 -08:00
UnwindStackMap.h Demand read load bias for a map. 2017-12-05 13:12:47 -08:00