/system/extras/simpleperf/ |
D | event_fd.h | 43 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);
|
D | event_fd.cpp | 48 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()
|
D | event_type.cpp | 86 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()
|
D | event_selection_set.h | 48 std::string event_name; member 89 bool AddEventType(const std::string& event_name, size_t* group_id = nullptr); 172 bool BuildAndCheckEventSelection(const std::string& event_name, bool first_event,
|
D | cmd_stat.cpp | 265 std::string event_name; in GetRateComment() local 268 event_name = it->second.first; in GetRateComment() 271 if (event_name.empty() && (GetBuildArch() == ARCH_ARM || GetBuildArch() == ARCH_ARM64)) { in GetRateComment() 273 event_name = it->second.first; in GetRateComment() 277 if (event_name.empty() && android::base::ConsumeSuffix(&miss_event_name, "-misses")) { in GetRateComment() 278 event_name = std::string(miss_event_name) + "s"; in GetRateComment() 281 if (!event_name.empty()) { in GetRateComment() 282 const CounterSummary* other = FindSummary(event_name, s.modifier, s.thread, s.cpu); in GetRateComment() 816 counters_info.event_name.c_str(), counter_info.tid, in ShowCounters() 824 counters_info.event_name.c_str(), counter_info.tid, in ShowCounters()
|
D | event_selection_set.cpp | 139 bool EventSelectionSet::BuildAndCheckEventSelection(const std::string& event_name, bool first_event, in BuildAndCheckEventSelection() argument 141 std::unique_ptr<EventTypeAndModifier> event_type = ParseEventType(event_name); in BuildAndCheckEventSelection() 224 bool EventSelectionSet::AddEventType(const std::string& event_name, size_t* group_id) { in AddEventType() argument 225 return AddEventGroup(std::vector<std::string>(1, event_name), group_id); in AddEventType() 233 for (const auto& event_name : event_names) { in AddEventGroup() local 235 if (!BuildAndCheckEventSelection(event_name, first_event, &selection)) { in AddEventGroup() 615 counters_info.event_name = selection.event_type_modifier.event_type.name; in ReadCounters()
|
D | cmd_stat_test.cpp | 73 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() 383 counters_[event_id].event_name = "event" + std::to_string(event_id); in AddCounter() 493 void AddSummary(const std::string event_name, pid_t tid, int cpu, uint64_t count, in AddSummary() argument 499 summary_v_.emplace_back(event_name, "", 0, thread, cpu, count, runtime_in_ns, 1.0, false, in AddSummary()
|
D | event_attr.cpp | 102 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()
|
D | record_lib_interface.cpp | 180 std::string name = info.event_modifier.empty() ? info.event_name : in ReadRawCounters() 181 info.event_name + ":" + info.event_modifier; in ReadRawCounters()
|
D | cmd_stat_impl.h | 211 summaries_.emplace_back(info.event_name, info.event_modifier, info.group_id, thread, cpu, in AddSummary()
|
D | cmd_record_test.cpp | 200 std::string event_name = android::base::StringPrintf("r%zx", event_number); in TEST() local 202 ASSERT_TRUE(RunRecordCmd({"-e", event_name}, tmpfile.path)); in TEST()
|
/system/extras/simpleperf/scripts/inferno/ |
D | inferno.py | 75 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/ |
D | report_html.py | 661 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/ |
D | executable_commands_reference.md | 309 # cpu count event_name # percentage = event_run_time / enabled_time
|