Home
last modified time | relevance | path

Searched refs:event_name (Results 1 – 15 of 15) sorted by relevance

/system/extras/simpleperf/
Devent_fd.h43 const std::string& event_name,
111 const std::string& event_name, pid_t tid, int cpu) in EventFd() argument
115 event_name_(event_name), in EventFd()
154 bool IsEventAttrSupported(const perf_event_attr& attr, const std::string& event_name);
Devent_fd.cpp48 const std::string& event_name, bool report_error) { in OpenEventFile() argument
68 PLOG(ERROR) << "open perf_event_file (event " << event_name << ", tid " in OpenEventFile()
72 PLOG(DEBUG) << "open perf_event_file (event " << event_name << ", tid " in OpenEventFile()
81 << event_name << ", tid " << tid << ", cpu " << cpu in OpenEventFile()
85 << event_name << ", tid " << tid << ", cpu " << cpu in OpenEventFile()
91 new EventFd(real_attr, perf_event_fd, event_name, tid, cpu)); in OpenEventFile()
331 bool IsEventAttrSupported(const perf_event_attr& attr, const std::string& event_name) { in IsEventAttrSupported() argument
332 return EventFd::OpenEventFile(attr, getpid(), -1, nullptr, event_name, false) != nullptr; in IsEventAttrSupported()
Devent_type.cpp86 std::string event_name = items[0]; in GetTracepointEventTypesFromString() local
89 result.push_back(EventType(event_name, PERF_TYPE_TRACEPOINT, id, "", "")); in GetTracepointEventTypesFromString()
103 for (const auto& event_name : GetSubDirs(system_path)) { in GetTracepointEventTypesFromTraceFs() local
104 std::string id_path = system_path + "/" + event_name + "/id"; in GetTracepointEventTypesFromTraceFs()
115 result.push_back(EventType(system_name + ":" + event_name, PERF_TYPE_TRACEPOINT, id, "", "")); in GetTracepointEventTypesFromTraceFs()
207 for (const auto& event_name : GetEntriesInDir(events_dirname)) { in GetPmuEventTypes() local
208 std::string event_path = events_dirname + event_name; in GetPmuEventTypes()
211 LOG(DEBUG) << "cannot read event content in " << event_name; in GetPmuEventTypes()
217 LOG(DEBUG) << "cannot handle config format in " << event_name; in GetPmuEventTypes()
220 result.emplace_back(EventType(device_name + "/" + event_name + "/", in GetPmuEventTypes()
Devent_selection_set.h48 std::string event_name; member
108 bool AddEventType(const std::string& event_name, size_t* group_id = nullptr);
193 bool BuildAndCheckEventSelection(const std::string& event_name, bool first_event,
Dcmd_stat.cpp270 std::string event_name; in GetRateComment() local
273 event_name = it->second.first; in GetRateComment()
276 if (event_name.empty() && (GetBuildArch() == ARCH_ARM || GetBuildArch() == ARCH_ARM64)) { in GetRateComment()
278 event_name = it->second.first; in GetRateComment()
282 if (event_name.empty() && android::base::ConsumeSuffix(&miss_event_name, "-misses")) { in GetRateComment()
283 event_name = std::string(miss_event_name) + "s"; in GetRateComment()
286 if (!event_name.empty()) { in GetRateComment()
287 const CounterSummary* other = FindSummary(event_name, s.modifier, s.thread, s.cpu); in GetRateComment()
832 counters_info.event_name.c_str(), counter_info.tid, in ShowCounters()
840 counters_info.event_name.c_str(), counter_info.tid, in ShowCounters()
Devent_selection_set.cpp160 bool EventSelectionSet::BuildAndCheckEventSelection(const std::string& event_name, bool first_event, in BuildAndCheckEventSelection() argument
162 std::unique_ptr<EventTypeAndModifier> event_type = ParseEventType(event_name); in BuildAndCheckEventSelection()
245 bool EventSelectionSet::AddEventType(const std::string& event_name, size_t* group_id) { in AddEventType() argument
246 return AddEventGroup(std::vector<std::string>(1, event_name), group_id); in AddEventType()
254 for (const auto& event_name : event_names) { in AddEventGroup() local
256 if (!BuildAndCheckEventSelection(event_name, first_event, &selection)) { in AddEventGroup()
712 counters_info.event_name = selection.event_type_modifier.event_type.name; in ReadCounters()
Dcmd_stat_test.cpp73 std::string event_name = android::base::StringPrintf("r%zx", event_number); in TEST() local
74 ASSERT_TRUE(StatCmd()->Run({"-e", event_name, "sleep", "1"})); in TEST()
400 counters_[arg.event_id].event_name = "event" + std::to_string(arg.event_id); in AddCounter()
555 void AddSummary(const std::string event_name, pid_t tid, int cpu, uint64_t count, in AddSummary() argument
561 summary_v_.emplace_back(event_name, "", 0, thread, cpu, count, runtime_in_ns, 1.0, false, in AddSummary()
Drecord_lib_interface.cpp180 std::string name = info.event_modifier.empty() ? info.event_name : in ReadRawCounters()
181 info.event_name + ":" + info.event_modifier; in ReadRawCounters()
Devent_attr.cpp102 std::string event_name = GetEventNameByAttr(attr); in DumpPerfEventAttr() local
103 PrintIndented(indent, "event_attr: for event type %s\n", event_name.c_str()); in DumpPerfEventAttr()
Dcmd_report.cpp103 std::string event_name; member
110 return info->event_name; in DisplayEventName()
135 void SetEventName(const std::string& event_name) { in SetEventName() argument
136 event_name_ = event_name; in SetEventName()
146 sample_tree.event_name = event_name_; in GetSampleTree()
Dcmd_stat_impl.h263 summaries_.emplace_back(info.event_name, info.event_modifier, info.group_id, thread, cpu, in AddSummary()
Dcmd_record_test.cpp203 std::string event_name = android::base::StringPrintf("r%zx", event_number); in TEST() local
205 ASSERT_TRUE(RunRecordCmd({"-e", event_name}, tmpfile.path)); in TEST()
/system/extras/simpleperf/scripts/inferno/
Dinferno.py75 event_name = tokens[1]
76 record_arg_str += "-c %s -e %s " % (num_events, event_name)
79 log_info("Using event sampling (-c %s -e %s)." % (num_events, event_name))
/system/extras/simpleperf/scripts/
Dreport_html.py661 def _get_event(self, event_name): argument
662 if event_name not in self.events:
663 self.events[event_name] = EventScope(event_name)
664 return self.events[event_name]
/system/extras/simpleperf/doc/
Dexecutable_commands_reference.md309 # cpu count event_name # percentage = event_run_time / enabled_time