diff options
author | Yabin Cui <yabinc@google.com> | 2016-03-18 12:30:31 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2016-03-18 16:24:56 -0700 |
commit | 48460892306fbc232d7623b1aa5be1aefdc1a8a7 (patch) | |
tree | e67cfcd29f7a8d5e1260745686b44e56ee695a37 /simpleperf/nonlinux_support | |
parent | 47ea8eeab1ad047432fcecf5b9abb2d015ee66ed (diff) | |
download | extras-48460892306fbc232d7623b1aa5be1aefdc1a8a7.tar.gz |
Simpleperf: remove dependency on global current_arch.
When running unit tests on arm64 devices:
[OK] ReportCommandTest.dwarf_callgraph
[OK] record_cmd.dwarf_callchain_sampling.
ERROR: can't unwind data recorded on a different architecture.
It is because ReportCommandtest.dwarf_callgraph opens a perf.data
recorded on x86_64, and changes current_arch. It causes a problem when
the test record_cmd.dwarf_callchain_sampling calls libbacktrace built
on aarch64. Athough it doesn't make the test fail, we should fix this.
Change-Id: I2cd70369a769ef2199cab2302b8b824369be0907
Diffstat (limited to 'simpleperf/nonlinux_support')
-rw-r--r-- | simpleperf/nonlinux_support/nonlinux_support.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/simpleperf/nonlinux_support/nonlinux_support.cpp b/simpleperf/nonlinux_support/nonlinux_support.cpp index a2489956..7551d364 100644 --- a/simpleperf/nonlinux_support/nonlinux_support.cpp +++ b/simpleperf/nonlinux_support/nonlinux_support.cpp @@ -20,7 +20,8 @@ #include "dwarf_unwind.h" #include "environment.h" -std::vector<uint64_t> UnwindCallChain(const ThreadEntry&, const RegSet&, const std::vector<char>&) { +std::vector<uint64_t> UnwindCallChain(ArchType, const ThreadEntry&, const RegSet&, + const std::vector<char>&) { return std::vector<uint64_t>(); } |