diff options
author | Yabin Cui <yabinc@google.com> | 2018-02-06 13:42:16 -0800 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2018-02-13 17:01:18 -0800 |
commit | 6e75e1b8f560bd3029e22aa9ac04e789e405a007 (patch) | |
tree | e78919944ac234ded3c89ed8903e619d52949a5e /simpleperf/cmd_report_test.cpp | |
parent | 3579c4460bbd10f1f1b866859dfa4000774e9962 (diff) | |
download | extras-6e75e1b8f560bd3029e22aa9ac04e789e405a007.tar.gz |
simpleperf: Use cross-arch unwinding.
Enables cross-arch unwinding since the new unwinder supports cross-arch
unwinding.
Also change tests accordingly.
Bug: http://b/73127000
Test: run simpleperf_unit_test.
Change-Id: I3ca3f7a81b40e9f7ea2b39b9fdc951f9e7a6acc7
Diffstat (limited to 'simpleperf/cmd_report_test.cpp')
-rw-r--r-- | simpleperf/cmd_report_test.cpp | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/simpleperf/cmd_report_test.cpp b/simpleperf/cmd_report_test.cpp index f6ab6f8f..28f226d2 100644 --- a/simpleperf/cmd_report_test.cpp +++ b/simpleperf/cmd_report_test.cpp @@ -507,19 +507,12 @@ TEST_F(ReportCommandTest, dwarf_callgraph) { } TEST_F(ReportCommandTest, report_dwarf_callgraph_of_nativelib_in_apk) { - // NATIVELIB_IN_APK_PERF_DATA is recorded on arm64, so can only report - // callgraph on arm64. - if (GetBuildArch() == ARCH_ARM64) { - Report(NATIVELIB_IN_APK_PERF_DATA, {"-g"}); - ASSERT_NE(content.find(GetUrlInApk(APK_FILE, NATIVELIB_IN_APK)), - std::string::npos); - ASSERT_NE(content.find("Func2"), std::string::npos); - ASSERT_NE(content.find("Func1"), std::string::npos); - ASSERT_NE(content.find("GlobalFunc"), std::string::npos); - } else { - GTEST_LOG_(INFO) - << "This test does nothing as it is only run on arm64 devices"; - } + Report(NATIVELIB_IN_APK_PERF_DATA, {"-g"}); + ASSERT_NE(content.find(GetUrlInApk(APK_FILE, NATIVELIB_IN_APK)), + std::string::npos); + ASSERT_NE(content.find("Func2"), std::string::npos); + ASSERT_NE(content.find("Func1"), std::string::npos); + ASSERT_NE(content.find("GlobalFunc"), std::string::npos); } TEST_F(ReportCommandTest, exclude_kernel_callchain) { |