Home
last modified time | relevance | path

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

123

/ohos5.0/base/startup/init/interfaces/innerkits/init_module_engine/include/
H A Dbootstage.h59 __attribute__((always_inline)) inline int InitAddGlobalInitHook(int prio, OhosHook hook) in InitAddGlobalInitHook() argument
61 return HookMgrAdd(GetBootStageHookMgr(), INIT_GLOBAL_INIT, prio, hook); in InitAddGlobalInitHook()
64 __attribute__((always_inline)) inline int InitAddPreParamServiceHook(int prio, OhosHook hook) in InitAddPreParamServiceHook() argument
66 return HookMgrAdd(GetBootStageHookMgr(), INIT_PRE_PARAM_SERVICE, prio, hook); in InitAddPreParamServiceHook()
69 __attribute__((always_inline)) inline int InitAddPreParamLoadHook(int prio, OhosHook hook) in InitAddPreParamLoadHook() argument
71 return HookMgrAdd(GetBootStageHookMgr(), INIT_PRE_PARAM_LOAD, prio, hook); in InitAddPreParamLoadHook()
97 __attribute__((always_inline)) inline int InitAddPreCfgLoadHook(int prio, OhosHook hook) in InitAddPreCfgLoadHook() argument
99 return HookMgrAdd(GetBootStageHookMgr(), INIT_PRE_CFG_LOAD, prio, hook); in InitAddPreCfgLoadHook()
102 __attribute__((always_inline)) inline int InitAddPostCfgLoadHook(int prio, OhosHook hook) in InitAddPostCfgLoadHook() argument
104 return HookMgrAdd(GetBootStageHookMgr(), INIT_POST_CFG_LOAD, prio, hook); in InitAddPostCfgLoadHook()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/src/
H A Dsend_task_scheduler.cpp40 for (const auto &prio : priorityOrder_) { in Initialize() local
41 extraCapacityInByteByPrio_[prio] = 0; in Initialize()
42 taskCountByPrio_[prio] = 0; in Initialize()
43 taskDelayCountByPrio_[prio] = 0; in Initialize()
200 for (auto &prio : priorityOrder_) { in DelayTaskByTarget() local
220 for (auto &prio : priorityOrder_) { in NoDelayTaskByTarget() local
245 if (taskCountByPrio_[prio] == 0) { in ScheduleDelayTask()
253 outTaskInfo.taskPrio = prio; in ScheduleDelayTask()
263 if (taskCountByPrio_[prio] == 0 || taskCountByPrio_[prio] == taskDelayCountByPrio_[prio]) { in ScheduleNoDelayTask()
270 … for (auto iter = taskOrderByPrio_[prio].begin(); iter != taskOrderByPrio_[prio].end(); ++iter) { in ScheduleNoDelayTask()
[all …]
/ohos5.0/base/startup/init/interfaces/innerkits/hookmgr/
H A Dhookmgr.c118 return (hookItem->info.prio - newItem->info.prio); in hookItemCompare()
122 int prio; member
133 …BEGET_CHECK(hookItem->info.prio == compareVal->prio, return (hookItem->info.prio - compareVal->pri… in hookItemCompareValue()
141 static int addHookToStage(HOOK_STAGE *hookStage, int prio, OhosHook hook, void *hookCookie) in addHookToStage() argument
147 compareVal.prio = prio; in addHookToStage()
157 hookItem->info.prio = prio; in addHookToStage()
182 return addHookToStage(stageItem, hookInfo->prio, hookInfo->hook, hookInfo->hookCookie); in HookMgrAddEx()
185 int HookMgrAdd(HOOK_MGR *hookMgr, int stage, int prio, OhosHook hook) in HookMgrAdd() argument
189 info.prio = prio; in HookMgrAdd()
/ohos5.0/base/startup/appspawn/modules/modulemgr/
H A Dappspawn_modulemgr.c129 APPSPAWN_LOGI("Hook stage: %{public}d prio: %{public}d start", hookInfo->stage, hookInfo->prio); in PreHookExec()
139 hookInfo->stage, hookInfo->prio, diff, executionRetVal); in PostHookExec()
160 int AddServerStageHook(AppSpawnHookStage stage, int prio, ServerStageHook hook) in AddServerStageHook() argument
167 info.prio = prio; in AddServerStageHook()
170 APPSPAWN_LOGI("AddServerStageHook prio: %{public}d", prio); in AddServerStageHook()
194 hookInfo->stage, hookInfo->prio, diff, executionRetVal); in PostAppSpawnHookExec()
243 int AddAppSpawnHook(AppSpawnHookStage stage, int prio, AppSpawnHook hook) in AddAppSpawnHook() argument
250 info.prio = prio; in AddAppSpawnHook()
253 APPSPAWN_LOGI("AddAppSpawnHook stage: %{public}d prio: %{public}d", stage, prio); in AddAppSpawnHook()
279 int AddProcessMgrHook(AppSpawnHookStage stage, int prio, ProcessChangeHook hook) in AddProcessMgrHook() argument
[all …]
/ohos5.0/base/startup/appspawn/modules/module_engine/include/
H A Dappspawn_hook.h120 int AddServerStageHook(AppSpawnHookStage stage, int prio, ServerStageHook hook);
129 __attribute__((always_inline)) inline int AddPreloadHook(int prio, ServerStageHook hook) in AddPreloadHook() argument
131 return AddServerStageHook(STAGE_SERVER_PRELOAD, prio, hook); in AddPreloadHook()
142 int AddAppSpawnHook(AppSpawnHookStage stage, int prio, AppSpawnHook hook);
152 int AddProcessMgrHook(AppSpawnHookStage stage, int prio, ProcessChangeHook hook);
203 int RegisterExpandSandboxCfgHandler(const char *name, int prio, ProcessExpandSandboxCfg handleExpan…
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/runtime/
H A Dohos_js_environment_impl.cpp44 AppExecFwk::EventQueue::Priority prio = AppExecFwk::EventQueue::Priority::IMMEDIATE; in PostTaskToHandler() local
47 prio = AppExecFwk::EventQueue::Priority::IMMEDIATE; in PostTaskToHandler()
50 prio = AppExecFwk::EventQueue::Priority::LOW; in PostTaskToHandler()
53 prio = AppExecFwk::EventQueue::Priority::IDLE; in PostTaskToHandler()
56 prio = AppExecFwk::EventQueue::Priority::HIGH; in PostTaskToHandler()
64 g_eventHandler->PostTask(task, "uv_io_cb", 0, prio); in PostTaskToHandler()
/ohos5.0/foundation/resourceschedule/ffrt/tools/ffrt_trace_process/
H A Dffrt_trace_recover.py51 def make_costart_fake_log(mark, pid, label, gid, tid, tname, prio): argument
58 tname, tid, pid, cpu_id, timestamp, tname, tid, prio, label, pid, gid, prio)
63 def make_coyield_fake_log(mark, pid, label, gid, tid, tname, prio): argument
70 label, pid, gid, pid, cpu_id, timestamp, label, pid, gid, prio, tname, tid, prio)
242 prio = 120
253 prio = int(mark[mark.index("prev_prio="):].split(' ')[0].split('=')[-1])
255 prio = int(mark[mark.index("next_prio="):].split(' ')[0].split('=')[-1])
262 tid, tname, prio)
278 tid, tname, prio)
309 tid, tname, prio)
/ohos5.0/foundation/resourceschedule/ffrt/src/queue/
H A Deventhandler_interactive_queue.cpp27 Priority prio = EventHandlerAdapter::Instance()->ConvertPriority(task->GetPriority()); in Push() local
28 FFRT_COND_DO_ERR((prio > Priority::IDLE), return FAILED, "Priority invalid."); in Push()
40 …task->label, delayUs / msPerSecond, static_cast<Priority>(prio), static_cast<uintptr_t>(task->gid)… in Push()
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/include/
H A Dmusl_log.h74 #define DFXLOG_PRINT(prio, ...) DfxLogPrint(prio, LOG_DOMAIN, LOG_TAG, ##__VA_ARGS__) argument
84 #define DFXLOG_PRINT(prio, ...)
/ohos5.0/foundation/resourceschedule/qos_manager/test/unittest/phone/
H A Dconcurrent_task_controller_test.cpp290 int prio = PRIO_NORMAL; variable
292 foregroundapprecord.AddKeyThread(tid, prio);
294 foregroundapprecord.AddKeyThread(tid, prio);
296 foregroundapprecord.AddKeyThread(tid, prio);
298 foregroundapprecord.AddKeyThread(tid, prio);
304 foregroundapprecord.AddKeyThread(tid, prio);
305 prio = RPIO_IN;
307 prio = PRIO_RT;
309 foregroundapprecord.AddKeyThread(tid, prio);
/ohos5.0/base/startup/init/test/fuzztest/hookmgradd_fuzzer/
H A Dhookmgradd_fuzzer.cpp36 int prio = *(data + offset); in FuzzHookMgrAdd() local
38 if (!HookMgrAdd(NULL, stage, prio, TestHook)) { in FuzzHookMgrAdd()
/ohos5.0/base/startup/init/interfaces/innerkits/include/
H A Dhookmgr.h83 int prio; /* hook priority */ member
98 int HookMgrAdd(HOOK_MGR *hookMgr, int stage, int prio, OhosHook hook);
/ohos5.0/base/hiviewdfx/faultloggerd/common/dfxlog/
H A Ddfx_log.h45 #define DFXLOG_PRINT(prio, ...) DfxLogPrint(prio, LOG_DOMAIN, LOG_TAG, ##__VA_ARGS__) argument
113 #define DFXLOG_PRINT(prio, ...)
/ohos5.0/base/startup/appspawn/modules/sandbox/
H A Dsandbox_expand.c247 return varNode1->prio - varNode2->prio; in AppSandboxExpandAppCfgComparePrio()
259 int RegisterExpandSandboxCfgHandler(const char *name, int prio, ProcessExpandSandboxCfg handleExpan… in RegisterExpandSandboxCfgHandler() argument
272 node->prio = prio; in RegisterExpandSandboxCfgHandler()
/ohos5.0/foundation/resourceschedule/ffrt/src/tm/
H A Dqueue_task.h82 inline void SetPriority(const ffrt_queue_priority_t prio) in SetPriority() argument
84 prio_ = prio; in SetPriority()
/ohos5.0/base/hiviewdfx/hilog/services/hilogd/
H A Dkmsg_parser.cpp56 static uint16_t KmsgLevelMap(uint16_t prio) in KmsgLevelMap() argument
59 switch (prio) { in KmsgLevelMap()
/ohos5.0/base/startup/init/test/moduletest/
H A Dhookmgr_moduletest.cpp66 printf("\tstage[%02d] prio[%02d].\n", hookInfo->stage, hookInfo->prio); in OhosHookPrint()
90 info.prio = 1;
/ohos5.0/foundation/ability/ability_lite/services/abilitymgr_lite/src/slite/
H A Djs_ability_thread.cpp129 uint8_t prio = 0; in AppTaskHandler() local
130 osStatus_t ret = osMessageQueueGet(messageQueueId, &innerMsg, &prio, osWaitForever); in AppTaskHandler()
H A Dnative_ability_thread.cpp165 uint8_t prio = 0; in NativeAppTaskHandler() local
166 osStatus_t ret = osMessageQueueGet(messageQueueId, &innerMsg, &prio, osWaitForever); in NativeAppTaskHandler()
/ohos5.0/commonlibrary/c_utils/base/src/
H A Dthread_ex.cpp41 int prio = t->priority; in Proxy() local
47 (void)setpriority(PRIO_PROCESS, 0, prio); in Proxy()
/ohos5.0/base/location/frameworks/location_common/common/source/
H A Dhook_utils.cpp33 LocationErrCode HookUtils::RegisterHook(LocationProcessStage stage, int prio, OhosHook hook) in RegisterHook() argument
35 auto ret = HookMgrAdd(GetLocationExtHookMgr(), static_cast<int>(stage), prio, hook); in RegisterHook()
/ohos5.0/foundation/resourceschedule/ffrt/test/ut/testcase/
H A Dut_queue.cpp615 for (int prio = 0; prio < 5; prio++) { variable
616 ffrt_task_attr_set_queue_priority(&task_attr, static_cast<ffrt_queue_priority_t>(prio));
619 create_function_wrapper(priorityFuncs[prio], ffrt_function_kind_queue), &task_attr);
/ohos5.0/base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/
H A Dhiview_log.h210 int HiLogPrintArgs(LogType bufID, LogLevel prio,
/ohos5.0/base/location/interfaces/inner_api/include/
H A Dhook_utils.h91 static LocationErrCode RegisterHook(LocationProcessStage stage, int prio, OhosHook hook);
/ohos5.0/foundation/resourceschedule/ffrt/src/core/
H A Dtask.cpp227 int prio = static_cast<int>(priority); variable
228 if (prio < static_cast<int>(ffrt_queue_priority_immediate) ||
229 prio > static_cast<int>(ffrt_queue_priority_idle) + 1) {

123