diff options
author | Yabin Cui <yabinc@google.com> | 2016-11-16 12:26:13 -0800 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2016-11-16 18:46:39 -0800 |
commit | 417df291499b37f63fa9b930e081d80a25bf38ec (patch) | |
tree | 90f118e851739c0ba6a36103c99cd693be886166 /simpleperf/event_selection_set.cpp | |
parent | 960a81aaeb33f39bc8afc31c144686832f8e1dda (diff) | |
download | extras-417df291499b37f63fa9b930e081d80a25bf38ec.tar.gz |
simpleperf: fix dumping arm regs on arm64 devices.
On arm64 devices, the kernel dumps arm64 regs
even for 32-bit processes. So we need to map
from arm64 registers to arm registers.
Bug: http://b/30974693
Test: run simpleperf manually on one app.
Change-Id: Iffeac9510b418b5dabc0604c16523887d63bba49
Diffstat (limited to 'simpleperf/event_selection_set.cpp')
-rw-r--r-- | simpleperf/event_selection_set.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/event_selection_set.cpp b/simpleperf/event_selection_set.cpp index 58c51296..6c45f150 100644 --- a/simpleperf/event_selection_set.cpp +++ b/simpleperf/event_selection_set.cpp @@ -280,7 +280,7 @@ bool EventSelectionSet::EnableDwarfCallChainSampling(uint32_t dump_stack_size) { PERF_SAMPLE_STACK_USER; selection.event_attr.exclude_callchain_user = 1; selection.event_attr.sample_regs_user = - GetSupportedRegMask(GetBuildArch()); + GetSupportedRegMask(GetMachineArch()); selection.event_attr.sample_stack_user = dump_stack_size; } } |