Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Devent_type.h30 struct EventType { struct
31 EventType(const std::string& name, uint32_t type, uint64_t config) in EventType() function
35 EventType() : type(0), config(0) { in EventType() function
43 const std::vector<EventType>& GetAllEventTypes(); argument
44 const EventType* FindEventTypeByConfig(uint32_t type, uint64_t config);
45 const EventType* FindEventTypeByName(const std::string& name);
49 EventType event_type;
Devent_type.cpp32 static const std::vector<EventType> static_event_type_array = {
36 static const std::vector<EventType> GetTracepointEventTypes() { in GetTracepointEventTypes()
37 std::vector<EventType> result; in GetTracepointEventTypes()
57 result.push_back(EventType(system_name + ":" + event_name, PERF_TYPE_TRACEPOINT, id)); in GetTracepointEventTypes()
61 [](const EventType& type1, const EventType& type2) { return type1.name < type2.name; }); in GetTracepointEventTypes()
65 const std::vector<EventType>& GetAllEventTypes() { in GetAllEventTypes()
66 static std::vector<EventType> event_type_array; in GetAllEventTypes()
70 const std::vector<EventType> tracepoint_array = GetTracepointEventTypes(); in GetAllEventTypes()
77 const EventType* FindEventTypeByConfig(uint32_t type, uint64_t config) { in FindEventTypeByConfig()
86 const EventType* FindEventTypeByName(const std::string& name) { in FindEventTypeByName()
[all …]
Devent_attr.h24 struct EventType;
26 perf_event_attr CreateDefaultPerfEventAttr(const EventType& event_type);
Devent_attr.cpp77 perf_event_attr CreateDefaultPerfEventAttr(const EventType& event_type) { in CreateDefaultPerfEventAttr()
104 const EventType* event_type = FindEventTypeByConfig(attr.type, attr.config); in DumpPerfEventAttr()
Dcmd_list.cpp31 const std::vector<EventType>& event_types) { in PrintEventTypesOfType()
Devent_selection_set.cpp30 const EventType* type = FindEventTypeByName("cpu-cycles"); in IsBranchSamplingSupported()
41 const EventType* type = FindEventTypeByName("cpu-cycles"); in IsDwarfCallChainSamplingSupported()
Drecord_test.cpp27 const EventType* type = FindEventTypeByName("cpu-cycles"); in SetUp()
Devent_fd.cpp49 const EventType* event_type = FindEventTypeByConfig(perf_attr.type, perf_attr.config); in OpenEventFile()
Dcmd_stat.cpp247 const EventType* type = FindEventTypeByName(name); in AddDefaultMeasuredEventTypes()
Dcmd_report.cpp689 const EventType* event_type = FindEventTypeByConfig(event_attr_.type, event_attr_.config); in PrintReportContext()
/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.h84 enum class EventType { kSend, kReceive, kAccept }; enum
87 Event(EventType _type, std::string _message, ssize_t _status,
90 EventType type;
/system/extras/perfprofd/
Dperf_profile.proto77 enum EventType { enum
82 optional EventType event = 1;
/system/core/adb/
Dsysdeps_win32.cpp1375 if (input_record->EventType == WINDOW_BUFFER_SIZE_EVENT) { in _get_key_event_record()
1380 if ((input_record->EventType == KEY_EVENT) && in _get_key_event_record()