Home
last modified time | relevance | path

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

12

/system/extras/simpleperf/
Devent_type.h38 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);
Dcmd_list.cpp42 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 …]
Devent_type.cpp50 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 …]
Devent_attr.h30 struct EventType;
41 perf_event_attr CreateDefaultPerfEventAttr(const EventType& event_type);
Dtest_util.cpp100 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()
Devent_selection_set.cpp43 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()
Dtracing.h116 bool GetTracingData(const std::vector<const EventType*>& event_types, std::vector<char>* data);
124 std::optional<FieldNameSet> GetFieldNamesForTracepointEvent(const EventType& event);
DETMRecorder.h59 std::unique_ptr<EventType> BuildEventType();
DMapRecordReader_test.cpp32 const EventType* event_type = FindEventTypeByName("cpu-clock"); in CreateMapRecordReader()
Devent_selection_set.h114 std::vector<const EventType*> GetEvents() const;
115 std::vector<const EventType*> GetTracepointEvents() const;
DETMRecorder.cpp101 std::unique_ptr<EventType> ETMRecorder::BuildEventType() { in BuildEventType()
106 return std::make_unique<EventType>("cs-etm", etm_event_type, 0, in BuildEventType()
Devent_attr.cpp80 perf_event_attr CreateDefaultPerfEventAttr(const EventType& event_type) { in CreateDefaultPerfEventAttr()
238 auto callback = [&](const EventType& event_type) { in GetEventNameByAttr()
Dprofcollect.cpp45 const EventType* type = FindEventTypeByName("cs-etm", false); in HasDeviceSupport()
Dcmd_stat.cpp752 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()
Dcmd_trace_sched.cpp194 const EventType* event = FindEventTypeByName("sched:sched_stat_runtime"); in ParseSchedEvents()
238 const EventType* event = FindEventTypeByName("sched:sched_stat_runtime"); in ProcessRecord()
Drecord_lib_interface.cpp40 auto callback = [&](const EventType& type) { in GetAllEvents()
DRecordReadThread_test.cpp117 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()
Drecord_test.cpp29 const EventType* type = FindEventTypeByName("cpu-clock"); in SetUp()
Dtracing.cpp421 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/
Dsocket_mock_fuzz.cpp29 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()
Dsocket_mock_fuzz.h58 enum class EventType { kSend, kReceive, kAccept }; enum
61 Event(EventType _type, std::string _message, ssize_t _status,
64 EventType type;
/system/core/fastboot/
Dsocket_mock.cpp47 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()
Dsocket_mock.h83 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/
Dtransport_sniffer.h52 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/
Dtouch_button_example.cpp53 if (e.event_ == EventType::KeyUp) { in tapOk()
61 if (e.event_ == EventType::KeyUp) { in tapCancel()
94 Event event{x, y, EventType::KeyUp}; in onEvent()

12