Searched refs:timerFd (Results 1 - 6 of 6) sorted by relevance
/developtools/profiler/device/base/src/ |
H A D | schedule_task_manager.cpp | 56 for (const auto& [timerFd, func] : tasks_) { in Shutdown() 57 close(timerFd); in Shutdown() 66 int32_t timerFd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK); in ScheduleTask() local 67 if (timerFd == -1) { in ScheduleTask() 83 func = ([this, timerFd, callback] { this->HandleSingleTask(timerFd, callback); }); in ScheduleTask() 92 int32_t ret = timerfd_settime(timerFd, 0, &time, NULL); in ScheduleTask() 99 evt.data.fd = timerFd; in ScheduleTask() 101 epoll_ctl(epollFd_, EPOLL_CTL_ADD, timerFd, &evt); in ScheduleTask() 104 tasks_[timerFd] in ScheduleTask() 111 UnscheduleTask(const int32_t timerFd) UnscheduleTask() argument 117 UnscheduleTaskLockless(const int32_t timerFd) UnscheduleTaskLockless() argument 122 DeleteTask(const int32_t timerFd) DeleteTask() argument [all...] |
/developtools/profiler/device/base/include/ |
H A D | schedule_task_manager.h | 43 * @return If successful, it returns a timerFd greater than 0; if unsuccessful, it returns -1. 51 * @param timerFd The return value of interface ScheduleTask(). 54 bool UnscheduleTask(const int32_t timerFd); 55 bool UnscheduleTaskLockless(const int32_t timerFd); 62 bool DeleteTask(const int32_t timerFd);
|
/developtools/profiler/device/plugins/native_daemon/native_memory_profiler_sa/include/ |
H A D | native_memory_profiler_sa_service.h | 53 const std::string& filePath, int32_t timerFd, bool startupMode, uint32_t fd = 0) in TaskConfig() 54 : hookMgr(manager), pid(pid), processName(processName), filePath(filePath), timerFd(timerFd), in TaskConfig() 61 int32_t timerFd{-1};
|
/developtools/profiler/device/plugins/native_daemon/native_memory_profiler_sa/src/ |
H A D | native_memory_profiler_sa_service.cpp | 149 scheduleTaskManager_.UnscheduleTaskLockless(config->timerFd); in StopHook() 151 scheduleTaskManager_.UnscheduleTask(config->timerFd); in StopHook() 222 int32_t timerFd = scheduleTaskManager_.ScheduleTask( in StartHook() local 226 if (timerFd == -1) { in StartHook() 232 std::make_shared<TaskConfig>(hook, config->pid_, config->processName_, config->filePath_, timerFd, in StartHook() 379 int32_t timerFd = scheduleTaskManager_.ScheduleTask( in DelayedShutdown() local 390 if (timerFd == -1) { in DelayedShutdown() 394 delayedShutdownTimerFd_ = timerFd; in DelayedShutdown()
|
/developtools/profiler/device/plugins/api/src/ |
H A D | plugin_manager.cpp | 305 int32_t timerFd = scheduleTaskManager_.ScheduleTask(callback, config[idx].sample_interval()); in StartPluginSession() local 306 if (timerFd == -1) { in StartPluginSession() 310 scheduleTask_[config[idx].name()] = timerFd; in StartPluginSession()
|
/developtools/profiler/device/plugins/native_daemon/src/ |
H A D | stack_preprocess.cpp | 181 int32_t timerFd = scheduleTaskManager_.ScheduleTask( in StopTakeResults() local 183 if (timerFd == -1) { in StopTakeResults()
|
Completed in 5 milliseconds