libdwfl: Use process_vm_readv when available.
authorMark Wielaard <mark@klomp.org>
Sat, 17 Mar 2018 23:24:08 +0000 (00:24 +0100)
committerMark Wielaard <mark@klomp.org>
Wed, 28 Mar 2018 14:30:27 +0000 (16:30 +0200)
commitafffdff29228db03e2131af577f58a22aec6c1fe
tree1de9a2890a9976fbb49c779ec38fa2fe97af02ce
parentf0d7b3e14779cdf5facede98edc924ef1266b785
libdwfl: Use process_vm_readv when available.

If possible use process_vm_readv to read 4K blocks instead of fetching
each word individually with ptrace. For unwinding this often means we
only have to do one process_vm_readv of the stack instead of dozens of
ptrace calls. There is one 4K cache per process, cleared whenever a
thread is detached.

Signed-off-by: Mark Wielaard <mark@klomp.org>
ChangeLog
configure.ac
libdwfl/ChangeLog
libdwfl/libdwflP.h
libdwfl/linux-pid-attach.c