/external/perfetto/src/ftrace_reader/ |
D | ftrace_procfs.cc | 48 if (FtraceProcfs::g_kmesg_fd != -1) in KernelLogWrite() 49 base::ignore_result(write(FtraceProcfs::g_kmesg_fd, s, strlen(s))); in KernelLogWrite() 55 int FtraceProcfs::g_kmesg_fd = -1; // Set by ProbesMain() in probes.cc . 58 std::unique_ptr<FtraceProcfs> FtraceProcfs::Create(const std::string& root) { in Create() 62 return std::unique_ptr<FtraceProcfs>(new FtraceProcfs(root)); in Create() 65 FtraceProcfs::FtraceProcfs(const std::string& root) : root_(root) {} in FtraceProcfs() function in perfetto::FtraceProcfs 66 FtraceProcfs::~FtraceProcfs() = default; 68 bool FtraceProcfs::EnableEvent(const std::string& group, in EnableEvent() 74 bool FtraceProcfs::DisableEvent(const std::string& group, in DisableEvent() 80 bool FtraceProcfs::DisableAllEvents() { in DisableAllEvents() [all …]
|
D | ftrace_procfs_integrationtest.cc | 37 void ResetFtrace(FtraceProcfs* ftrace) { in ResetFtrace() 66 EXPECT_TRUE(FtraceProcfs::Create(kTracingPath)); in TEST() 75 EXPECT_FALSE(FtraceProcfs::Create(kTracingPath + std::string("bad_path"))); in TEST() 84 FtraceProcfs ftrace(kTracingPath); in TEST() 97 FtraceProcfs ftrace(kTracingPath); in TEST() 109 FtraceProcfs ftrace(kTracingPath); in TEST() 127 FtraceProcfs ftrace(kTracingPath); in TEST() 148 FtraceProcfs ftrace(kTracingPath); in TEST() 160 FtraceProcfs ftrace(kTracingPath); in TEST() 170 FtraceProcfs ftrace(kTracingPath); in TEST() [all …]
|
D | ftrace_procfs.h | 28 class FtraceProcfs { 30 static std::unique_ptr<FtraceProcfs> Create(const std::string& root); 33 explicit FtraceProcfs(const std::string& root); 34 virtual ~FtraceProcfs();
|
D | cpu_stats_parser.h | 24 class FtraceProcfs; variable 29 bool DumpAllCpuStats(FtraceProcfs*, FtraceStats*);
|
D | ftrace_procfs_unittest.cc | 30 class MockFtraceProcfs : public FtraceProcfs { 32 MockFtraceProcfs() : FtraceProcfs("/root/") {} in MockFtraceProcfs()
|
D | ftrace_config_muxer.h | 43 FtraceConfigMuxer(FtraceProcfs* ftrace, const ProtoTranslationTable* table); 89 FtraceProcfs* ftrace_;
|
D | proto_translation_table.h | 33 class FtraceProcfs; variable 52 const FtraceProcfs* ftrace_procfs,
|
D | proto_translation_table_unittest.cc | 37 class MockFtraceProcfs : public FtraceProcfs { 39 MockFtraceProcfs() : FtraceProcfs("/root/") {} in MockFtraceProcfs() 51 FtraceProcfs ftrace_procfs(path); in SetUp() 102 FtraceProcfs ftrace_procfs(path); in TEST()
|
D | end_to_end_integrationtest.cc | 106 FtraceProcfs procfs(kTracingPath); in TEST_F() 141 FtraceProcfs procfs(kTracingPath); in TEST_F()
|
D | ftrace_controller.cc | 112 std::unique_ptr<FtraceProcfs> ftrace_procfs = nullptr; in Create() 114 ftrace_procfs = FtraceProcfs::Create(kTracingPaths[index++]); in Create() 129 FtraceController::FtraceController(std::unique_ptr<FtraceProcfs> ftrace_procfs, in FtraceController()
|
D | ftrace_config_muxer_unittest.cc | 41 class MockFtraceProcfs : public FtraceProcfs { 43 MockFtraceProcfs() : FtraceProcfs("/root/") { in MockFtraceProcfs()
|
D | cpu_stats_parser.cc | 75 bool DumpAllCpuStats(FtraceProcfs* ftrace, FtraceStats* stats) { in DumpAllCpuStats()
|
D | ftrace_controller_unittest.cc | 134 FtraceProcfs* ftrace, in FakeModel() 140 class MockFtraceProcfs : public FtraceProcfs { 142 explicit MockFtraceProcfs(size_t cpu_count = 1) : FtraceProcfs("/root/") { in MockFtraceProcfs()
|
D | proto_translation_table.cc | 254 const FtraceProcfs* ftrace_procfs, in Create()
|
D | ftrace_config_muxer.cc | 226 FtraceConfigMuxer::FtraceConfigMuxer(FtraceProcfs* ftrace, in FtraceConfigMuxer()
|
/external/perfetto/src/traced/probes/ |
D | probes.cc | 63 FtraceProcfs::g_kmesg_fd = atoi(env); in ProbesMain() 66 int res = fcntl(FtraceProcfs::g_kmesg_fd, F_SETFD, FD_CLOEXEC); in ProbesMain()
|
/external/perfetto/include/perfetto/ftrace_reader/ |
D | ftrace_controller.h | 105 class FtraceProcfs; variable 179 FtraceController(std::unique_ptr<FtraceProcfs>, 227 std::unique_ptr<FtraceProcfs> ftrace_procfs_;
|
/external/perfetto/src/ftrace_reader/test/ |
D | cpu_reader_support.cc | 37 FtraceProcfs ftrace(path); in GetTable()
|