summaryrefslogtreecommitdiff
path: root/simpleperf/perf_regs.h
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2016-03-30 16:21:47 -0700
committerYabin Cui <yabinc@google.com>2016-03-30 16:21:47 -0700
commit257d5e69967941de7c5516a476397450063b8c3d (patch)
tree5729b8ffc4e002d9a75d5e56c49495dd0fd814b9 /simpleperf/perf_regs.h
parent6dd31f4a3fda4dc6a49bcda1fb67052bc478c3fb (diff)
downloadextras-257d5e69967941de7c5516a476397450063b8c3d.tar.gz
simpleperf: don't allow 64bit simpleperf unwinding 32bit processes.
Bug: 27927427 Change-Id: I87abc7f8d1f160da4366ed04db054206403bc803
Diffstat (limited to 'simpleperf/perf_regs.h')
-rw-r--r--simpleperf/perf_regs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/simpleperf/perf_regs.h b/simpleperf/perf_regs.h
index 9fc610f8..98c925f9 100644
--- a/simpleperf/perf_regs.h
+++ b/simpleperf/perf_regs.h
@@ -56,6 +56,8 @@ constexpr ArchType GetBuildArch() {
}
ArchType GetArchType(const std::string& arch);
+ArchType GetArchForAbi(ArchType machine_arch, int abi);
+std::string GetArchString(ArchType arch);
uint64_t GetSupportedRegMask(ArchType arch);
std::string GetRegName(size_t regno, ArchType arch);