diff options
author | Lev Rumyantsev <levarum@google.com> | 2020-03-04 17:02:45 -0800 |
---|---|---|
committer | Lev Rumyantsev <levarum@google.com> | 2020-03-10 16:26:39 -0700 |
commit | bcfbb47662058f07ea675a110dde25163fec5729 (patch) | |
tree | bddc9b43ec9adeaa2775d4a0add176dfb43e7f76 | |
parent | 969bc03bce82d9400cc40f04e44cb719fe51296d (diff) | |
download | extras-bcfbb47662058f07ea675a110dde25163fec5729.tar.gz |
Disable record_cmd#record_native_app for non-native ABIs
Binary translated code doesn't directly execute guest code, so it's
execution cannot be mapped to guest symbols.
Bug: 149313881
Test: CtsSimpleperfTestCases -- --abi=armeabi-v7a on emulator
(cherry-picked from 340f20e88b795f48a242d6a14fff7b3451a18f38)
Change-Id: I4acef39263935024207648f4dc83681825fd62ef
-rw-r--r-- | simpleperf/cmd_record_test.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/simpleperf/cmd_record_test.cpp b/simpleperf/cmd_record_test.cpp index ec8c44c9..c6bc3f22 100644 --- a/simpleperf/cmd_record_test.cpp +++ b/simpleperf/cmd_record_test.cpp @@ -872,6 +872,11 @@ TEST(record_cmd, record_java_app) { TEST(record_cmd, record_native_app) { #if defined(__ANDROID__) + // In case of non-native ABI guest symbols are never directly executed, thus + // don't appear in perf.data. Instead binary translator executes code + // translated from guest at runtime. + OMIT_TEST_ON_NON_NATIVE_ABIS(); + RecordingAppHelper helper; // 1. Install apk. ASSERT_TRUE(helper.InstallApk(GetTestData("EndlessTunnel.apk"), "com.google.sample.tunnel")); @@ -1018,4 +1023,4 @@ TEST(record_cmd, exclude_perf_option) { return true; })); } -}
\ No newline at end of file +} |