Home
last modified time | relevance | path

Searched refs:tmpfile (Results 1 – 17 of 17) sorted by relevance

/system/extras/simpleperf/
Dcmd_merge_test.cpp37 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 …]
Dcmd_inject_test.cpp42 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 …]
Dcmd_record_test.cpp75 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 …]
Dcmd_debug_unwind_test.cpp63 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 …]
Dutils_test.cpp79 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()
Dcmd_api_test.cpp77 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()
Dcmd_report_sample_test.cpp35 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}));
Dcmd_kmem_test.cpp74 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()
Dcmd_list.cpp68 TemporaryFile tmpfile; in IsEventTypeSupported() local
69 FILE* fp = fopen(tmpfile.path, "w"); in IsEventTypeSupported()
Dreport_utils_test.cpp287 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()
Ddso_test.cpp36 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()
Dcmd_report_test.cpp353 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()
DCallChainJoiner.cpp260 std::unique_ptr<TemporaryFile> tmpfile = ScopedTempFiles::CreateTempFile(); in CreateTempFp() local
261 FILE* fp = fdopen(tmpfile->release(), "web+"); in CreateTempFp()
Denvironment.cpp460 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/
Dbuild_artifacts.sh130 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/
Dfastboot.cpp594 #define tmpfile win32_tmpfile macro
602 return fileno(tmpfile()); in make_temporary_fd()
/system/core/debuggerd/
Ddebuggerd_test.cpp1179 FILE* tmp_file = tmpfile(); in seccomp_fork_impl()