Home
last modified time | relevance | path

Searched refs:FtraceProcfs (Results 1 – 18 of 18) sorted by relevance

/external/perfetto/src/ftrace_reader/
Dftrace_procfs.cc48 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 …]
Dftrace_procfs_integrationtest.cc37 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 …]
Dftrace_procfs.h28 class FtraceProcfs {
30 static std::unique_ptr<FtraceProcfs> Create(const std::string& root);
33 explicit FtraceProcfs(const std::string& root);
34 virtual ~FtraceProcfs();
Dcpu_stats_parser.h24 class FtraceProcfs; variable
29 bool DumpAllCpuStats(FtraceProcfs*, FtraceStats*);
Dftrace_procfs_unittest.cc30 class MockFtraceProcfs : public FtraceProcfs {
32 MockFtraceProcfs() : FtraceProcfs("/root/") {} in MockFtraceProcfs()
Dftrace_config_muxer.h43 FtraceConfigMuxer(FtraceProcfs* ftrace, const ProtoTranslationTable* table);
89 FtraceProcfs* ftrace_;
Dproto_translation_table.h33 class FtraceProcfs; variable
52 const FtraceProcfs* ftrace_procfs,
Dproto_translation_table_unittest.cc37 class MockFtraceProcfs : public FtraceProcfs {
39 MockFtraceProcfs() : FtraceProcfs("/root/") {} in MockFtraceProcfs()
51 FtraceProcfs ftrace_procfs(path); in SetUp()
102 FtraceProcfs ftrace_procfs(path); in TEST()
Dend_to_end_integrationtest.cc106 FtraceProcfs procfs(kTracingPath); in TEST_F()
141 FtraceProcfs procfs(kTracingPath); in TEST_F()
Dftrace_controller.cc112 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()
Dftrace_config_muxer_unittest.cc41 class MockFtraceProcfs : public FtraceProcfs {
43 MockFtraceProcfs() : FtraceProcfs("/root/") { in MockFtraceProcfs()
Dcpu_stats_parser.cc75 bool DumpAllCpuStats(FtraceProcfs* ftrace, FtraceStats* stats) { in DumpAllCpuStats()
Dftrace_controller_unittest.cc134 FtraceProcfs* ftrace, in FakeModel()
140 class MockFtraceProcfs : public FtraceProcfs {
142 explicit MockFtraceProcfs(size_t cpu_count = 1) : FtraceProcfs("/root/") { in MockFtraceProcfs()
Dproto_translation_table.cc254 const FtraceProcfs* ftrace_procfs, in Create()
Dftrace_config_muxer.cc226 FtraceConfigMuxer::FtraceConfigMuxer(FtraceProcfs* ftrace, in FtraceConfigMuxer()
/external/perfetto/src/traced/probes/
Dprobes.cc63 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/
Dftrace_controller.h105 class FtraceProcfs; variable
179 FtraceController(std::unique_ptr<FtraceProcfs>,
227 std::unique_ptr<FtraceProcfs> ftrace_procfs_;
/external/perfetto/src/ftrace_reader/test/
Dcpu_reader_support.cc37 FtraceProcfs ftrace(path); in GetTable()