/external/perfetto/src/traced/probes/ftrace/ |
D | ftrace_config_muxer.cc | 43 std::set<GroupAndName>* to) { in AddEventGroup() 48 to->insert(GroupAndName(group, event->name)); in AddEventGroup() 51 std::set<GroupAndName> ReadEventsInGroupFromFs( in ReadEventsInGroupFromFs() 56 std::set<GroupAndName> events; in ReadEventsInGroupFromFs() 58 events.insert(GroupAndName(group, name)); in ReadEventsInGroupFromFs() 95 std::set<GroupAndName> FtraceConfigMuxer::GetFtraceEvents( in GetFtraceEvents() 98 std::set<GroupAndName> events; in GetFtraceEvents() 117 events.insert(GroupAndName(e->group, e->name)); in GetFtraceEvents() 119 events.insert(GroupAndName(group, name)); in GetFtraceEvents() 123 events.insert(GroupAndName("ftrace", "print")); in GetFtraceEvents() [all …]
|
D | proto_translation_table.h | 48 class GroupAndName { 50 GroupAndName(const std::string& group, const std::string& name) in GroupAndName() function 53 bool operator==(const GroupAndName& other) const { 57 bool operator<(const GroupAndName& other) const { 71 inline void PrintTo(const GroupAndName& event, ::std::ostream* os) { in PrintTo() 111 virtual const Event* GetEvent(const GroupAndName& group_and_name) const { in GetEvent() 133 size_t EventToFtraceId(const GroupAndName& group_and_name) const { in EventToFtraceId() 155 virtual const Event* GetOrCreateEvent(const GroupAndName&); 186 std::map<GroupAndName, const Event*> group_and_name_to_event_;
|
D | discover_vendor_tracepoints.cc | 26 std::vector<GroupAndName> DiscoverTracepoints(AtraceHalWrapper* hal, in DiscoverTracepoints() 32 std::vector<GroupAndName> events; in DiscoverTracepoints() 37 GroupAndName(group_name.substr(0, pos), group_name.substr(pos + 1))); in DiscoverTracepoints() 45 std::map<std::string, std::vector<GroupAndName>> DiscoverVendorTracepoints( in DiscoverVendorTracepoints() 48 std::map<std::string, std::vector<GroupAndName>> results; in DiscoverVendorTracepoints()
|
D | ftrace_config_muxer_unittest.cc | 89 MOCK_METHOD1(GetOrCreateEvent, Event*(const GroupAndName& group_and_name)); 91 const Event*(const GroupAndName& group_and_name)); 216 EXPECT_CALL(*mock_table, GetEvent(GroupAndName("power", "cpu_frequency"))) in TEST_F() 224 ON_CALL(*mock_table, GetOrCreateEvent(GroupAndName("power", "cpu_frequency"))) in TEST_F() 227 GetOrCreateEvent(GroupAndName("power", "cpu_frequency"))); in TEST_F() 255 ON_CALL(*mock_table, GetOrCreateEvent(GroupAndName("group_one", "foo"))) in TEST_F() 257 EXPECT_CALL(*mock_table, GetOrCreateEvent(GroupAndName("group_one", "foo"))); in TEST_F() 264 ON_CALL(*mock_table, GetOrCreateEvent(GroupAndName("group_two", "foo"))) in TEST_F() 266 EXPECT_CALL(*mock_table, GetOrCreateEvent(GroupAndName("group_two", "foo"))); in TEST_F() 312 ON_CALL(*mock_table, GetOrCreateEvent(GroupAndName("sched", "sched_switch"))) in TEST_F() [all …]
|
D | proto_translation_table_unittest.cc | 76 EXPECT_TRUE(table_->GetEvent(GroupAndName("ftrace", "print"))); in TEST_P() 77 EXPECT_TRUE(table_->GetEvent(GroupAndName("sched", "sched_switch"))); in TEST_P() 78 EXPECT_TRUE(table_->GetEvent(GroupAndName("sched", "sched_wakeup"))); in TEST_P() 79 EXPECT_TRUE(table_->GetEvent(GroupAndName("ext4", "ext4_da_write_begin"))); in TEST_P() 98 auto event = table_->GetEvent(GroupAndName("ftrace", "print")); in TEST_P() 125 auto event = table->GetEvent(GroupAndName("sched", "sched_switch")); in TEST() 134 auto event = table->GetEvent(GroupAndName("sched", "sched_wakeup")); in TEST() 143 auto event = table->GetEvent(GroupAndName("ext4", "ext4_da_write_begin")); in TEST() 238 EXPECT_EQ(table->EventToFtraceId(GroupAndName("group", "foo")), 42ul); in TEST_P() 239 EXPECT_EQ(table->EventToFtraceId(GroupAndName("group", "bar")), 0ul); in TEST_P() [all …]
|
D | ftrace_config_muxer.h | 79 std::map<std::string, std::vector<GroupAndName>> vendor_events); 112 std::set<GroupAndName> GetFtraceEventsForTesting( in GetFtraceEventsForTesting() 147 std::set<GroupAndName> GetFtraceEvents(const FtraceConfig& request, 164 std::map<std::string, std::vector<GroupAndName>> vendor_events_;
|
D | discover_vendor_tracepoints.h | 32 std::vector<GroupAndName> DiscoverTracepoints(AtraceHalWrapper* hal, 37 std::map<std::string, std::vector<GroupAndName>> DiscoverVendorTracepoints(
|
D | cpu_reader_fuzzer.cc | 62 table->EventToFtraceId(GroupAndName("sched", "sched_switch"))); in FuzzCpuReaderProcessPagesForDataSource() 64 table->EventToFtraceId(GroupAndName("ftrace", "print"))); in FuzzCpuReaderProcessPagesForDataSource()
|
D | discover_vendor_tracepoints_unittest.cc | 88 ElementsAre(GroupAndName("foo", "bar"), GroupAndName("a", "b"))); in TEST()
|
D | cpu_reader_unittest.cc | 386 table->EventToFtraceId(GroupAndName("ftrace", "print"))); in TEST() 514 table->EventToFtraceId(GroupAndName("ftrace", "print"))); in TEST() 563 table->EventToFtraceId(GroupAndName("ftrace", "print"))); in TEST() 666 table->EventToFtraceId(GroupAndName("ftrace", "print"))); in TEST() 775 table->EventToFtraceId(GroupAndName("sched", "sched_switch"))); in TEST() 825 table->EventToFtraceId(GroupAndName("sched", "sched_switch"))); in TEST() 1181 table->EventToFtraceId(GroupAndName("sched", "sched_switch"))); in TEST() 1395 table->EventToFtraceId(GroupAndName("sched", "sched_switch"))); in TEST() 1973 table->EventToFtraceId(GroupAndName("power", "suspend_resume"))); in TEST()
|
D | proto_translation_table.cc | 490 group_and_name_to_event_[GroupAndName(event.group, event.name)] = in ProtoTranslationTable() 498 const GroupAndName& group_and_name) { in GetOrCreateEvent()
|