diff options
author | Muhammad Omair Javaid <omair.javaid@linaro.org> | 2019-12-06 22:12:39 +0500 |
---|---|---|
committer | Muhammad Omair Javaid <omair.javaid@linaro.org> | 2019-12-06 22:18:57 +0500 |
commit | b6f9d7b8fb2eb6b78ac93ebd5ea4e36c04469285 (patch) | |
tree | a7a006918c7d93a7332fa27dabaf185b96cabaf9 /llvm/lib/MC/XCOFFObjectWriter.cpp | |
parent | 03a242bd41ee49e17f8da96af9787d13e7ea2b93 (diff) | |
download | bcm5719-llvm-b6f9d7b8fb2eb6b78ac93ebd5ea4e36c04469285.tar.gz bcm5719-llvm-b6f9d7b8fb2eb6b78ac93ebd5ea4e36c04469285.zip |
Cleanup and speedup NativeRegisterContextLinux_arm64
Summary:
This patch simplifies register accesses in NativeRegisterContextLinux_arm64
and also adds some bare minimum caching to avoid multiple calls to ptrace
during a stop.
Linux ptrace returns data in the form of structures containing GPR/FPR data.
This means that one single call is enough to read all GPRs or FPRs. We do
that once per stop and keep reading from or writing to the buffer that we
have in NativeRegisterContextLinux_arm64 class. Before a resume or detach we
write all buffers back.
This is tested on aarch64 thunder x1 with Ubuntu 18.04. Also tested
regressions on x86_64.
Reviewers: labath, clayborg
Reviewed By: labath
Subscribers: kristof.beyls, lldb-commits
Differential Revision: https://reviews.llvm.org/D69371
Diffstat (limited to 'llvm/lib/MC/XCOFFObjectWriter.cpp')
0 files changed, 0 insertions, 0 deletions