Home
last modified time | relevance | path

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

12

/system/extras/simpleperf/
Devent_type.h36 struct EventType { struct
37 EventType(const std::string& name, uint32_t type, uint64_t config, const std::string& description, in EventType() argument
45 EventType() : type(0), config(0) {} in EventType() function
47 bool operator<(const EventType& other) const {
66 static std::string BuildString(const std::vector<const EventType*>& event_types); argument
74 EventType event_type;
106 bool ForEachType(const std::function<bool(const EventType&)>& callback);
107 const EventType* FindType(const std::string& name);
108 const EventType* AddRawType(const std::string& name);
125 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.h29 struct EventType;
36 perf_event_attr CreateDefaultPerfEventAttr(const EventType& event_type);
Dtest_util.cpp54 const simpleperf::EventType* type = simpleperf::FindEventTypeByName("instructions", false); in HasNonZeroInstructionEventCount()
83 const simpleperf::EventType* type = simpleperf::FindEventTypeByName("cpu-cycles", false); in HasHardwareCounter()
104 auto callback = [&](const simpleperf::EventType& event_type) { in HasPmuCounter()
Dtracing.h114 bool GetTracingData(const std::vector<const EventType*>& event_types, std::vector<char>* data);
122 std::optional<FieldNameSet> GetFieldNamesForTracepointEvent(const EventType& event);
Devent_selection_set.cpp43 const EventType* type = FindEventTypeByName("cpu-cycles"); in IsBranchSamplingSupported()
54 const EventType* type = FindEventTypeByName("cpu-clock"); in IsDwarfCallChainSamplingSupported()
72 const EventType* event_type = FindEventTypeByName("sched:sched_switch", false); in IsDumpingRegsForTracepointEventsSupported()
123 const EventType* type = FindEventTypeByName("cpu-clock"); in IsSettingClockIdSupported()
139 const EventType* type = FindEventTypeByName("cpu-clock"); in IsMmap2Supported()
286 std::vector<const EventType*> EventSelectionSet::GetEvents() const { in GetEvents()
287 std::vector<const EventType*> result; in GetEvents()
296 std::vector<const EventType*> EventSelectionSet::GetTracepointEvents() const { in GetTracepointEvents()
297 std::vector<const EventType*> result; in GetTracepointEvents()
DETMRecorder.h56 std::unique_ptr<EventType> BuildEventType();
Dprofcollect.cpp31 const EventType* type = FindEventTypeByName("cs-etm", false); in HasSupport()
DMapRecordReader_test.cpp32 const EventType* event_type = FindEventTypeByName("cpu-clock"); in CreateMapRecordReader()
DETMRecorder.cpp102 std::unique_ptr<EventType> ETMRecorder::BuildEventType() { in BuildEventType()
107 return std::make_unique<EventType>("cs-etm", etm_event_type, 0, in BuildEventType()
Devent_selection_set.h112 std::vector<const EventType*> GetEvents() const;
113 std::vector<const EventType*> GetTracepointEvents() const;
Devent_attr.cpp80 perf_event_attr CreateDefaultPerfEventAttr(const EventType& event_type) { in CreateDefaultPerfEventAttr()
236 auto callback = [&](const EventType& event_type) { in GetEventNameByAttr()
Drecord_test.cpp29 const EventType* type = FindEventTypeByName("cpu-clock"); in SetUp()
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()
DRecordFilter_test.cpp35 const EventType* event_type = FindEventTypeByName("cpu-clock"); in SetUp()
Drecord_lib_interface.cpp40 auto callback = [&](const EventType& type) { in GetAllEvents()
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()
DRecordReadThread_test.cpp141 const EventType* type = FindEventTypeByName("cpu-clock"); in CreateFakeEventAttr()
460 const EventType* type = FindEventTypeByName("cs-etm"); in TEST_F()
Dcmd_stat.cpp739 const EventType* type = FindEventTypeByName(name); in AddDefaultMeasuredEventTypes()
/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()
/system/teeui/libteeui/include/teeui/
Dutils.h862 enum class EventType : uint8_t {
871 EventType event_;

12