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.h101 virtual const Event* GetEvent(const GroupAndName& group_and_name) const { in GetEvent() argument
102 if (!group_and_name_to_event_.count(group_and_name)) in GetEvent()
104 return group_and_name_to_event_.at(group_and_name); in GetEvent()
122 size_t EventToFtraceId(const GroupAndName& group_and_name) const { in EventToFtraceId() argument
123 if (!group_and_name_to_event_.count(group_and_name)) in EventToFtraceId()
125 return group_and_name_to_event_.at(group_and_name)->ftrace_event_id; in EventToFtraceId()
Dftrace_config_muxer.cc331 for (const auto& group_and_name : events) { in SetupConfig() local
332 const Event* event = table_->GetOrCreateEvent(group_and_name); in SetupConfig()
335 group_and_name.ToString().c_str()); in SetupConfig()
341 *actual.add_ftrace_events() = group_and_name.ToString(); in SetupConfig()
347 *actual.add_ftrace_events() = group_and_name.ToString(); in SetupConfig()
349 PERFETTO_DPLOG("Failed to enable %s.", group_and_name.ToString().c_str()); in SetupConfig()
Dproto_translation_table.cc473 const GroupAndName& group_and_name) { in GetOrCreateEvent() argument
474 const Event* event = GetEvent(group_and_name); in GetOrCreateEvent()
479 std::string contents = ftrace_procfs_->ReadEventFormat(group_and_name.group(), in GetOrCreateEvent()
480 group_and_name.name()); in GetOrCreateEvent()
496 e->name = InternString(group_and_name.name()); in GetOrCreateEvent()
497 e->group = InternString(group_and_name.group()); in GetOrCreateEvent()
509 group_and_name_to_event_[group_and_name] = &events_.at(e->ftrace_event_id); in GetOrCreateEvent()
Dproto_translation_table_unittest.cc399 GroupAndName group_and_name("group", "foo"); in TEST() local
400 const Event* e = table->GetOrCreateEvent(group_and_name); in TEST()
402 EXPECT_EQ(table->EventToFtraceId(group_and_name), 42ul); in TEST()
407 EXPECT_EQ(table->GetEvent(group_and_name)->proto_field_id, in TEST()
410 group_and_name.name()); in TEST()
Dftrace_config_muxer_unittest.cc87 MOCK_METHOD1(GetOrCreateEvent, Event*(const GroupAndName& group_and_name));
89 const Event*(const GroupAndName& group_and_name));