Home
last modified time | relevance | path

Searched refs:group_and_name (Results 1 – 5 of 5) sorted by relevance

/external/perfetto/src/traced/probes/ftrace/
Dproto_translation_table.h111 virtual const Event* GetEvent(const GroupAndName& group_and_name) const { in GetEvent() argument
112 if (!group_and_name_to_event_.count(group_and_name)) in GetEvent()
114 return group_and_name_to_event_.at(group_and_name); in GetEvent()
133 size_t EventToFtraceId(const GroupAndName& group_and_name) const { in EventToFtraceId() argument
134 if (!group_and_name_to_event_.count(group_and_name)) in EventToFtraceId()
136 return group_and_name_to_event_.at(group_and_name)->ftrace_event_id; in EventToFtraceId()
Dproto_translation_table.cc498 const GroupAndName& group_and_name) { in GetOrCreateEvent() argument
499 const Event* event = GetEvent(group_and_name); in GetOrCreateEvent()
504 std::string contents = ftrace_procfs_->ReadEventFormat(group_and_name.group(), in GetOrCreateEvent()
505 group_and_name.name()); in GetOrCreateEvent()
521 e->name = InternString(group_and_name.name()); in GetOrCreateEvent()
522 e->group = InternString(group_and_name.group()); in GetOrCreateEvent()
534 group_and_name_to_event_[group_and_name] = &events_.at(e->ftrace_event_id); in GetOrCreateEvent()
Dproto_translation_table_unittest.cc455 GroupAndName group_and_name("group", "foo"); in TEST() local
456 const Event* e = table->GetOrCreateEvent(group_and_name); in TEST()
458 EXPECT_EQ(table->EventToFtraceId(group_and_name), 42ul); in TEST()
463 EXPECT_EQ(static_cast<int>(table->GetEvent(group_and_name)->proto_field_id), in TEST()
466 group_and_name.name()); in TEST()
Dftrace_config_muxer.cc492 for (const auto& group_and_name : events) { in SetupConfig() local
493 const Event* event = table_->GetOrCreateEvent(group_and_name); in SetupConfig()
496 group_and_name.ToString().c_str()); in SetupConfig()
512 PERFETTO_DPLOG("Failed to enable %s.", group_and_name.ToString().c_str()); in SetupConfig()
Dftrace_config_muxer_unittest.cc89 MOCK_METHOD1(GetOrCreateEvent, Event*(const GroupAndName& group_and_name));
91 const Event*(const GroupAndName& group_and_name));