/system/extras/simpleperf/ |
D | cmd_merge_test.cpp | 37 TemporaryFile tmpfile; in GetReport() local 38 close(tmpfile.release()); in GetReport() 39 if (!CreateCommandInstance("report")->Run({"-i", record_file, "-g", "-o", tmpfile.path})) { in GetReport() 43 if (!android::base::ReadFileToString(tmpfile.path, &data)) { in GetReport() 56 TemporaryFile tmpfile; in TEST() local 57 close(tmpfile.release()); in TEST() 58 ASSERT_FALSE(MergeCmd()->Run({"-o", tmpfile.path})); in TEST() 59 ASSERT_TRUE(MergeCmd()->Run({"-i", input_file, "-o", tmpfile.path})); in TEST() 61 ASSERT_TRUE(MergeCmd()->Run({"-i", input_file + "," + input_file, "-o", tmpfile.path})); in TEST() 63 ASSERT_TRUE(MergeCmd()->Run({"-i", input_file, "-i", input_file, "-o", tmpfile.path})); in TEST() [all …]
|
D | cmd_inject_test.cpp | 42 TemporaryFile tmpfile; in RunInjectCmd() local 43 close(tmpfile.release()); in RunInjectCmd() 44 args.insert(args.end(), {"-o", tmpfile.path}); in RunInjectCmd() 49 return android::base::ReadFileToString(tmpfile.path, output); in RunInjectCmd() 97 TemporaryFile tmpfile; in TEST() local 98 close(tmpfile.release()); in TEST() 99 ASSERT_TRUE(RunInjectCmd({"--output", "autofdo", "-o", tmpfile.path})); in TEST() 100 ASSERT_TRUE(RunInjectCmd({"--output", "branch-list", "-o", tmpfile.path})); in TEST() 102 ASSERT_TRUE(RunInjectCmd({"-i", tmpfile.path, "--output", "autofdo"}, &autofdo_data)); in TEST() 121 TemporaryFile tmpfile; in TEST() local [all …]
|
D | cmd_record_test.cpp | 75 std::unique_ptr<TemporaryFile> tmpfile; in RunRecordCmd() local 80 tmpfile.reset(new TemporaryFile); in RunRecordCmd() 81 out_file = tmpfile->path; in RunRecordCmd() 118 TemporaryFile tmpfile; in TEST() local 119 ASSERT_TRUE(RunRecordCmd({"-c", "100000"}, tmpfile.path)); in TEST() 120 CheckEventType(tmpfile.path, GetDefaultEvent(), 100000u, 0); in TEST() 128 TemporaryFile tmpfile; in TEST() local 129 ASSERT_TRUE(RunRecordCmd({"-f", "99"}, tmpfile.path)); in TEST() 130 CheckEventType(tmpfile.path, GetDefaultEvent(), 0, 99u); in TEST() 131 ASSERT_TRUE(RunRecordCmd({"-e", "cpu-clock", "-f", "99"}, tmpfile.path)); in TEST() [all …]
|
D | cmd_debug_unwind_test.cpp | 63 TemporaryFile tmpfile; in TEST() local 64 close(tmpfile.release()); in TEST() 66 "1516379654300997", "-o", tmpfile.path})); in TEST() 68 ASSERT_TRUE(android::base::ReadFileToString(tmpfile.path, &output)); in TEST() 120 TemporaryFile tmpfile; in TEST() local 121 close(tmpfile.release()); in TEST() 124 "--sample-time", "626968783364202", "-o", tmpfile.path, "--keep-binaries-in-test-file", in TEST() 129 ASSERT_TRUE(DebugUnwindCmd()->Run({"-i", tmpfile.path, "--unwind-sample"})); in TEST() 135 TemporaryFile tmpfile; in TEST() local 136 close(tmpfile.release()); in TEST() [all …]
|
D | utils_test.cpp | 79 TemporaryFile tmpfile; in TEST() local 80 close(tmpfile.release()); in TEST() 81 ASSERT_TRUE(android::base::WriteStringToFile("line1\nline2", tmpfile.path)); in TEST() 82 LineReader reader(tmpfile.path); in TEST()
|
D | cmd_api_test.cpp | 77 TemporaryFile tmpfile; in RecordApp() local 79 CreateCommandInstance("api-collect")->Run({"--app", package_name, "-o", tmpfile.path})); in RecordApp() 83 ASSERT_TRUE(Workload::RunCmd({"unzip", "-d", tmpdir.path, tmpfile.path})); in RecordApp()
|
D | cmd_report_sample_test.cpp | 35 TemporaryFile tmpfile; in TEST() local 37 ReportSampleCmd()->Run({"-i", GetTestData(PERF_DATA_WITH_SYMBOLS), "-o", tmpfile.path})); in TEST() 41 TemporaryFile tmpfile; in TEST() local 43 {"-i", GetTestData(CALLGRAPH_FP_PERF_DATA), "-o", tmpfile.path, "--show-callchain"})); in TEST() 48 TemporaryFile tmpfile; local 50 std::vector<std::string> args = {"-i", GetTestData(test_data_file), "-o", tmpfile.path, 55 ReportSampleCmd()->Run({"--dump-protobuf-report", tmpfile.path, "-o", tmpfile2.path}));
|
D | cmd_kmem_test.cpp | 74 std::unique_ptr<TemporaryFile> tmpfile; in RunKmemRecordCmd() local 79 tmpfile.reset(new TemporaryFile); in RunKmemRecordCmd() 80 close(tmpfile->release()); in RunKmemRecordCmd() 81 out_file = tmpfile->path; in RunKmemRecordCmd()
|
D | cmd_list.cpp | 68 TemporaryFile tmpfile; in IsEventTypeSupported() local 69 FILE* fp = fopen(tmpfile.path, "w"); in IsEventTypeSupported()
|
D | report_utils_test.cpp | 287 TemporaryFile tmpfile; in TEST_F() local 288 close(tmpfile.release()); in TEST_F() 296 tmpfile.path)); in TEST_F() 297 builder.AddProguardMappingFile(tmpfile.path); in TEST_F()
|
D | dso_test.cpp | 36 TemporaryFile tmpfile(tmpdir.path); in TEST() local 39 ASSERT_TRUE(android::base::WriteStringToFile(data, tmpfile.path)); in TEST() 42 "%s=%s\n", build_id.ToString().c_str(), android::base::Basename(tmpfile.path).c_str()); in TEST() 48 ASSERT_EQ(finder.FindDebugFile("elf", false, build_id), std::string(tmpfile.path)); in TEST()
|
D | cmd_report_test.cpp | 353 TemporaryFile tmpfile; in TEST_F() local 354 ASSERT_TRUE(ReportCmd()->Run({"-i", GetTestData(PERF_DATA), "-o", tmpfile.path})); in TEST_F() 570 TemporaryFile tmpfile; in TEST_F() local 572 "2", "-o", tmpfile.path, "-g"})); in TEST_F() 573 ReportRaw(tmpfile.path, {"-g"}); in TEST_F()
|
D | CallChainJoiner.cpp | 260 std::unique_ptr<TemporaryFile> tmpfile = ScopedTempFiles::CreateTempFile(); in CreateTempFp() local 261 FILE* fp = fdopen(tmpfile->release(), "web+"); in CreateTempFp()
|
D | environment.cpp | 460 std::unique_ptr<TemporaryFile> tmpfile = ScopedTempFiles::CreateTempFile(); in PrepareVdsoFile() local 461 if (!android::base::WriteStringToFd(s, tmpfile->fd)) { in PrepareVdsoFile() 464 Dso::SetVdsoFile(tmpfile->path, sizeof(size_t) == sizeof(uint64_t)); in PrepareVdsoFile()
|
/system/apex/tests/testdata/sharedlibs/build/ |
D | build_artifacts.sh | 130 tmpfile=$(mktemp) 132 cat > "${tmpfile}" << EOF 168 cat >> "${tmpfile}" << EOF 176 cat >> "${tmpfile}" << EOF 183 cat >> "${tmpfile}" << EOF 191 mv "${tmpfile}" system/apex/tests/testdata/sharedlibs/prebuilts/Android.bp
|
/system/core/fastboot/ |
D | fastboot.cpp | 594 #define tmpfile win32_tmpfile macro 602 return fileno(tmpfile()); in make_temporary_fd()
|
/system/core/debuggerd/ |
D | debuggerd_test.cpp | 1179 FILE* tmp_file = tmpfile(); in seccomp_fork_impl()
|