Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Devent_type.h32 struct EventType { struct
33 EventType(const std::string& name, uint32_t type, uint64_t config, in EventType() function
39 EventType() : type(0), config(0) { in EventType() function
42 bool operator<(const EventType& other) const {
65 static std::string BuildString(const std::vector<const EventType*>& event_types); argument
71 std::set<EventType> saved_event_types_;
75 const std::set<EventType>& GetAllEventTypes();
76 const EventType* FindEventTypeByName(const std::string& name, bool report_error = true);
80 EventType event_type;
Dcmd_list.cpp43 static EventTypeStatus IsEventTypeSupported(const EventType& event_type) { in IsEventTypeSupported()
89 const std::function<bool(const EventType&)>& is_type_fn, in PrintEventTypesOfType()
90 const std::set<EventType>& event_types) { in PrintEventTypesOfType()
159 static std::map<std::string, std::pair<std::string, std::function<bool(const EventType&)>>> in Run()
162 {"hardware events", [](const EventType& e) { return e.type == PERF_TYPE_HARDWARE; }}}, in Run()
164 {"software events", [](const EventType& e) { return e.type == PERF_TYPE_SOFTWARE; }}}, in Run()
166 {"hw-cache events", [](const EventType& e) { return e.type == PERF_TYPE_HW_CACHE; }}}, in Run()
169 [](const EventType& e) { return e.type == PERF_TYPE_RAW; }}}, in Run()
172 [](const EventType& e) { return e.type == PERF_TYPE_TRACEPOINT; }}}, in Run()
176 [](const EventType& e) { in Run()
[all …]
Devent_type.cpp51 static const std::vector<EventType> static_event_type_array = {
56 static std::set<EventType> g_event_types;
81 static std::vector<EventType> GetTracepointEventTypesFromString(const std::string& s) { in GetTracepointEventTypesFromString()
82 std::vector<EventType> result; in GetTracepointEventTypesFromString()
89 result.push_back(EventType(event_name, PERF_TYPE_TRACEPOINT, id, "", "")); in GetTracepointEventTypesFromString()
94 static std::vector<EventType> GetTracepointEventTypesFromTraceFs() { in GetTracepointEventTypesFromTraceFs()
95 std::vector<EventType> result; in GetTracepointEventTypesFromTraceFs()
115 result.push_back(EventType(system_name + ":" + event_name, PERF_TYPE_TRACEPOINT, id, "", "")); in GetTracepointEventTypesFromTraceFs()
121 static std::vector<EventType> GetTracepointEventTypes() { in GetTracepointEventTypes()
122 std::vector<EventType> result; in GetTracepointEventTypes()
[all …]
Devent_attr.h27 struct EventType;
34 perf_event_attr CreateDefaultPerfEventAttr(const EventType& event_type);
Dtracing.h106 bool GetTracingData(const std::vector<const EventType*>& event_types,
115 std::optional<FieldNameSet> GetFieldNamesForTracepointEvent(const EventType& event);
Devent_selection_set.cpp41 const EventType* type = FindEventTypeByName("cpu-cycles"); in IsBranchSamplingSupported()
52 const EventType* type = FindEventTypeByName("cpu-clock"); in IsDwarfCallChainSamplingSupported()
66 const EventType* event_type = FindEventTypeByName("sched:sched_switch", false); in IsDumpingRegsForTracepointEventsSupported()
113 const EventType* type = FindEventTypeByName("cpu-clock"); in IsSettingClockIdSupported()
129 const EventType* type = FindEventTypeByName("cpu-clock"); in IsMmap2Supported()
280 std::vector<const EventType*> EventSelectionSet::GetEvents() const { in GetEvents()
281 std::vector<const EventType*> result; in GetEvents()
290 std::vector<const EventType*> EventSelectionSet::GetTracepointEvents() const { in GetTracepointEvents()
291 std::vector<const EventType*> result; in GetTracepointEvents()
DETMRecorder.h56 std::unique_ptr<EventType> BuildEventType();
Dprofcollect.cpp32 const EventType* type = FindEventTypeByName("cs-etm", false); in HasSupport()
DETMRecorder.cpp101 std::unique_ptr<EventType> ETMRecorder::BuildEventType() { in BuildEventType()
106 return std::make_unique<EventType>( in BuildEventType()
Devent_selection_set.h110 std::vector<const EventType*> GetEvents() const;
111 std::vector<const EventType*> GetTracepointEvents() const;
Drecord_test.cpp27 const EventType* type = FindEventTypeByName("cpu-clock"); in SetUp()
Dcmd_trace_sched.cpp191 const EventType* event = FindEventTypeByName("sched:sched_stat_runtime"); in ParseSchedEvents()
235 const EventType* event = FindEventTypeByName("sched:sched_stat_runtime"); in ProcessRecord()
Devent_attr.cpp78 perf_event_attr CreateDefaultPerfEventAttr(const EventType& event_type) { in CreateDefaultPerfEventAttr()
Dtracing.cpp407 bool GetTracingData(const std::vector<const EventType*>& event_types, in GetTracingData()
610 std::optional<FieldNameSet> GetFieldNamesForTracepointEvent(const EventType& event) { in GetFieldNamesForTracepointEvent()
DRecordReadThread_test.cpp141 const EventType* type = FindEventTypeByName("cpu-clock"); in CreateFakeEventAttr()
456 const EventType* type = FindEventTypeByName("cs-etm"); in TEST_F()
Dcmd_record_test.cpp96 const EventType* type = FindEventTypeByName(event_type); in CheckEventType()
300 const EventType* type = FindEventTypeByName("instructions", false); in HasNonZeroInstructionEventCount()
Dcmd_record.cpp1087 std::vector<const EventType*> events = event_selection_set_.GetEvents(); in TraceOffCpu()
1160 std::vector<const EventType*> tracepoint_event_types = in DumpTracingData()
Dcmd_stat.cpp752 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/bt/gd/hci/
Dle_scanning_manager.cc97 template <class EventType, class ReportStructType, class ReportType>
98 void handle_advertising_report(EventType event_view) { in handle_advertising_report()
/system/teeui/libteeui/include/teeui/
Dutils.h862 enum class EventType : uint8_t {
871 EventType event_;
/system/core/adb/
Dsysdeps_win32.cpp1386 if (input_record->EventType == WINDOW_BUFFER_SIZE_EVENT) { in _get_key_event_record()
1391 if ((input_record->EventType == KEY_EVENT) && in _get_key_event_record()