summaryrefslogtreecommitdiffstats
path: root/clang/www/make_cxx_dr_status
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2015-06-17 18:38:49 +0000
committerPavel Labath <labath@google.com>2015-06-17 18:38:49 +0000
commitdf7c69952bd7e25993a09eccb00e206c65853874 (patch)
tree052201aff8fd8e55cbe6742598c16ca9ed975dc7 /clang/www/make_cxx_dr_status
parent4fc603ded3efb5d238f9355458a5722a7bf54e59 (diff)
downloadbcm5719-llvm-df7c69952bd7e25993a09eccb00e206c65853874.tar.gz
bcm5719-llvm-df7c69952bd7e25993a09eccb00e206c65853874.zip
[NativeProcessLinux] Use fast memory reads, if the system supports it
Summary: Memory reads using the ptrace API need to be executed on a designated thread and in 4-byte increments. The process_vm_read syscall has no such requirements and it is about 50 times faster. This patch makes lldb-server use the faster API if the target kernel supports it. Kernel support for this feature is determined at runtime. Using process_vm_writev in the same manner is more complicated since this syscall (unlike ptrace) respects page protection settings and so it cannot be used to set a breakpoint, since code pages are typically read-only. However, memory writes are not currently a performance bottleneck as they happen much more rarely. Test Plan: all tests continue to pass Reviewers: ovyalov, vharron Subscribers: tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D10488 llvm-svn: 239924
Diffstat (limited to 'clang/www/make_cxx_dr_status')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud