/system/extras/simpleperf/ |
D | event_type.h | 38 struct EventType { struct 39 EventType(const std::string& name, uint32_t type, uint64_t config, const std::string& description, in EventType() argument 47 EventType() : type(0), config(0) {} in EventType() argument 49 bool operator<(const EventType& other) const { 71 static std::string BuildString(const std::vector<const EventType*>& event_types); argument 79 EventType event_type; 111 bool ForEachType(const std::function<bool(const EventType&)>& callback); 112 const EventType* FindType(const std::string& name); 113 const EventType* AddRawType(const std::string& name); 130 const EventType* FindEventTypeByName(const std::string& name, bool report_error = true);
|
D | cmd_list.cpp | 42 static EventTypeStatus IsEventTypeSupported(const EventType& event_type) { in IsEventTypeSupported() 88 const std::function<bool(const EventType&)>& is_type_fn) { in PrintEventTypesOfType() 104 auto callback = [&](const EventType& event_type) { in PrintEventTypesOfType() 158 static std::map<std::string, std::pair<std::string, std::function<bool(const EventType&)>>> in Run() 160 { {"hw", {"hardware events", [](const EventType& e) { return e.type == PERF_TYPE_HARDWARE; }}}, in Run() 161 {"sw", {"software events", [](const EventType& e) { return e.type == PERF_TYPE_SOFTWARE; }}}, in Run() 162 {"cache", {"hw-cache events", [](const EventType& e) { return e.type == PERF_TYPE_HW_CACHE; }}}, in Run() 165 [](const EventType& e) { return e.type == PERF_TYPE_RAW; }}}, in Run() 167 {"tracepoint events", [](const EventType& e) { return e.type == PERF_TYPE_TRACEPOINT; }}}, in Run() 171 [](const EventType& e) { return e.type == ETMRecorder::GetInstance().GetEtmEventType(); }}}, in Run() [all …]
|
D | event_type.cpp | 50 static const std::set<EventType> builtin_event_types = { 71 const std::set<EventType>& GetTypes() { in GetTypes() 79 virtual const EventType* FindType(const std::string& name) { in FindType() 81 auto it = types.find(EventType(name, 0, 0, "", "")); in FindType() 92 std::set<EventType> types_; 129 const EventType* FindType(const std::string& name) override { in FindType() 130 if (auto it = types_.find(EventType(name, 0, 0, "", "")); it != types_.end()) { in FindType() 150 void RemoveType(const std::string& name) { types_.erase(EventType(name, 0, 0, "", "")); } in RemoveType() 200 const EventType* FindType(const std::string& name) override { in FindType() 304 const EventType* FindType(const std::string& name) override { in FindType() [all …]
|
D | event_attr.h | 30 struct EventType; 41 perf_event_attr CreateDefaultPerfEventAttr(const EventType& event_type);
|
D | test_util.cpp | 100 const simpleperf::EventType* type = simpleperf::FindEventTypeByName("instructions", false); in HasNonZeroInstructionEventCount() 135 const simpleperf::EventType* type = simpleperf::FindEventTypeByName("cpu-cycles", false); in HasHardwareCounter() 159 auto callback = [&](const simpleperf::EventType& event_type) { in HasPmuCounter()
|
D | event_selection_set.cpp | 43 const EventType* type = FindEventTypeByName("cpu-cycles"); in IsBranchSamplingSupported() 58 const EventType* type = FindEventTypeByName("cpu-clock"); in IsDwarfCallChainSamplingSupported() 76 const EventType* event_type = FindEventTypeByName("sched:sched_switch", false); in IsDumpingRegsForTracepointEventsSupported() 131 } else if (const EventType* type = FindEventTypeByName("cpu-clock"); type != nullptr) { in IsSettingClockIdSupported() 149 const EventType* type = FindEventTypeByName("cpu-clock"); in IsMmap2Supported() 159 const EventType* type = FindEventTypeByName("cpu-cycles"); in IsHardwareEventSupported() 337 std::vector<const EventType*> EventSelectionSet::GetEvents() const { in GetEvents() 338 std::vector<const EventType*> result; in GetEvents() 347 std::vector<const EventType*> EventSelectionSet::GetTracepointEvents() const { in GetTracepointEvents() 348 std::vector<const EventType*> result; in GetTracepointEvents()
|
D | tracing.h | 116 bool GetTracingData(const std::vector<const EventType*>& event_types, std::vector<char>* data); 124 std::optional<FieldNameSet> GetFieldNamesForTracepointEvent(const EventType& event);
|
D | ETMRecorder.h | 59 std::unique_ptr<EventType> BuildEventType();
|
D | MapRecordReader_test.cpp | 32 const EventType* event_type = FindEventTypeByName("cpu-clock"); in CreateMapRecordReader()
|
D | event_selection_set.h | 114 std::vector<const EventType*> GetEvents() const; 115 std::vector<const EventType*> GetTracepointEvents() const;
|
D | ETMRecorder.cpp | 101 std::unique_ptr<EventType> ETMRecorder::BuildEventType() { in BuildEventType() 106 return std::make_unique<EventType>("cs-etm", etm_event_type, 0, in BuildEventType()
|
D | event_attr.cpp | 80 perf_event_attr CreateDefaultPerfEventAttr(const EventType& event_type) { in CreateDefaultPerfEventAttr() 238 auto callback = [&](const EventType& event_type) { in GetEventNameByAttr()
|
D | profcollect.cpp | 45 const EventType* type = FindEventTypeByName("cs-etm", false); in HasDeviceSupport()
|
D | cmd_stat.cpp | 752 const EventType* event = FindEventTypeByName("cpu-cycles", true); in CheckHardwareCountersOnCpu() 818 const EventType* type = FindEventTypeByName(name); in AddDefaultMeasuredEventTypes() 933 for (const EventType* event : event_selection_set_.GetEvents()) { in CheckHardwareCounterMultiplexing() 963 for (const EventType* event : event_selection_set_.GetEvents()) { in PrintWarningForInaccurateEvents()
|
D | cmd_trace_sched.cpp | 194 const EventType* event = FindEventTypeByName("sched:sched_stat_runtime"); in ParseSchedEvents() 238 const EventType* event = FindEventTypeByName("sched:sched_stat_runtime"); in ProcessRecord()
|
D | record_lib_interface.cpp | 40 auto callback = [&](const EventType& type) { in GetAllEvents()
|
D | RecordReadThread_test.cpp | 117 const EventType* type = FindEventTypeByName("cpu-clock"); in TEST() 160 const EventType* type = FindEventTypeByName("cpu-clock"); in CreateFakeEventAttr() 480 const EventType* type = FindEventTypeByName("cs-etm"); in TEST_F()
|
D | record_test.cpp | 29 const EventType* type = FindEventTypeByName("cpu-clock"); in SetUp()
|
D | tracing.cpp | 421 bool GetTracingData(const std::vector<const EventType*>& event_types, std::vector<char>* data) { in GetTracingData() 623 std::optional<FieldNameSet> GetFieldNamesForTracepointEvent(const EventType& event) { in GetFieldNamesForTracepointEvent()
|
/system/core/fastboot/fuzzer/ |
D | socket_mock_fuzz.cpp | 29 if (events_.front().type != EventType::kSend) { in Send() 59 if (event.type != EventType::kReceive) { in Receive() 91 if (events_.front().type != EventType::kAccept) { in Accept() 101 events_.push(Event(EventType::kSend, std::move(message), true, nullptr)); in ExpectSend() 105 events_.push(Event(EventType::kSend, std::move(message), false, nullptr)); in ExpectSendFailure() 109 events_.push(Event(EventType::kReceive, std::move(message), false, nullptr)); in AddReceive() 113 events_.push(Event(EventType::kReceive, "", true, nullptr)); in AddReceiveTimeout() 117 events_.push(Event(EventType::kReceive, "", false, nullptr)); in AddReceiveFailure() 121 events_.push(Event(EventType::kAccept, "", false, std::move(sock))); in AddAccept() 124 SocketMockFuzz::Event::Event(EventType _type, std::string _message, ssize_t _status, in Event()
|
D | socket_mock_fuzz.h | 58 enum class EventType { kSend, kReceive, kAccept }; enum 61 Event(EventType _type, std::string _message, ssize_t _status, 64 EventType type;
|
/system/core/fastboot/ |
D | socket_mock.cpp | 47 if (events_.front().type != EventType::kSend) { in Send() 80 if (event.type != EventType::kReceive) { in Receive() 115 if (events_.front().type != EventType::kAccept) { in Accept() 126 events_.push(Event(EventType::kSend, std::move(message), true, nullptr)); in ExpectSend() 130 events_.push(Event(EventType::kSend, std::move(message), false, nullptr)); in ExpectSendFailure() 134 events_.push(Event(EventType::kReceive, std::move(message), false, nullptr)); in AddReceive() 138 events_.push(Event(EventType::kReceive, "", true, nullptr)); in AddReceiveTimeout() 142 events_.push(Event(EventType::kReceive, "", false, nullptr)); in AddReceiveFailure() 146 events_.push(Event(EventType::kAccept, "", false, std::move(sock))); in AddAccept() 149 SocketMock::Event::Event(EventType _type, std::string _message, ssize_t _status, in Event()
|
D | socket_mock.h | 83 enum class EventType { kSend, kReceive, kAccept }; enum 86 Event(EventType _type, std::string _message, ssize_t _status, 89 EventType type;
|
/system/core/fastboot/fuzzy_fastboot/ |
D | transport_sniffer.h | 52 enum EventType { enum 62 Event(EventType t, const std::vector<char> cbuf) : type(t), buf(cbuf) { in Event() 65 EventType type;
|
/system/teeui/libteeui/example/ |
D | touch_button_example.cpp | 53 if (e.event_ == EventType::KeyUp) { in tapOk() 61 if (e.event_ == EventType::KeyUp) { in tapCancel() 94 Event event{x, y, EventType::KeyUp}; in onEvent()
|