Home
last modified time | relevance | path

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

/system/extras/perf2cfg/perf2cfg/
Dedit.py315 for event_name in self.event_names:
316 event_count = self.current_method.event_counts[event_name]
318 event_name, event_count)
329 for event_name in self.event_names:
331 instruction.event_counts[event_name]
334 event_name, max_event_count)
351 for event_name in self.event_names:
354 event_count = self.current_method.event_counts[event_name]
355 annotation = self.generate_block_annotation(event_name, event_count)
367 for event_name in self.event_names:
[all …]
Danalyze.py57 def record_sample(self, event_name: str, event_count: int) -> None:
64 self.event_counts[event_name] += event_count
89 def record_sample(self, relative_addr: int, event_name: str,
98 self.event_counts[event_name] += event_count
104 instruction.record_sample(event_name, event_count)
195 event_name: str, event_count: int) -> None:
204 self.event_counts[event_name] += event_count
210 method.record_sample(relative_addr, event_name, event_count)
/system/extras/simpleperf/
DProbeEvents.cpp66 event->event_name = match->GetField(2); in ParseKprobeEventName()
74 event->event_name = StringPrintf("%c_0x%" PRIx64, probe_type, kaddr); in ParseKprobeEventName()
92 event->event_name = RegEx::Create(R"(\.|:)")->Replace(s, "_").value(); in ParseKprobeEventName()
130 bool ProbeEvents::IsProbeEvent(const std::string& event_name) { in IsProbeEvent() argument
131 return android::base::StartsWith(event_name, kKprobeEventPrefix); in IsProbeEvent()
134 bool ProbeEvents::CreateProbeEventIfNotExist(const std::string& event_name) { in CreateProbeEventIfNotExist() argument
135 if (!IsProbeEvent(event_name) || (EventTypeManager::Instance().FindType(event_name) != nullptr)) { in CreateProbeEventIfNotExist()
139 std::string function_name = event_name.substr(kKprobeEventPrefix.size()); in CreateProbeEventIfNotExist()
145 if (!WriteKprobeCmd("-:" + kprobe_event.group_name + "/" + kprobe_event.event_name)) { in Clear()
147 << kprobe_event.event_name; in Clear()
[all …]
DProbeEvents_test.cpp31 ASSERT_EQ(event.event_name, "myprobe"); in TEST()
35 ASSERT_EQ(event.event_name, "myprobe"); in TEST()
39 ASSERT_EQ(event.event_name, "p_do_sys_open_0"); in TEST()
43 ASSERT_EQ(event.event_name, "r_do_sys_open_138"); in TEST()
47 ASSERT_EQ(event.event_name, "r_module_do_sys_open_138"); in TEST()
51 ASSERT_EQ(event.event_name, "p_0x12345678"); in TEST()
DProbeEvents.h29 std::string event_name; member
45 bool CreateProbeEventIfNotExist(const std::string& event_name);
48 bool IsProbeEvent(const std::string& event_name);
Devent_fd.h45 const std::string& event_name,
112 EventFd(const perf_event_attr& attr, int perf_event_fd, const std::string& event_name, pid_t tid, in EventFd() argument
117 event_name_(event_name), in EventFd()
156 bool IsEventAttrSupported(const perf_event_attr& attr, const std::string& event_name);
Devent_fd.cpp50 const std::string& event_name, bool report_error) { in OpenEventFile() argument
70 PLOG(ERROR) << "open perf_event_file (event " << event_name << ", tid " << tid << ", cpu " in OpenEventFile()
73 PLOG(DEBUG) << "open perf_event_file (event " << event_name << ", tid " << tid << ", cpu " in OpenEventFile()
80 PLOG(ERROR) << "fcntl(FD_CLOEXEC) for perf_event_file (event " << event_name << ", tid " in OpenEventFile()
83 PLOG(DEBUG) << "fcntl(FD_CLOEXEC) for perf_event_file (event " << event_name << ", tid " in OpenEventFile()
88 return std::unique_ptr<EventFd>(new EventFd(real_attr, perf_event_fd, event_name, tid, cpu)); in OpenEventFile()
329 bool IsEventAttrSupported(const perf_event_attr& attr, const std::string& event_name) { in IsEventAttrSupported() argument
330 return EventFd::OpenEventFile(attr, getpid(), -1, nullptr, event_name, false) != nullptr; in IsEventAttrSupported()
Devent_type.cpp113 std::string event_name = items[0]; in LoadTypes() local
116 types_.emplace(event_name, PERF_TYPE_TRACEPOINT, id, "", ""); in LoadTypes()
171 for (const auto& event_name : GetSubDirs(system_path)) { in LoadTypes() local
172 std::string id_path = system_path + "/" + event_name + "/id"; in LoadTypes()
175 types_.emplace(system_name + ":" + event_name, PERF_TYPE_TRACEPOINT, id, "", ""); in LoadTypes()
223 for (const auto& event_name : GetEntriesInDir(events_dirname)) { in LoadTypes() local
224 std::string event_path = events_dirname + event_name; in LoadTypes()
227 LOG(DEBUG) << "cannot read event content in " << event_name; in LoadTypes()
233 LOG(DEBUG) << "cannot handle config format in " << event_name; in LoadTypes()
236 types_.emplace(device_name + "/" + event_name + "/", type_id, config, "", ""); in LoadTypes()
Devent_selection_set.h50 std::string event_name; member
110 bool AddEventType(const std::string& event_name);
111 bool AddEventType(const std::string& event_name, const SampleRate& sample_rate);
208 bool BuildAndCheckEventSelection(const std::string& event_name, bool first_event,
Devent_selection_set.cpp195 bool EventSelectionSet::BuildAndCheckEventSelection(const std::string& event_name, bool first_event, in BuildAndCheckEventSelection() argument
197 std::unique_ptr<EventTypeAndModifier> event_type = ParseEventType(event_name); in BuildAndCheckEventSelection()
279 bool EventSelectionSet::AddEventType(const std::string& event_name) { in AddEventType() argument
280 return AddEventGroup(std::vector<std::string>(1, event_name)); in AddEventType()
283 bool EventSelectionSet::AddEventType(const std::string& event_name, const SampleRate& sample_rate) { in AddEventType() argument
284 if (!AddEventGroup(std::vector<std::string>(1, event_name))) { in AddEventType()
295 for (const auto& event_name : event_names) { in AddEventGroup() local
297 if (!BuildAndCheckEventSelection(event_name, first_event, &selection)) { in AddEventGroup()
330 for (const auto& event_name : event_names) { in AddCounters() local
332 if (!BuildAndCheckEventSelection(event_name, false, &selection)) { in AddCounters()
[all …]
Dcmd_stat.cpp281 std::string event_name; in GetRateComment() local
284 event_name = it->second.first; in GetRateComment()
287 if (event_name.empty() && (GetTargetArch() == ARCH_ARM || GetTargetArch() == ARCH_ARM64)) { in GetRateComment()
289 event_name = it->second.first; in GetRateComment()
293 if (event_name.empty() && android::base::ConsumeSuffix(&miss_event_name, "-misses")) { in GetRateComment()
294 event_name = std::string(miss_event_name) + "s"; in GetRateComment()
297 if (!event_name.empty()) { in GetRateComment()
298 const CounterSummary* other = FindSummary(event_name, s.modifier, s.thread, s.cpu); in GetRateComment()
943 counters_info.event_name.c_str(), counter_info.tid, counter_info.cpu, in ShowCounters()
950 counters_info.event_name.c_str(), counter_info.tid, counter_info.cpu, in ShowCounters()
Devent_attr.cpp104 std::string event_name = GetEventNameByAttr(attr); in DumpPerfEventAttr() local
105 PrintIndented(indent, "event_attr: for event type %s\n", event_name.c_str()); in DumpPerfEventAttr()
Drecord_lib_interface.cpp183 info.event_modifier.empty() ? info.event_name : info.event_name + ":" + info.event_modifier; in ReadRawCounters()
Dcmd_stat_test.cpp84 std::string event_name = android::base::StringPrintf("r%zx", event_number); in TEST() local
85 ASSERT_TRUE(StatCmd()->Run({"-e", event_name, "sleep", "1"})); in TEST()
494 counters_[arg.event_id].event_name = "event" + std::to_string(arg.event_id); in AddCounter()
659 void AddSummary(const std::string event_name, pid_t tid, int cpu, uint64_t count, in AddSummary() argument
665 summary_v_.emplace_back(event_name, "", 0, thread, cpu, count, runtime_in_ns, 1.0, false, in AddSummary()
Dcmd_report.cpp116 std::string event_name; member
123 return info->event_name; in DisplayEventName()
153 void SetEventName(const std::string& event_name) { event_name_ = event_name; } in SetEventName() argument
162 sample_tree.event_name = event_name_; in GetSampleTree()
Dreport_lib_interface.cpp339 std::string event_name = GetEventNameByAttr(record_file_reader_->AttrSection()[0].attr); in OpenRecordFileIfNecessary() local
340 if (!android::base::StartsWith(event_name, "cpu-clock") && in OpenRecordFileIfNecessary()
341 !android::base::StartsWith(event_name, "task-clock")) { in OpenRecordFileIfNecessary()
Dcmd_report_sample.cpp570 std::string event_name = GetEventNameByAttr(record_file_reader_->AttrSection()[0].attr); in OpenRecordFile() local
571 if (!android::base::StartsWith(event_name, "cpu-clock") && in OpenRecordFile()
572 !android::base::StartsWith(event_name, "task-clock")) { in OpenRecordFile()
Dcmd_stat_impl.h242 summaries_.emplace_back(info.event_name, info.event_modifier, info.group_id, thread, cpu, in AddSummary()
Dcmd_record_test.cpp214 std::string event_name = android::base::StringPrintf("r%zx", event_number); in TEST() local
216 ASSERT_TRUE(RunRecordCmd({"-e", event_name}, tmpfile.path)); in TEST()
/system/extras/profcollectd/libprofcollectd/
Dsimpleperf_lbr_trace_provider.rs44 let event_name = in trace() localVariable
50 event_name, in trace()
Dsimpleperf_etm_trace_provider.rs45 let event_name = if binary_filter.contains("kernel") { "cs-etm" } else { "cs-etm:u" }; in trace() localVariable
50 event_name, in trace()
/system/extras/simpleperf/scripts/inferno/
Dinferno.py79 event_name = tokens[1]
80 record_arg_str += "-c %s -e %s " % (num_events, event_name)
83 logging.info("Using event sampling (-c %s -e %s)." % (num_events, event_name))
/system/extras/simpleperf/scripts/
Dsimpleperf_report_lib.py710 event_name = self._get_event_name(sample.event_type_id)
711 is_offcpu = 'sched_switch' in event_name
753 event_name = self._get_event_name(event_type_id)
754 return ProtoEvent(name=event_name, tracing_data_format=None)
Dreport_html.py730 def _get_event(self, event_name: str) -> EventScope:
731 if event_name not in self.events:
732 self.events[event_name] = EventScope(event_name)
733 return self.events[event_name]
/system/extras/simpleperf/doc/
Dexecutable_commands_reference.md101 # count event_name # count / runtime
137 # count event_name # count / runtime
186 # count event_name # count / runtime
319 # cpu count event_name # count / runtime