summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2017-12-07 17:41:18 -0800
committerChristopher Ferris <cferris@google.com>2017-12-07 19:00:00 -0800
commite328673a305a5c9f4acf73a7a2826eb61390632c (patch)
treea4de300723718b8bfac81cff5a0ab7caa4b76b4a /trusty/coverage/coverage_test.cpp
parent255c43cd050f5202e96483430684c19b7ce916ff (diff)
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
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions