Home
last modified time | relevance | path

Searched refs:ClearFile (Results 1 – 8 of 8) sorted by relevance

/external/perfetto/src/traced/probes/ftrace/
Dftrace_controller_unittest.cc127 ON_CALL(*this, ClearFile(_)).WillByDefault(Return(true)); in MockFtraceProcfs()
155 MOCK_METHOD1(ClearFile, bool(const std::string& path));
281 EXPECT_CALL(*controller->procfs(), ClearFile("/root/trace")) in TEST()
284 ClearFile(MatchesRegex("/root/per_cpu/cpu[0-9]/trace"))) in TEST()
331 EXPECT_CALL(*controller->procfs(), ClearFile("/root/trace")); in TEST()
333 ClearFile(MatchesRegex("/root/per_cpu/cpu[0-9]/trace"))); in TEST()
351 EXPECT_CALL(*controller->procfs(), ClearFile("/root/trace")) in TEST()
354 ClearFile(MatchesRegex("/root/per_cpu/cpu[0-9]/trace"))) in TEST()
368 EXPECT_CALL(*controller->procfs(), ClearFile(_)).Times(AnyNumber()); in TEST()
441 EXPECT_CALL(*controller->procfs(), ClearFile(_)).Times(AnyNumber()); in TEST()
Ddiscover_vendor_tracepoints_unittest.cc51 ON_CALL(*this, ClearFile(_)).WillByDefault(Return(true)); in MockFtraceProcfs()
60 MOCK_METHOD1(ClearFile, bool(const std::string& path));
Dftrace_controller.cc94 void ClearFile(const char* path) { in ClearFile() function
109 ClearFile("/sys/kernel/debug/tracing/trace"); in HardResetFtraceState()
114 ClearFile("/sys/kernel/tracing/trace"); in HardResetFtraceState()
Dftrace_procfs.cc169 PERFETTO_CHECK(ClearFile(path)); // Could not clear. in ClearTrace()
186 if (!ClearFile(root_ + "per_cpu/cpu" + std::to_string(cpu) + "/trace")) in ClearPerCpuTrace()
317 bool FtraceProcfs::ClearFile(const std::string& path) { in ClearFile() function in perfetto::FtraceProcfs
Dftrace_config_muxer_unittest.cc46 ON_CALL(*this, ClearFile(_)).WillByDefault(Return(true)); in MockFtraceProcfs()
55 MOCK_METHOD1(ClearFile, bool(const std::string& path));
438 EXPECT_CALL(ftrace, ClearFile("/root/trace")); in TEST_F()
439 EXPECT_CALL(ftrace, ClearFile(MatchesRegex("/root/per_cpu/cpu[0-9]/trace"))); in TEST_F()
862 EXPECT_CALL(ftrace, ClearFile("/root/trace")); in TEST_F()
863 EXPECT_CALL(ftrace, ClearFile(MatchesRegex("/root/per_cpu/cpu[0-9]/trace"))); in TEST_F()
Dftrace_procfs_unittest.cc36 MOCK_METHOD1(ClearFile, bool(const std::string& path));
Dftrace_procfs.h129 virtual bool ClearFile(const std::string& path);
Dcpu_reader_unittest.cc95 ON_CALL(*this, ClearFile(_)).WillByDefault(Return(true)); in MockFtraceProcfs()
102 MOCK_METHOD1(ClearFile, bool(const std::string& path));