Searched refs:group_and_name (Results 1 – 5 of 5) sorted by relevance
111 virtual const Event* GetEvent(const GroupAndName& group_and_name) const { in GetEvent() argument112 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() argument134 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()
498 const GroupAndName& group_and_name) { in GetOrCreateEvent() argument499 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()
455 GroupAndName group_and_name("group", "foo"); in TEST() local456 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()
492 for (const auto& group_and_name : events) { in SetupConfig() local493 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()
89 MOCK_METHOD1(GetOrCreateEvent, Event*(const GroupAndName& group_and_name));91 const Event*(const GroupAndName& group_and_name));