Home
last modified time | relevance | path

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

123456

/base/hiviewdfx/hitrace/cmd/config/
Dhitrace.rc25 # ftrace events
26 chmod 0666 /sys/kernel/debug/tracing/events/binder/binder_lock/enable
27 chmod 0666 /sys/kernel/debug/tracing/events/binder/binder_locked/enable
28 chmod 0666 /sys/kernel/debug/tracing/events/binder/binder_unlock/enable
29 chmod 0666 /sys/kernel/debug/tracing/events/binder/binder_transaction/enable
30 chmod 0666 /sys/kernel/debug/tracing/events/binder/binder_transaction_received/enable
31 chmod 0666 /sys/kernel/debug/tracing/events/binder/binder_transaction_alloc_buf/enable
33 chmod 0666 /sys/kernel/debug/tracing/events/cgroup/enable
34 chmod 0666 /sys/kernel/debug/tracing/events/cpufreq_interactive/enable
35 chmod 0666 /sys/kernel/debug/tracing/events/dma_fence/enable
[all …]
Dhitrace.cfg21 "chmod 0755 /sys/kernel/debug/tracing/events",
22 "chmod 0755 /sys/kernel/debug/tracing/events/binder/",
23 "chmod 0755 /sys/kernel/debug/tracing/events/binder/binder_lock/",
24 "chmod 0755 /sys/kernel/debug/tracing/events/binder/binder_locked/",
25 "chmod 0755 /sys/kernel/debug/tracing/events/binder/binder_unlock/",
26 "chmod 0755 /sys/kernel/debug/tracing/events/binder/binder_transaction/",
27 "chmod 0755 /sys/kernel/debug/tracing/events/binder/binder_transaction_received/",
28 "chmod 0755 /sys/kernel/debug/tracing/events/binder/binder_transaction_alloc_buf/",
29 "chmod 0666 /sys/kernel/debug/tracing/events/binder/binder_lock/enable",
30 "chmod 0666 /sys/kernel/debug/tracing/events/binder/binder_locked/enable",
[all …]
/base/startup/init/services/modules/trace/
Dinit_trace.cfg10 "events/f2fs/f2fs_sync_file_enter/enable",
11 "events/f2fs/f2fs_sync_file_exit/enable",
12 "events/f2fs/f2fs_write_begin/enable",
13 "events/f2fs/f2fs_write_end/enable",
14 "events/ext4/ext4_da_write_begin/enable",
15 "events/ext4/ext4_da_write_end/enable",
16 "events/ext4/ext4_sync_file_enter/enable",
17 "events/ext4/ext4_sync_file_exit/enable",
18 "events/block/block_rq_issue/enable",
19 "events/block/block_rq_complete/enable"
[all …]
/base/startup/init/test/unittest/modules/
Dsysevent_unittest.cpp30 extern void ReportBootEventComplete(ListNode *events);
33 static void AddBootEvent(ListNode *events, const char *name, int32_t type) in AddBootEvent() argument
48 OH_ListAddTail(events, (ListNode *)&item->node); in AddBootEvent()
79 ListNode events = { &events, &events }; variable
81 ReportBootEventComplete(&events);
86 ListNode events = { &events, &events }; variable
88 AddBootEvent(&events, "bootevent.11111.xxxx", BOOTEVENT_TYPE_JOB);
89 AddBootEvent(&events, "bootevent.22222222.xxxx", BOOTEVENT_TYPE_SERVICE);
90 AddBootEvent(&events, "bootevent.33333333333.xxxx", BOOTEVENT_TYPE_SERVICE);
91 AddBootEvent(&events, "bootevent.44444444444444", BOOTEVENT_TYPE_SERVICE);
[all …]
/base/startup/init/services/loopevent/task/
Dle_watchtask.c24 uint32_t events = oper; in HandleWatcherEvent_() local
27 watcher->processEvent(taskHandle, fd, &events, (void *)userData); in HandleWatcherEvent_()
32 loop->delEvent(loop, fd, watcher->events); in HandleWatcherEvent_()
35 if (events == 0) { in HandleWatcherEvent_()
36 loop->delEvent(loop, fd, watcher->events); in HandleWatcherEvent_()
39 if (events != watcher->events) { in HandleWatcherEvent_()
40 watcher->events = events; in HandleWatcherEvent_()
41 loop->modEvent(loop, (const BaseTask *)taskHandle, watcher->events); in HandleWatcherEvent_()
64 task->events = info->events; in LE_StartWatcher()
68 loop->addEvent(loop, (const BaseTask *)task, info->events); in LE_StartWatcher()
/base/notification/eventhandler/frameworks/eventhandler/src/
Depoll_io_waiter.cpp37 .events = epollEvents, in EpollCtrl()
147 uint32_t events = 0; in WaitFor() local
148 if ((epollEvents[i].events & EPOLLIN) != 0) { in WaitFor()
149 events |= FILE_DESCRIPTOR_INPUT_EVENT; in WaitFor()
152 if ((epollEvents[i].events & EPOLLOUT) != 0) { in WaitFor()
153 events |= FILE_DESCRIPTOR_OUTPUT_EVENT; in WaitFor()
156 if ((epollEvents[i].events & (EPOLLHUP)) != 0) { in WaitFor()
157 events |= FILE_DESCRIPTOR_SHUTDOWN_EVENT; in WaitFor()
160 if ((epollEvents[i].events & (EPOLLERR)) != 0) { in WaitFor()
161 events |= FILE_DESCRIPTOR_EXCEPTION_EVENT; in WaitFor()
[all …]
Devent_queue.cpp31 inline void InsertEventsLocked(std::list<InnerEvent::Pointer> &events, InnerEvent::Pointer &event) in InsertEventsLocked() argument
39 auto it = std::upper_bound(events.begin(), events.end(), event, f); in InsertEventsLocked()
40 events.insert(it, std::move(event)); in InsertEventsLocked()
62 inline bool CheckEventInListLocked(const std::list<InnerEvent::Pointer> &events, const InnerEvent::… in CheckEventInListLocked() argument
65 if (!events.empty()) { in CheckEventInListLocked()
66 const auto &handleTime = events.front()->GetHandleTime(); in CheckEventInListLocked()
76 inline InnerEvent::Pointer PopFrontEventFromListLocked(std::list<InnerEvent::Pointer> &events) in PopFrontEventFromListLocked() argument
78 InnerEvent::Pointer event = std::move(events.front()); in PopFrontEventFromListLocked()
79 events.pop_front(); in PopFrontEventFromListLocked()
375 … int32_t fileDescriptor, uint32_t events, const std::shared_ptr<FileDescriptorListener> &listener) in AddFileDescriptorListener() argument
[all …]
/base/hiviewdfx/hiview/plugins/sysevent_source/
Dsys_event_stat.cpp52 std::map<std::string, int64_t> events; in AddValidEvent() local
53 events[eventName] = 1; in AddValidEvent()
54 d2es_[domain] = events; in AddValidEvent()
58 std::map<std::string, int64_t> &events = it->second; in AddValidEvent() local
59 auto eIt = events.find(eventName); in AddValidEvent()
60 if (eIt == events.end()) { in AddValidEvent()
61 events[eventName] = 1; in AddValidEvent()
65 events[eventName] = events[eventName] + 1; in AddValidEvent()
168 int64_t SysEventSummaryStat::GetEventCount(std::map<std::string, int64_t> &events) const in GetEventCount()
171 for (auto it = events.begin(); it != events.end(); it++) { in GetEventCount()
[all …]
/base/notification/eventhandler/frameworks/eventhandler/test/unittest/
Dlib_event_epoll_io_waiter_test.cpp77 uint32_t events = 1; variable
78 bool result = epollIoWaiter.AddFileDescriptor(fileDescriptor, events);
97 uint32_t events = 0; variable
98 bool result = epollIoWaiter.AddFileDescriptor(fileDescriptor, events);
117 uint32_t events = 1; variable
118 bool result = epollIoWaiter.AddFileDescriptor(fileDescriptor, events);
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/
Dusage_event_cacher.cpp28 void UsageEventCacher::GetPluginStatsEvents(std::vector<std::shared_ptr<LoggerEvent>>& events) const in GetPluginStatsEvents()
30 if (dbHelper_->QueryPluginStatsEvent(events) < 0) { in GetPluginStatsEvents()
48 std::vector<std::shared_ptr<LoggerEvent>> events; in DeletePluginStatsEventsFromDb() local
49 if (dbHelper_->QueryPluginStatsEvent(events) >= 0) { in DeletePluginStatsEventsFromDb()
62 …entCacher::SavePluginStatsEventsToDb(const std::vector<std::shared_ptr<LoggerEvent>>& events) const in SavePluginStatsEventsToDb()
65 for (auto event : events) { in SavePluginStatsEventsToDb()
/base/notification/common_event_service/services/test/unittest/
Dcommon_event_hisysevent_test.cpp163 std::vector<std::string> events = {"event1", "event2", "event3"}; in HWTEST_F() local
164 eventInfo.eventName = std::accumulate(events.begin(), events.end(), eventInfo.eventName, in HWTEST_F()
165 [events](std::string eventName, const std::string &str) { in HWTEST_F()
166 return (str == events.front()) ? (eventName + str) : (eventName + "," + str); in HWTEST_F()
197 std::vector<std::string> events = {"event1_1", "event1_2", "event1_3"}; in HWTEST_F() local
198 eventInfo.eventName = std::accumulate(events.begin(), events.end(), eventInfo.eventName, in HWTEST_F()
199 [events](std::string eventName, const std::string &str) { in HWTEST_F()
200 return (str == events.front()) ? (eventName + str) : (eventName + "," + str); in HWTEST_F()
/base/hiviewdfx/hiview/base/event_report/cache/
Dhiview_event_cacher.cpp24 void HiviewEventCacher::AddPluginStatsEvent(const std::vector<std::shared_ptr<LoggerEvent>>& events) in AddPluginStatsEvent() argument
27 for (auto event : events) { in AddPluginStatsEvent()
35 void HiviewEventCacher::GetPluginStatsEvents(std::vector<std::shared_ptr<LoggerEvent>>& events) in GetPluginStatsEvents() argument
39 events.push_back(entry.second); in GetPluginStatsEvents()
/base/powermgr/thermal_manager/application/protector/src/
Dthermal_protector_timer.cpp75 ev.events = EPOLLIN; in RegisterCallback()
77 ev.events |= EPOLLWAKEUP; in RegisterCallback()
144 struct epoll_event events[eventct]; in LoopingThreadEntry() local
150 int32_t nevents = epoll_wait(epfd, events, eventct, -1); in LoopingThreadEntry()
155 if (events[n].data.ptr) { in LoopingThreadEntry()
157 (callbackHandler_.find(events[n].data.fd)->second)(func, arg); in LoopingThreadEntry()
/base/powermgr/battery_manager/charger/src/
Dbattery_thread.cpp72 ev.events = EPOLLIN; in RegisterCallback()
74 ev.events |= EPOLLWAKEUP; in RegisterCallback()
175 struct epoll_event events[size]; in LoopingThreadEntry() local
190 nevents = epoll_wait(epFd_, events, static_cast<int32_t>(size), timeout); in LoopingThreadEntry()
196 if (events[n].data.ptr) { in LoopingThreadEntry()
198 (callbacks_.find(events[n].data.fd)->second)(func, arg); in LoopingThreadEntry()
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
Ddata_share_dao.cpp66 int DataShareDao::SaveSubscriberInfo(int32_t uid, const std::string& events) in SaveSubscriberInfo() argument
80 values.PutString(EventTable::FIELD_EVENTLIST, events); in SaveSubscriberInfo()
93 valuesBucket.PutString(EventTable::FIELD_EVENTLIST, events); in SaveSubscriberInfo()
121 int DataShareDao::GetEventListByUid(int32_t uid, std::string& events) in GetEventListByUid() argument
140 resultSet->GetString(0, events); // 0 means eventList in GetEventListByUid()
192 std::string events; in GetTotalSubscriberInfo() local
193 resultSet->GetString(1, events); // 1 means events field in GetTotalSubscriberInfo()
194 map.insert(std::make_pair(uid, events)); in GetTotalSubscriberInfo()
Ddata_publisher.cpp64 std::string events; in AddSubscriber() local
66 auto ret = dataShareDao->GetEventListByUid(uid, events); in AddSubscriber()
72 StringUtil::SplitStr(events, ";", oldEventList); in AddSubscriber()
90 std::string events; in RemoveSubscriber() local
92 auto ret = dataShareDao->GetEventListByUid(uid, events); in RemoveSubscriber()
97 if (events.empty()) { in RemoveSubscriber()
102 StringUtil::SplitStr(events, ";", eventList); in RemoveSubscriber()
125 std::string events = it->second; in InitSubscriber() local
127 StringUtil::SplitStr(events, ";", eventList); in InitSubscriber()
/base/hiviewdfx/hiview/plugins/usage_event_report/service/
Dusage_event_report_service.cpp63 std::vector<std::unique_ptr<LoggerEvent>> events; in ReportAppUsage() local
64 factory->Create(events); in ReportAppUsage()
65 for (size_t i = 0; i < events.size(); ++i) { in ReportAppUsage()
66 events[i]->Report(); in ReportAppUsage()
67 HIVIEW_LOGI("report app usage event=%{public}s", events[i]->ToJsonString().c_str()); in ReportAppUsage()
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
Dnapi_app_event_holder.cpp112 …NapiUtil::SetNamedProperty(env, packageObj, "data", NapiUtil::CreateStrings(env, package->events)); in NapiTakeNext()
129 std::vector<std::string> events; in TakeNext() local
130 int result = block->Take(takeSize_, events); in TakeNext()
137 package->row = static_cast<int>(events.size()); in TakeNext()
139 package->events = events; in TakeNext()
/base/startup/init/services/loopevent/loop/
Dle_epoll.c29 event->events = EPOLLIN; in GetEpollEvent_()
32 event->events = EPOLLOUT; in GetEpollEvent_()
101 if ((epoll->waitEvents[index].events & EPOLLIN) == EPOLLIN) { in RunLoop_()
104 if ((epoll->waitEvents[index].events & EPOLLOUT) == EPOLLOUT) { in RunLoop_()
107 if ((epoll->waitEvents[index].events & EPOLLERR) == EPOLLERR) { in RunLoop_()
111 if ((epoll->waitEvents[index].events & EPOLLHUP) == EPOLLHUP) { in RunLoop_()
/base/notification/common_event_service/services/src/
Dcommon_event_subscriber_manager.cpp55 std::vector<std::string> events = eventSubscribeInfo->GetMatchingSkills().GetEvents(); in InsertSubscriber() local
56 if (events.size() == 0 || events.size() > SUBSCRIBE_EVENT_MAX_NUM) { in InsertSubscriber()
76 if (!InsertSubscriberRecordLocked(events, record)) { in InsertSubscriber()
158 std::string events = format + "\tEvent: "; in DumpDetailed() local
167events = events + separator + record->eventSubscribeInfo->GetMatchingSkills().GetEvent(eventNum); in DumpDetailed()
169 events = events + "\n"; in DumpDetailed()
195 std::string matchingSkills = format + "MatchingSkills:\n" + events + entities + scheme; in DumpDetailed()
242 const std::vector<std::string> &events, const SubscriberRecordPtr &record) in InsertSubscriberRecordLocked() argument
246 if (events.size() == 0) { in InsertSubscriberRecordLocked()
258 for (auto event : events) { in InsertSubscriberRecordLocked()
[all …]
/base/hiviewdfx/hiview/base/event_report/cache/include/
Dhiview_event_cacher.h32 void AddPluginStatsEvent(const std::vector<std::shared_ptr<LoggerEvent>>& events);
33 void GetPluginStatsEvents(std::vector<std::shared_ptr<LoggerEvent>>& events);
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/test/unittest/common/
Ddata_share_test.cpp107 std::string events = "event1;event2"; variable
108 auto result = dataShareDao->SaveSubscriberInfo(uid, events);
121 events = "event1;event3";
122 result = dataShareDao->SaveSubscriberInfo(uid, events);
163 std::vector<std::string> events { "TEST_EVENT_NAME1", "TEST_EVENT_NAME2" }; variable
165 auto ret = dataPublisher->AddSubscriber(uid, events);
176 ret = dataPublisher->AddSubscriber(uid, events);
/base/notification/common_event_service/services/test/unittest/static_subscriber_manager_unit_test/
Dstatic_subscriber_manager_unit_test.cpp130 std::set<std::string> events; variable
131 events.insert(expectEventName);
132 StaticSubscriber subscribers = { .events = events, .enable = true };
617 std::set<std::string> events; variable
618 events.insert(expectEventName0);
619 events.insert(expectEventName1);
620 StaticSubscriber subscribers = { .events = events, .enable = true };
683 std::set<std::string> events; variable
684 events.insert(expectEventName1);
685 StaticSubscriber subscribers = { .events = events, .enable = true };
[all …]
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/include/
Ddata_share_dao.h35 int SaveSubscriberInfo(int32_t uid, const std::string &events);
38 int GetEventListByUid(int32_t uid, std::string &events);
/base/msdp/device_status/libs/src/
Ddevicestatus_msdp_mock.cpp203 ev.events = EPOLLIN; in RegisterTimerCallback()
205 ev.events |= EPOLLWAKEUP; in RegisterTimerCallback()
233 struct epoll_event events[cbct]; in LoopingThreadEntry() local
236 int32_t nevents = epoll_wait(epFd_, events, cbct, timeout); in LoopingThreadEntry()
242 if (events[n].data.ptr) { in LoopingThreadEntry()
244 (callbacks_.find(events[n].data.fd)->second)(func); in LoopingThreadEntry()

123456