diff options
Diffstat (limited to 'simpleperf/get_test_data.h')
-rw-r--r-- | simpleperf/get_test_data.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/simpleperf/get_test_data.h b/simpleperf/get_test_data.h index 1ef663b9..b6a7999e 100644 --- a/simpleperf/get_test_data.h +++ b/simpleperf/get_test_data.h @@ -149,4 +149,32 @@ static const std::string PERF_DATA_WITH_IP_ZERO_IN_CALLCHAIN = // generated by `simpleperf record -e cs-etm:u ./etm_test_loop` static const std::string PERF_DATA_ETM_TEST_LOOP = "etm/perf.data"; +struct DexFileTestData { + std::string filename; + uint64_t dexfile_offset; + size_t symbol_count; + // One symbol in the dex file. + uint64_t symbol_addr; + uint64_t symbol_len; + std::string symbol_name; +}; + +static DexFileTestData dex_file_test_data[] = { + DexFileTestData{ + "base_with_cdex_v1.vdex", + 0x28, + 12435, + 0x6c77e, + 0x16, + "com.example.simpleperf.simpleperfexamplewithnative.MixActivity$1.run", + }, + DexFileTestData{ + "base_with_cdex_v2.vdex", + 0x40, + 16891, + 0x169b84, + 0x25a, + "com.android.calculator2.Calculator.onButtonClick", + }}; + #endif // SIMPLE_PERF_GET_TEST_DATA_H_ |