/system/extras/simpleperf/ |
D | ProbeEvents_test.cpp | 30 ASSERT_EQ(event.event_name, "myprobe"); in TEST() 34 ASSERT_EQ(event.event_name, "myprobe"); in TEST() 38 ASSERT_EQ(event.event_name, "p_do_sys_open_0"); in TEST() 42 ASSERT_EQ(event.event_name, "r_do_sys_open_138"); in TEST() 46 ASSERT_EQ(event.event_name, "r_module_do_sys_open_138"); in TEST() 50 ASSERT_EQ(event.event_name, "p_0x12345678"); in TEST()
|
D | ProbeEvents.cpp | 65 event->event_name = matches[2].str(); in ParseKprobeEventName() 73 event->event_name = StringPrintf("%c_0x%" PRIx64, probe_type, kaddr); in ParseKprobeEventName() 91 event->event_name = std::regex_replace(s, std::regex(R"(\.|:)"), "_"); in ParseKprobeEventName() 121 bool ProbeEvents::IsProbeEvent(const std::string& event_name) { in IsProbeEvent() argument 122 return android::base::StartsWith(event_name, kKprobeEventPrefix); in IsProbeEvent() 125 bool ProbeEvents::CreateProbeEventIfNotExist(const std::string& event_name) { in CreateProbeEventIfNotExist() argument 126 if (EventTypeManager::Instance().FindType(event_name) != nullptr) { in CreateProbeEventIfNotExist() 129 std::string function_name = event_name.substr(kKprobeEventPrefix.size()); in CreateProbeEventIfNotExist() 135 if (!WriteKprobeCmd("-:" + kprobe_event.group_name + "/" + kprobe_event.event_name)) { in Clear() 137 << kprobe_event.event_name; in Clear() [all …]
|
D | ProbeEvents.h | 27 std::string event_name; member 41 bool IsProbeEvent(const std::string& event_name); 43 bool CreateProbeEventIfNotExist(const std::string& event_name);
|
D | event_fd.h | 45 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);
|
D | event_fd.cpp | 50 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() 324 bool IsEventAttrSupported(const perf_event_attr& attr, const std::string& event_name) { in IsEventAttrSupported() argument 325 return EventFd::OpenEventFile(attr, getpid(), -1, nullptr, event_name, false) != nullptr; in IsEventAttrSupported()
|
D | profcollect.cpp | 38 bool Record(const char* event_name, const char* output, float duration) { in Record() argument 42 args.insert(args.end(), {"-e", event_name}); in Record()
|
D | event_type.cpp | 114 std::string event_name = items[0]; in LoadTypes() local 117 types_.emplace(event_name, PERF_TYPE_TRACEPOINT, id, "", ""); in LoadTypes() 172 for (const auto& event_name : GetSubDirs(system_path)) { in LoadTypes() local 173 std::string id_path = system_path + "/" + event_name + "/id"; in LoadTypes() 176 types_.emplace(system_name + ":" + event_name, PERF_TYPE_TRACEPOINT, id, "", ""); in LoadTypes() 224 for (const auto& event_name : GetEntriesInDir(events_dirname)) { in LoadTypes() local 225 std::string event_path = events_dirname + event_name; in LoadTypes() 228 LOG(DEBUG) << "cannot read event content in " << event_name; in LoadTypes() 234 LOG(DEBUG) << "cannot handle config format in " << event_name; in LoadTypes() 237 types_.emplace(device_name + "/" + event_name + "/", type_id, config, "", ""); in LoadTypes()
|
D | event_selection_set.h | 50 std::string event_name; member 110 bool AddEventType(const std::string& event_name, size_t* group_id = nullptr); 190 bool BuildAndCheckEventSelection(const std::string& event_name, bool first_event,
|
D | cmd_stat.cpp | 269 std::string event_name; in GetRateComment() local 272 event_name = it->second.first; in GetRateComment() 275 if (event_name.empty() && (GetBuildArch() == ARCH_ARM || GetBuildArch() == ARCH_ARM64)) { in GetRateComment() 277 event_name = it->second.first; in GetRateComment() 281 if (event_name.empty() && android::base::ConsumeSuffix(&miss_event_name, "-misses")) { in GetRateComment() 282 event_name = std::string(miss_event_name) + "s"; in GetRateComment() 285 if (!event_name.empty()) { in GetRateComment() 286 const CounterSummary* other = FindSummary(event_name, s.modifier, s.thread, s.cpu); in GetRateComment() 819 counters_info.event_name.c_str(), counter_info.tid, counter_info.cpu, in ShowCounters() 826 counters_info.event_name.c_str(), counter_info.tid, counter_info.cpu, in ShowCounters()
|
D | event_selection_set.cpp | 170 bool EventSelectionSet::BuildAndCheckEventSelection(const std::string& event_name, bool first_event, in BuildAndCheckEventSelection() argument 172 std::unique_ptr<EventTypeAndModifier> event_type = ParseEventType(event_name); in BuildAndCheckEventSelection() 251 bool EventSelectionSet::AddEventType(const std::string& event_name, size_t* group_id) { in AddEventType() argument 252 return AddEventGroup(std::vector<std::string>(1, event_name), group_id); in AddEventType() 260 for (const auto& event_name : event_names) { in AddEventGroup() local 262 if (!BuildAndCheckEventSelection(event_name, first_event, &selection)) { in AddEventGroup() 721 counters_info.event_name = selection.event_type_modifier.event_type.name; in ReadCounters()
|
D | cmd_stat_test.cpp | 74 std::string event_name = android::base::StringPrintf("r%zx", event_number); in TEST() local 75 ASSERT_TRUE(StatCmd()->Run({"-e", event_name, "sleep", "1"})); in TEST() 398 counters_[arg.event_id].event_name = "event" + std::to_string(arg.event_id); in AddCounter() 553 void AddSummary(const std::string event_name, pid_t tid, int cpu, uint64_t count, in AddSummary() argument 559 summary_v_.emplace_back(event_name, "", 0, thread, cpu, count, runtime_in_ns, 1.0, false, in AddSummary()
|
D | event_attr.cpp | 104 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()
|
D | record_lib_interface.cpp | 183 info.event_modifier.empty() ? info.event_name : info.event_name + ":" + info.event_modifier; in ReadRawCounters()
|
D | cmd_report.cpp | 108 std::string event_name; member 115 return info->event_name; in DisplayEventName() 142 void SetEventName(const std::string& event_name) { event_name_ = event_name; } in SetEventName() argument 151 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 | 199 std::string event_name = android::base::StringPrintf("r%zx", event_number); in TEST() local 201 ASSERT_TRUE(RunRecordCmd({"-e", event_name}, tmpfile.path)); in TEST()
|
/system/extras/perf2cfg/perf2cfg/ |
D | edit.py | 315 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 …]
|
D | analyze.py | 57 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/rust/ |
D | lib.rs | 45 let event_name: CString = match scope { in record() localVariable 54 simpleperf_profcollect_bindgen::Record(event_name.as_ptr(), trace_file.as_ptr(), duration); in record()
|
/system/extras/simpleperf/include/ |
D | simpleperf_profcollect.hpp | 20 bool Record(const char* event_name, const char* output, float duration);
|
/system/extras/simpleperf/scripts/inferno/ |
D | inferno.py | 77 event_name = tokens[1] 78 record_arg_str += "-c %s -e %s " % (num_events, event_name) 81 log_info("Using event sampling (-c %s -e %s)." % (num_events, event_name))
|
/system/extras/simpleperf/scripts/ |
D | report_html.py | 709 def _get_event(self, event_name: str) -> EventScope: 710 if event_name not in self.events: 711 self.events[event_name] = EventScope(event_name) 712 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
|