Home
last modified time | relevance | path

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

/external/perfetto/src/traced/probes/ftrace/
Dftrace_config_muxer.cc40 std::set<GroupAndName>* to) { in AddEventGroup()
45 to->insert(GroupAndName(group, event->name)); in AddEventGroup()
48 std::set<GroupAndName> ReadEventsInGroupFromFs( in ReadEventsInGroupFromFs()
53 std::set<GroupAndName> events; in ReadEventsInGroupFromFs()
55 events.insert(GroupAndName(group, name)); in ReadEventsInGroupFromFs()
70 std::set<GroupAndName> FtraceConfigMuxer::GetFtraceEvents( in GetFtraceEvents()
73 std::set<GroupAndName> events; in GetFtraceEvents()
92 events.insert(GroupAndName(e->group, e->name)); in GetFtraceEvents()
94 events.insert(GroupAndName(group, name)); in GetFtraceEvents()
98 events.insert(GroupAndName("ftrace", "print")); in GetFtraceEvents()
[all …]
Dftrace_config_muxer_unittest.cc87 MOCK_METHOD1(GetOrCreateEvent, Event*(const GroupAndName& group_and_name));
89 const Event*(const GroupAndName& group_and_name));
205 EXPECT_CALL(*mock_table, GetEvent(GroupAndName("power", "cpu_frequency"))) in TEST_F()
212 ON_CALL(*mock_table, GetOrCreateEvent(GroupAndName("power", "cpu_frequency"))) in TEST_F()
215 GetOrCreateEvent(GroupAndName("power", "cpu_frequency"))); in TEST_F()
236 ON_CALL(*mock_table, GetOrCreateEvent(GroupAndName("group_one", "foo"))) in TEST_F()
238 EXPECT_CALL(*mock_table, GetOrCreateEvent(GroupAndName("group_one", "foo"))); in TEST_F()
244 ON_CALL(*mock_table, GetOrCreateEvent(GroupAndName("group_two", "foo"))) in TEST_F()
246 EXPECT_CALL(*mock_table, GetOrCreateEvent(GroupAndName("group_two", "foo"))); in TEST_F()
288 ON_CALL(*mock_table, GetOrCreateEvent(GroupAndName("sched", "sched_switch"))) in TEST_F()
[all …]
Dproto_translation_table.h44 class GroupAndName {
46 GroupAndName(const std::string& group, const std::string& name) in GroupAndName() function
49 bool operator==(const GroupAndName& other) const {
53 bool operator<(const GroupAndName& other) const {
101 virtual const Event* GetEvent(const GroupAndName& group_and_name) const { in GetEvent()
122 size_t EventToFtraceId(const GroupAndName& group_and_name) const { in EventToFtraceId()
144 virtual const Event* GetOrCreateEvent(const GroupAndName&);
167 std::map<GroupAndName, const Event*> group_and_name_to_event_;
Dproto_translation_table_unittest.cc74 EXPECT_TRUE(table_->GetEvent(GroupAndName("ftrace", "print"))); in TEST_P()
75 EXPECT_TRUE(table_->GetEvent(GroupAndName("sched", "sched_switch"))); in TEST_P()
76 EXPECT_TRUE(table_->GetEvent(GroupAndName("sched", "sched_wakeup"))); in TEST_P()
77 EXPECT_TRUE(table_->GetEvent(GroupAndName("ext4", "ext4_da_write_begin"))); in TEST_P()
96 auto event = table_->GetEvent(GroupAndName("ftrace", "print")); in TEST_P()
122 auto event = table->GetEvent(GroupAndName("sched", "sched_switch")); in TEST()
131 auto event = table->GetEvent(GroupAndName("sched", "sched_wakeup")); in TEST()
140 auto event = table->GetEvent(GroupAndName("ext4", "ext4_da_write_begin")); in TEST()
236 EXPECT_EQ(table->EventToFtraceId(GroupAndName("group", "foo")), 42ul); in TEST_P()
237 EXPECT_EQ(table->EventToFtraceId(GroupAndName("group", "bar")), 0ul); in TEST_P()
[all …]
Dcpu_reader_fuzzer.cc57 table->EventToFtraceId(GroupAndName("sched", "sched_switch"))); in FuzzCpuReaderParsePage()
59 table->EventToFtraceId(GroupAndName("ftrace", "print"))); in FuzzCpuReaderParsePage()
Dftrace_config_muxer.h78 std::set<GroupAndName> GetFtraceEventsForTesting( in GetFtraceEventsForTesting()
106 std::set<GroupAndName> GetFtraceEvents(const FtraceConfig& request,
Dcpu_reader_unittest.cc341 table->EventToFtraceId(GroupAndName("ftrace", "print"))); in TEST()
456 table->EventToFtraceId(GroupAndName("ftrace", "print"))); in TEST()
493 table->EventToFtraceId(GroupAndName("ftrace", "print"))); in TEST()
573 table->EventToFtraceId(GroupAndName("ftrace", "print"))); in TEST()
669 table->EventToFtraceId(GroupAndName("sched", "sched_switch"))); in TEST()
Dproto_translation_table.cc465 group_and_name_to_event_[GroupAndName(event.group, event.name)] = in ProtoTranslationTable()
473 const GroupAndName& group_and_name) { in GetOrCreateEvent()