summaryrefslogtreecommitdiff
path: root/simpleperf/perf_regs.h
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2016-03-31 14:39:19 -0700
committerYabin Cui <yabinc@google.com>2016-04-01 10:54:47 -0700
commit4b6720d137c15b9485318255e89ffcd3c76ab579 (patch)
tree4c624d63da960690396c0c9e8d03d9fb84d96443 /simpleperf/perf_regs.h
parenteaa9c1dc0c2c7bd4570e0b7c605bac207e6ab3a3 (diff)
downloadextras-4b6720d137c15b9485318255e89ffcd3c76ab579.tar.gz
simpleperf: loosen unwinding arch check for system wide collection.
When doing system wide collection, it is possible that there are 32-bit compat processes running on 64-bit devices. It is not proper to abort in this situation. So loosen the check to allow it. Also add corresponding test. Bug: 27927427 Change-Id: I5c9253eb6e474497e4f37e234e0e523e141fab20
Diffstat (limited to 'simpleperf/perf_regs.h')
-rw-r--r--simpleperf/perf_regs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/simpleperf/perf_regs.h b/simpleperf/perf_regs.h
index 98c925f9..7705e50f 100644
--- a/simpleperf/perf_regs.h
+++ b/simpleperf/perf_regs.h
@@ -58,6 +58,7 @@ constexpr ArchType GetBuildArch() {
ArchType GetArchType(const std::string& arch);
ArchType GetArchForAbi(ArchType machine_arch, int abi);
std::string GetArchString(ArchType arch);
+bool IsArchTheSame(ArchType arch1, ArchType arch2, bool strict_check);
uint64_t GetSupportedRegMask(ArchType arch);
std::string GetRegName(size_t regno, ArchType arch);