/system/extras/simpleperf/ |
D | cmd_dumprecord_test.cpp | 30 ASSERT_TRUE(DumpCmd()->Run({GetTestData("perf.data")})); in TEST() 34 ASSERT_TRUE(DumpCmd()->Run({"-i", GetTestData("perf.data")})); in TEST() 38 ASSERT_TRUE(DumpCmd()->Run({GetTestData(PERF_DATA_GENERATED_BY_LINUX_PERF)})); in TEST() 42 ASSERT_TRUE(DumpCmd()->Run({GetTestData(PERF_DATA_WITH_CALLCHAIN_RECORD)})); in TEST() 48 ASSERT_TRUE(DumpCmd()->Run({GetTestData(PERF_DATA_WITH_INTERPRETER_FRAMES)})); in TEST() 57 ASSERT_TRUE(DumpCmd()->Run({GetTestData("perf_with_tracepoint_event.data")})); in TEST() 63 ASSERT_TRUE(DumpCmd()->Run({GetTestData("perf_with_tracepoint_event_dynamic_field.data")})); in TEST() 73 GetTestDataDir() + "etm", GetTestData(PERF_DATA_ETM_TEST_LOOP)})); in TEST()
|
D | cmd_debug_unwind_test.cpp | 39 std::string input_data = GetTestData(PERF_DATA_NO_UNWIND); in TEST() 48 std::string input_data = GetTestData(PERF_DATA_NO_UNWIND); in TEST() 62 std::string input_data = GetTestData(PERF_DATA_NO_UNWIND); in TEST() 73 std::string input_data = GetTestData(NATIVELIB_IN_APK_PERF_DATA); in TEST() 86 ASSERT_TRUE(DebugUnwindCmd()->Run({"-i", GetTestData(PERF_DATA_WITH_IP_ZERO_IN_CALLCHAIN), in TEST() 98 ASSERT_TRUE(DebugUnwindCmd()->Run({"-i", GetTestData("perf_unwind_embedded_lib_in_apk.data"), in TEST() 114 {"-i", GetTestData("perf_with_failed_unwinding_debug_info.data"), "--unwind-sample"})); in TEST() 123 {"-i", GetTestData("perf_with_failed_unwinding_debug_info.data"), "--generate-test-file", in TEST() 137 ASSERT_TRUE(DebugUnwindCmd()->Run({"-i", GetTestData("perf_display_bitmaps.data"), in TEST() 152 DebugUnwindCmd()->Run({"-i", GetTestData("perf_with_failed_unwinding_debug_info.data"), in TEST()
|
D | read_elf_test.cpp | 68 auto elf = ElfFile::Open(GetTestData(ELF_FILE), &status); in TEST() 78 auto elf = ElfFile::Open(GetTestData(path), &status); in TEST() 109 auto elf = ElfFile::Open(GetTestData(ELF_FILE), &elf_file_build_id, &status); in TEST() 120 auto elf = ElfFile::Open(GetTestData(ELF_FILE), &status); in TEST() 129 elf = ElfFile::Open(GetTestData(ELF_FILE), &build_id, &status); in TEST() 140 auto elf = ElfFile::Open(GetTestData(ELF_FILE), &build_id, &status); in TEST() 148 auto elf = ElfFile::Open(GetTestData(path), &native_lib_build_id, &status); in TEST() 158 auto elf = ElfFile::Open(GetTestData(ELF_FILE_WITH_MINI_DEBUG_INFO), &status); in TEST() 183 ASSERT_EQ(ElfStatus::NO_ERROR, IsValidElfPath(GetTestData(ELF_FILE))); in TEST() 189 auto elf = ElfFile::Open(GetTestData(ELF_FILE), &status); in TEST() [all …]
|
D | read_apk_test.cpp | 28 ASSERT_TRUE(inspector.FindElfInApkByOffset(GetTestData(APK_FILE), 0) == nullptr); in TEST() 32 GetTestData(APK_FILE), NATIVELIB_OFFSET_IN_APK + NATIVELIB_SIZE_IN_APK / 2); in TEST() 41 ASSERT_TRUE(ApkInspector::FindElfInApkByName(GetTestData(APK_FILE), "") == nullptr); in TEST() 42 auto ee = ApkInspector::FindElfInApkByName(GetTestData(APK_FILE), NATIVELIB_IN_APK); in TEST()
|
D | dso_test.cpp | 38 ASSERT_TRUE(android::base::ReadFileToString(GetTestData(ELF_FILE), &data)); in TEST() 126 ASSERT_EQ(finder.FindDebugFile("random_dir/elf", false, build_id), GetTestData("elf")); in TEST() 129 ASSERT_EQ(finder.FindDebugFile("base.apk!/lib/x86_64/elf", false, build_id), GetTestData("elf")); in TEST() 155 std::unique_ptr<Dso> dso = Dso::CreateDso(dso_type, GetTestData("base.vdex")); in TEST() 172 dso = Dso::CreateDso(dso_type, GetTestData("base.zip!/not_exist_entry")); in TEST() 191 const std::string file_path = GetUrlInApk(GetTestData(APK_FILE), NATIVELIB_IN_APK); in TEST() 210 std::unique_ptr<Dso> dso = Dso::CreateDso(DSO_ELF_FILE, GetTestData("libc.so")); in TEST() 217 const std::string vmlinux_path = GetTestData(ELF_FILE); in TEST() 243 ASSERT_TRUE(android::base::ReadFileToString(GetTestData(ELF_FILE), &data)); in TEST() 264 ASSERT_EQ(dso->GetDebugFilePath(), GetTestData(ELF_FILE)); in TEST()
|
D | cmd_merge_test.cpp | 53 std::string input_file = GetTestData("perf.data"); in TEST() 67 std::string input_file1 = GetTestData("perf_merge1.data"); in TEST() 68 std::string input_file2 = GetTestData("perf_merge2.data"); in TEST()
|
D | cmd_inject_test.cpp | 35 args.insert(args.end(), {"-i", GetTestData(PERF_DATA_ETM_TEST_LOOP)}); in RunInjectCmd() 57 GetTestData(std::string("etm") + OS_PATH_SEPARATOR + "perf_inject.data"), &expected_data)); in CheckMatchingExpectedData() 92 GetTestData(std::string("etm") + OS_PATH_SEPARATOR + "perf_with_recording_process.data"); in TEST() 132 GetTestData(std::string("etm") + OS_PATH_SEPARATOR + "perf_kernel.data"); in TEST()
|
D | cmd_api_test.cpp | 93 RecordApp("simpleperf.demo.java_api", GetTestData("java_api.apk")); in TEST() 101 RecordApp("simpleperf.demo.cpp_api", GetTestData("cpp_api.apk")); in TEST()
|
D | cmd_report_sample_test.cpp | 31 ASSERT_TRUE(ReportSampleCmd()->Run({"-i", GetTestData(PERF_DATA_WITH_SYMBOLS)})); in TEST() 37 ReportSampleCmd()->Run({"-i", GetTestData(PERF_DATA_WITH_SYMBOLS), "-o", tmpfile.path})); in TEST() 43 {"-i", GetTestData(CALLGRAPH_FP_PERF_DATA), "-o", tmpfile.path, "--show-callchain"})); in TEST() 50 std::vector<std::string> args = {"-i", GetTestData(test_data_file), "-o", tmpfile.path, 206 {"--show-callchain", "--proguard-mapping-file", GetTestData("proguard_mapping.txt")}); in TEST()
|
D | utils_test.cpp | 38 std::unique_ptr<ArchiveHelper> ahelper = ArchiveHelper::CreateInstance(GetTestData(APK_FILE)); in TEST() 58 ASSERT_FALSE(ArchiveHelper::CreateInstance(GetTestData(ELF_FILE))); in TEST()
|
D | cmd_report_test.cpp | 43 ReportRaw(GetTestData(perf_data), add_args); in Report() 354 ASSERT_TRUE(ReportCmd()->Run({"-i", GetTestData(PERF_DATA), "-o", tmpfile.path})); in TEST_F() 364 Report(PERF_DATA_FOR_BUILD_ID_CHECK, {"--symfs", GetTestData(CORRECT_SYMFS_FOR_BUILD_ID_CHECK)}); in TEST_F() 370 {"--symfs", GetTestData(WRONG_SYMFS_FOR_BUILD_ID_CHECK)}); in TEST_F() 394 Report(PERF_DATA, {"--symfs", GetTestData(SYMFS_FOR_NO_SYMBOL_TABLE_WARNING)}); in TEST_F() 409 Report(PERF_DATA, {"--symfs", GetTestData(SYMFS_FOR_READ_ELF_FILE_WARNING)}); in TEST_F() 447 Report(PERF_DATA, {"--kallsyms", GetTestData("kallsyms")}); in TEST_F() 453 ASSERT_FALSE(ReportCmd()->Run({"-i", GetTestData(INVALID_PERF_DATA)})); in TEST_F() 532 ASSERT_FALSE(ReportCmd()->Run({"-i", GetTestData("perf.data"), "--cpu", "-2"})); in TEST_F()
|
D | environment_test.cpp | 110 fs::path dir(GetTestData("sysfs/module/fake_kernel_module/notes")); in TEST() 113 ASSERT_TRUE(GetModuleBuildId("fake_kernel_module", &build_id, GetTestData("sysfs"))); in TEST()
|
D | cmd_trace_sched_test.cpp | 54 {"--record-file", GetTestData(PERF_DATA_SCHED_STAT_RUNTIME), "--show-threads"})); in TEST()
|
D | read_dex_file_test.cpp | 35 ASSERT_TRUE(ReadSymbolsFromDexFile(GetTestData("base.vdex"), {0x28}, symbol_callback)); in TEST()
|
D | get_test_data.h | 26 std::string GetTestData(const std::string& filename);
|
D | gtest_main.cpp | 121 std::string GetTestData(const std::string& filename) { in GetTestData() function
|
D | cmd_kmem_test.cpp | 67 KmemReportRawFile(GetTestData(perf_data), additional_args, result); in KmemReportFile()
|
D | cmd_record_test.cpp | 769 ASSERT_TRUE(helper.InstallApk(GetTestData("DisplayBitmaps.apk"), in RecordJavaApp() 771 ASSERT_TRUE(helper.InstallApk(GetTestData("DisplayBitmapsTest.apk"), in RecordJavaApp() 823 ASSERT_TRUE(helper.InstallApk(GetTestData("EndlessTunnel.apk"), "com.google.sample.tunnel")); in TEST() 1085 ASSERT_TRUE(Realpath(GetTestData(ELF_FILE), &path)); in TEST()
|
D | RecordReadThread_test.cpp | 78 RecordFileReader::CreateInstance(GetTestData(PERF_DATA_NO_UNWIND)); in TEST()
|