Searched refs:group_and_name (Results 1 – 5 of 5) sorted by relevance
101 virtual const Event* GetEvent(const GroupAndName& group_and_name) const { in GetEvent() argument102 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() argument123 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()
331 for (const auto& group_and_name : events) { in SetupConfig() local332 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()
473 const GroupAndName& group_and_name) { in GetOrCreateEvent() argument474 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()
399 GroupAndName group_and_name("group", "foo"); in TEST() local400 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()
87 MOCK_METHOD1(GetOrCreateEvent, Event*(const GroupAndName& group_and_name));89 const Event*(const GroupAndName& group_and_name));