Home
last modified time | relevance | path

Searched refs:WriteToFile (Results 1 – 25 of 43) sorted by relevance

12

/external/perfetto/src/traced/probes/ftrace/
Dftrace_controller_unittest.cc162 ON_CALL(*this, WriteToFile(_, _)).WillByDefault(Return(true)); in MockFtraceProcfs()
165 ON_CALL(*this, WriteToFile("/root/tracing_on", _)) in MockFtraceProcfs()
187 MOCK_METHOD2(WriteToFile,
326 EXPECT_CALL(*controller->procfs(), WriteToFile(kFooEnablePath, "1")); in TEST()
327 EXPECT_CALL(*controller->procfs(), WriteToFile("/root/buffer_size_kb", _)); in TEST()
331 EXPECT_CALL(*controller->procfs(), WriteToFile("/root/tracing_on", "1")); in TEST()
334 EXPECT_CALL(*controller->procfs(), WriteToFile("/root/buffer_size_kb", "0")); in TEST()
340 EXPECT_CALL(*controller->procfs(), WriteToFile(kFooEnablePath, "0")); in TEST()
341 EXPECT_CALL(*controller->procfs(), WriteToFile("/root/tracing_on", "0")); in TEST()
342 EXPECT_CALL(*controller->procfs(), WriteToFile("/root/events/enable", "0")); in TEST()
[all …]
Dftrace_config_muxer_unittest.cc46 ON_CALL(*this, WriteToFile(_, _)).WillByDefault(Return(true)); in MockFtraceProcfs()
51 MOCK_METHOD2(WriteToFile,
200 EXPECT_CALL(ftrace, WriteToFile("/root/buffer_size_kb", _)); in TEST_F()
201 EXPECT_CALL(ftrace, WriteToFile("/root/trace_clock", "boot")); in TEST_F()
202 EXPECT_CALL(ftrace, WriteToFile("/root/tracing_on", "1")); in TEST_F()
204 WriteToFile("/root/events/power/cpu_frequency/enable", "1")); in TEST_F()
270 EXPECT_CALL(ftrace, WriteToFile("/root/buffer_size_kb", _)); in TEST_F()
271 EXPECT_CALL(ftrace, WriteToFile("/root/trace_clock", "boot")); in TEST_F()
272 EXPECT_CALL(ftrace, WriteToFile("/root/tracing_on", "1")); in TEST_F()
274 WriteToFile("/root/events/sched/sched_switch/enable", "1")); in TEST_F()
[all …]
Dftrace_procfs.cc84 if (WriteToFile(path, "1")) in EnableEvent()
93 if (WriteToFile(path, "0")) in DisableEvent()
101 return WriteToFile(path, "0"); in DisableAllEvents()
146 return WriteToFile(path, str); in WriteTraceMarker()
161 return WriteToFile(path, "1"); in EnableTracing()
167 return WriteToFile(path, "0"); in DisableTracing()
181 return WriteToFile(path, clock_name); in SetClock()
238 return WriteToFile(path, std::string(buf)); in WriteNumberToFile()
241 bool FtraceProcfs::WriteToFile(const std::string& path, in WriteToFile() function in perfetto::FtraceProcfs
Dftrace_controller.cc68 void WriteToFile(const char* path, const char* str) { in WriteToFile() function
93 WriteToFile("/sys/kernel/debug/tracing/tracing_on", "0"); in HardResetFtraceState()
94 WriteToFile("/sys/kernel/debug/tracing/buffer_size_kb", "4"); in HardResetFtraceState()
95 WriteToFile("/sys/kernel/debug/tracing/events/enable", "0"); in HardResetFtraceState()
98 WriteToFile("/sys/kernel/tracing/tracing_on", "0"); in HardResetFtraceState()
99 WriteToFile("/sys/kernel/tracing/buffer_size_kb", "4"); in HardResetFtraceState()
100 WriteToFile("/sys/kernel/tracing/events/enable", "0"); in HardResetFtraceState()
Dftrace_procfs_unittest.cc34 MOCK_METHOD2(WriteToFile,
Dftrace_procfs.h102 virtual bool WriteToFile(const std::string& path, const std::string& str);
/external/v8/src/
Dd8-console.cc12 void WriteToFile(const char* prefix, FILE* file, Isolate* isolate, in WriteToFile() function
52 WriteToFile("console.assert", stdout, isolate_, args); in Assert()
61 WriteToFile(nullptr, stdout, isolate_, args); in Log()
66 WriteToFile("console.error", stderr, isolate_, args); in Error()
71 WriteToFile("console.warn", stdout, isolate_, args); in Warn()
76 WriteToFile("console.info", stdout, isolate_, args); in Info()
81 WriteToFile("console.debug", stdout, isolate_, args); in Debug()
/external/boringssl/src/tool/
Dgenerate_ed25519.cc37 static bool WriteToFile(const std::string &path, const uint8_t *in, in WriteToFile() function
63 return WriteToFile(args_map["-out-public"], public_key, sizeof(public_key)) && in GenerateEd25519Key()
64 WriteToFile(args_map["-out-private"], private_key, in GenerateEd25519Key()
/external/compiler-rt/lib/stats/
Dstats.cc40 WriteToFile(fd, chars, sizeof(uptr)); in WriteLE()
55 WriteToFile(stats_fd, &sizeof_uptr, 1); in OpenStatsFile()
67 WriteToFile(stats_fd, mod->full_name(), in WriteModuleReport()
/external/tensorflow/tensorflow/core/util/
Ddump_graph.cc61 Status WriteToFile(const string& filepath, in WriteToFile() function
70 Status WriteToFile(const string& filepath, in WriteToFile() function
100 status = WriteToFile(filepath, proto); in WriteTextProtoToUniqueFile()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_coverage_libcdep.cc552 WriteToFile(cov_fd, &header, sizeof(header)); in CovWritePacked()
553 WriteToFile(cov_fd, module, module_name_length); in CovWritePacked()
554 WriteToFile(cov_fd, blob, blob_size); in CovWritePacked()
577 WriteToFile(cov_fd, block.data(), header_size_with_module + payload_size); in CovWritePacked()
626 WriteToFile(fd, out.data(), out.length()); in DumpTrace()
634 WriteToFile(fd, out.data(), out.length()); in DumpTrace()
644 if (WriteToFile(fd, event_bytes, bytes_to_write, &actually_written) && in DumpTrace()
692 WriteToFile(fd, out.data(), out.length()); in DumpCallerCalleePairs()
727 WriteToFile(fd, bitset.data() + r.beg, r.end - r.beg); in DumpCounters()
754 WriteToFile(fd, out.data() + r.beg, r.end - r.beg); in DumpAsBitSet()
[all …]
Dsanitizer_coverage_mapping_libcdep.cc106 if (!WriteToFile(map_fd, text.data(), text.length(), nullptr, &err)) { in CovUpdateMapping()
/external/lzma/CPP/7zip/Common/
DInOutTempBuffer.cpp41 bool CInOutTempBuffer::WriteToFile(const void *data, UInt32 size) in WriteToFile() function in CInOutTempBuffer
75 return WriteToFile(data, size); in Write()
DInOutTempBuffer.h21 bool WriteToFile(const void *data, UInt32 size);
/external/libbrillo/brillo/
Dfile_utils.cc188 return WriteToFile(path, reinterpret_cast<const char*>(blob.data()), in WriteBlobToFile()
193 return WriteToFile(path, data.data(), data.size()); in WriteStringToFile()
196 bool WriteToFile(const base::FilePath& path, const char* data, size_t size) { in WriteToFile() function
Dfile_utils.h46 BRILLO_EXPORT bool WriteToFile(const base::FilePath& path,
/external/compiler-rt/lib/dfsan/
Ddfsan.cc335 WriteToFile(fd, buf, internal_strlen(buf)); in dfsan_dump_labels()
337 WriteToFile(fd, __dfsan_label_info[l].desc, in dfsan_dump_labels()
340 WriteToFile(fd, "\n", 1); in dfsan_dump_labels()
/external/skqp/tools/
Dreformat-json.py43 gm_json.WriteToFile(gm_json.LoadFromFile(filename), filename)
/external/skia/tools/
Dreformat-json.py43 gm_json.WriteToFile(gm_json.LoadFromFile(filename), filename)
/external/chromium-trace/catapult/common/py_vulcanize/py_vulcanize/
Dgenerate.py156 def WriteToFile(self, output_file): member in ExtraScript
266 extra_script.WriteToFile(output_file)
Dgenerate_unittest.py61 def WriteToFile(self, f): member in GenerateTests.testExtraScriptWithWriteContentsFunc.ExtraScript
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_libc_test.cc98 EXPECT_TRUE(WriteToFile(fd, str1, len1, &bytes_written)); in TEST()
100 EXPECT_TRUE(WriteToFile(fd, str2, len2, &bytes_written)); in TEST()
/external/webrtc/webrtc/modules/audio_coding/neteq/
Dneteq_unittest.cc124 template<typename T, size_t n> void WriteToFile(
130 void WriteToFile(const NetEqNetworkStatistics& stats);
132 void WriteToFile(const RtcpStatistics& stats);
163 WriteToFile(test_results); in ProcessReference()
169 WriteToFile(test_results, length); in ProcessReference()
174 void RefFiles::WriteToFile(const T (&test_results)[n], size_t length) { in WriteToFile() function in webrtc::RefFiles
193 void RefFiles::WriteToFile(const NetEqNetworkStatistics& stats_raw) { in WriteToFile() function in webrtc::RefFiles
238 void RefFiles::WriteToFile(const RtcpStatistics& stats_raw) { in WriteToFile() function in webrtc::RefFiles
/external/boringssl/src/util/testresult/
Dtestresult.go77 func (t *Results) WriteToFile(name string) error { func
/external/webrtc/webrtc/system_wrappers/source/
Dtrace_impl.h93 void WriteToFile(const char* msg, uint16_t length)

12