Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Devent_type.h40 struct EventType { struct
41 EventType(const std::string& name, uint32_t type, uint64_t config, in EventType() argument
47 EventType() : type(0), config(0) { in EventType() argument
50 bool operator<(const EventType& other) const {
67 static std::string BuildString(const std::vector<const EventType*>& event_types); argument
73 std::set<EventType> saved_event_types_;
76 const std::set<EventType>& GetAllEventTypes();
77 const EventType* FindEventTypeByName(const std::string& name, bool report_error = true);
81 EventType event_type;
Devent_type.cpp37 static const std::vector<EventType> static_event_type_array = {
65 static std::vector<EventType> GetTracepointEventTypesFromString(const std::string& s) { in GetTracepointEventTypesFromString()
66 std::vector<EventType> result; in GetTracepointEventTypesFromString()
73 result.push_back(EventType(event_name, PERF_TYPE_TRACEPOINT, id, "", "")); in GetTracepointEventTypesFromString()
78 static std::vector<EventType> GetTracepointEventTypesFromTraceFs() { in GetTracepointEventTypesFromTraceFs()
79 std::vector<EventType> result; in GetTracepointEventTypesFromTraceFs()
95 result.push_back(EventType(system_name + ":" + event_name, PERF_TYPE_TRACEPOINT, id, "", "")); in GetTracepointEventTypesFromTraceFs()
101 static std::vector<EventType> GetTracepointEventTypes() { in GetTracepointEventTypes()
102 std::vector<EventType> result; in GetTracepointEventTypes()
109 [](const EventType& type1, const EventType& type2) { return type1.name < type2.name; }); in GetTracepointEventTypes()
[all …]
Devent_attr.h27 struct EventType;
34 perf_event_attr CreateDefaultPerfEventAttr(const EventType& event_type);
Dcmd_list.cpp32 static bool IsEventTypeSupported(const EventType& event_type) { in IsEventTypeSupported()
72 const std::set<EventType>& event_types) { in PrintEventTypesOfType()
Devent_selection_set.cpp34 const EventType* type = FindEventTypeByName("cpu-cycles"); in IsBranchSamplingSupported()
45 const EventType* type = FindEventTypeByName("cpu-cycles"); in IsDwarfCallChainSamplingSupported()
59 const EventType* event_type = FindEventTypeByName("sched:sched_switch", false); in IsDumpingRegsForTracepointEventsSupported()
107 const EventType* type = FindEventTypeByName("cpu-cycles"); in IsSettingClockIdSupported()
123 const EventType* type = FindEventTypeByName("cpu-cycles"); in IsMmap2Supported()
232 std::vector<const EventType*> EventSelectionSet::GetEvents() const { in GetEvents()
233 std::vector<const EventType*> result; in GetEvents()
242 std::vector<const EventType*> EventSelectionSet::GetTracepointEvents() const { in GetTracepointEvents()
243 std::vector<const EventType*> result; in GetTracepointEvents()
Devent_selection_set.h96 std::vector<const EventType*> GetEvents() const;
97 std::vector<const EventType*> GetTracepointEvents() const;
Dtracing.h104 bool GetTracingData(const std::vector<const EventType*>& event_types,
Drecord_test.cpp27 const EventType* type = FindEventTypeByName("cpu-clock"); in SetUp()
Dcmd_trace_sched.cpp201 const EventType* event = FindEventTypeByName("sched:sched_stat_runtime"); in ParseSchedEvents()
245 const EventType* event = FindEventTypeByName("sched:sched_stat_runtime"); in ProcessRecord()
Devent_attr.cpp78 perf_event_attr CreateDefaultPerfEventAttr(const EventType& event_type) { in CreateDefaultPerfEventAttr()
DRecordReadThread_test.cpp124 const EventType* type = FindEventTypeByName("cpu-clock"); in CreateFakeEventAttr()
Dtracing.cpp409 bool GetTracingData(const std::vector<const EventType*>& event_types, in GetTracingData()
Dcmd_stat.cpp653 const EventType* type = FindEventTypeByName(name); in AddDefaultMeasuredEventTypes()
Dcmd_record_test.cpp73 const EventType* type = FindEventTypeByName(event_type); in CheckEventType()
Dcmd_record.cpp1075 std::vector<const EventType*> tracepoint_event_types = in DumpTracingData()
/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/
Dusb_transport_sniffer.h52 enum EventType { enum
62 Event(EventType t, const std::vector<char> cbuf) : type(t), buf(cbuf) { in Event()
65 EventType type;
/system/extras/perfprofd/
Dperf_profile.proto88 enum EventType { enum
93 optional EventType event = 1;
/system/netd/resolv/
Dstats.proto20 enum EventType { enum
227 optional EventType event_type = 1;
/system/core/adb/
Dsysdeps_win32.cpp1299 if (input_record->EventType == WINDOW_BUFFER_SIZE_EVENT) { in _get_key_event_record()
1304 if ((input_record->EventType == KEY_EVENT) && in _get_key_event_record()