/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 108 bool AddEventType(const std::string& event_name, size_t* group_id = nullptr); 193 bool BuildAndCheckEventSelection(const std::string& event_name, bool first_event,
|
D | cmd_stat.cpp | 270 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()
|
D | event_selection_set.cpp | 160 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()
|
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() 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()
|
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 | 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 | cmd_report.cpp | 103 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()
|
D | cmd_stat_impl.h | 263 summaries_.emplace_back(info.event_name, info.event_modifier, info.group_id, thread, cpu, in AddSummary()
|
D | cmd_record_test.cpp | 203 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/ |
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
|