Home
last modified time | relevance | path

Searched refs:stage (Results 1 - 25 of 26) sorted by relevance

12

/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()
138 APPSPAWN_LOGI("Hook stage: %{public}d prio: %{public}d end time %{public}" PRId64 " ns result: %{public}d", in PostHookExec()
139 hookInfo->stage, hookInfo->prio, diff, executionRetVal); in PostHookExec()
143 int ServerStageHookExecute(AppSpawnHookStage stage, AppSpawnContent *content) in ServerStageHookExecute() argument
146 APPSPAWN_CHECK((stage >= STAGE_SERVER_PRELOAD) && (stage <= STAGE_SERVER_EXIT), in ServerStageHookExecute()
147 return APPSPAWN_ARG_INVALID, "Invalid stage %{public}d", (int)stage); in ServerStageHookExecute()
155 int ret = HookMgrExecute(GetAppSpawnHookMgr(), stage, (voi in ServerStageHookExecute()
160 AddServerStageHook(AppSpawnHookStage stage, int prio, ServerStageHook hook) AddServerStageHook() argument
197 AppSpawnHookExecute(AppSpawnHookStage stage, uint32_t flags, AppSpawnContent *content, AppSpawnClient *client) AppSpawnHookExecute() argument
243 AddAppSpawnHook(AppSpawnHookStage stage, int prio, AppSpawnHook hook) AddAppSpawnHook() argument
257 ProcessMgrHookExecute(AppSpawnHookStage stage, const AppSpawnContent *content, const AppSpawnedProcessInfo *appInfo) ProcessMgrHookExecute() argument
279 AddProcessMgrHook(AppSpawnHookStage stage, int prio, ProcessChangeHook hook) AddProcessMgrHook() argument
[all...]
H A Dappspawn_modulemgr.h58 int ServerStageHookExecute(AppSpawnHookStage stage, AppSpawnContent *content);
59 int ProcessMgrHookExecute(AppSpawnHookStage stage,
61 int AppSpawnHookExecute(AppSpawnHookStage stage, uint32_t flags, AppSpawnContent *content, AppSpawnClient *client);
/base/startup/init/interfaces/innerkits/hookmgr/
H A Dhookmgr.c34 HOOK_STAGE *stage; member
38 * Internal HOOK Stage in the same stage
42 int stage; member
74 const HOOK_STAGE *stage; in hookStageCompare() local
77 stage = (const HOOK_STAGE *)node; in hookStageCompare()
78 return (stage->stage - compareStage); in hookStageCompare()
83 HOOK_STAGE *stage; in hookStageDestroy() local
87 stage = (HOOK_STAGE *)node; in hookStageDestroy()
88 OH_ListRemoveAll(&(stage in hookStageDestroy()
93 getHookStage(HOOK_MGR *hookMgr, int stage, int createIfNotFound) getHookStage() argument
185 HookMgrAdd(HOOK_MGR *hookMgr, int stage, int prio, OhosHook hook) HookMgrAdd() argument
214 HookMgrDel(HOOK_MGR *hookMgr, int stage, OhosHook hook) HookMgrDel() argument
263 HookMgrExecute(HOOK_MGR *hookMgr, int stage, void *executionContext, const HOOK_EXEC_OPTIONS *options) HookMgrExecute() argument
367 HookMgrGetHooksCnt(HOOK_MGR *hookMgr, int stage) HookMgrGetHooksCnt() argument
[all...]
/base/startup/init/initsync/src/
H A Dinit_sync.c56 int SystemInitStage(QuickstartStage stage) in SystemInitStage() argument
58 if (stage >= QS_STAGE_LIMIT || stage < QS_STAGE1) { in SystemInitStage()
59 INIT_LOGE("[Init] the stage(%d) is not expected!", stage); in SystemInitStage()
62 return SendCmd(QUICKSTART_STAGE(stage), 0); in SystemInitStage()
/base/startup/init/interfaces/innerkits/include/
H A Dhookmgr.h82 int stage; /* hook stage */ member
93 * @param stage hook stage
98 int HookMgrAdd(HOOK_MGR *hookMgr, int stage, int prio, OhosHook hook);
115 * @param stage hook stage
117 * If hook is NULL, it will delete all hooks in the stage
120 void HookMgrDel(HOOK_MGR *hookMgr, int stage, OhosHook hook);
163 * @param stage hoo
[all...]
/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()
39 LBSLOGE(LOCATOR, "%{public}s stage = %{public}d add failed ret = %{public}d", in RegisterHook()
40 __func__, static_cast<int>(stage), ret); in RegisterHook()
44 void HookUtils::UnregisterHook(LocationProcessStage stage, OhosHook hook) in UnregisterHook() argument
46 HookMgrDel(GetLocationExtHookMgr(), static_cast<int>(stage), hook); in UnregisterHook()
50 LocationProcessStage stage, void *executionContext, const HOOK_EXEC_OPTIONS *options) in ExecuteHook()
52 auto ret = HookMgrExecute(GetLocationExtHookMgr(), static_cast<int>(stage), executionContext, options); in ExecuteHook()
56 LBSLOGE(LOCATOR, "%{public}s stage = %{public}d execute failed ret = %{public}d", in ExecuteHook()
57 __func__, static_cast<int>(stage), re in ExecuteHook()
49 ExecuteHook( LocationProcessStage stage, void *executionContext, const HOOK_EXEC_OPTIONS *options) ExecuteHook() argument
[all...]
/base/update/updater/services/include/log/
H A Dlog.h36 #define STAGE(stage) StageLogger(stage).OutputUpdaterStage()
85 StageLogger(int stage) : stage_(stage) {} in StageLogger() argument
H A Ddump.h79 DumpStageHelper(const std::string &stage);
/base/startup/init/test/fuzztest/hookmgradd_fuzzer/
H A Dhookmgradd_fuzzer.cpp34 int stage = *data; in FuzzHookMgrAdd() local
38 if (!HookMgrAdd(NULL, stage, prio, TestHook)) { in FuzzHookMgrAdd()
/base/update/updater/services/log/
H A Ddump.cpp32 DumpStageHelper::DumpStageHelper(const std::string &stage) in DumpStageHelper() argument
34 g_stageStack.push(stage); in DumpStageHelper()
/base/location/interfaces/inner_api/include/
H A Dhook_utils.h88 static LocationErrCode RegisterHook(LocationProcessStage stage, int prio, OhosHook hook);
89 static void UnregisterHook(LocationProcessStage stage, OhosHook hook);
90 static LocationErrCode ExecuteHook(LocationProcessStage stage, void *executionContext,
/base/notification/eventhandler/interfaces/inner_api/
H A Devent_queue.h70 using EventRunnerObserverCallBack = std::function<int(EventRunnerStage stage, const StageInfo* info)>;
85 std::string stage; member
88 : source(currentSource), stage(currentStage) {} in ObserverTrace()
93 if (stage.empty()) { in getTraceInfo()
96 traceInfo.append(stage); in getTraceInfo()
/base/startup/appspawn/modules/module_engine/include/
H A Dappspawn_hook.h115 * @param stage 阶段信息
120 int AddServerStageHook(AppSpawnHookStage stage, int prio, ServerStageHook hook);
137 * @param stage 阶段信息
142 int AddAppSpawnHook(AppSpawnHookStage stage, int prio, AppSpawnHook hook);
147 * @param stage 阶段信息
152 int AddProcessMgrHook(AppSpawnHookStage stage, int prio, ProcessChangeHook hook);
/base/startup/init/initsync/include/
H A Dinit_stage.h31 QS_STAGE2, /* system init stage No 2 */
32 QS_STAGE3, /* system init stage No 3 */
73 * Trigger the SystemInit stage.
76 extern int SystemInitStage(QuickstartStage stage);
85 * Listen event and trigger the SystemInit stage.
/base/startup/init/test/moduletest/
H A Dhookmgr_moduletest.cpp66 printf("\tstage[%02d] prio[%02d].\n", hookInfo->stage, hookInfo->prio); in OhosHookPrint()
89 info.stage = STAGE_TEST_ONE; in HWTEST_F()
/base/update/updater/interfaces/kits/include/misc_info/
H A Dmisc_info.h53 char stage[MAX_STAGE_SIZE]; member
/base/notification/eventhandler/frameworks/eventhandler/include/
H A Devent_queue_base.h194 void TryExecuteObserverCallback(InnerEvent::TimePoint &nextExpiredTime, EventRunnerStage stage);
195 int64_t ExecuteObserverCallback(ObserverTrace obsTrace, EventRunnerStage stage, StageInfo &Info);
/base/notification/eventhandler/frameworks/eventhandler/src/
H A Devent_queue_base.cpp443 void EventQueueBase::TryExecuteObserverCallback(InnerEvent::TimePoint &nextExpiredTime, EventRunnerStage stage) in TryExecuteObserverCallback() argument
445 uint32_t stageUint = static_cast<uint32_t>(stage); in TryExecuteObserverCallback()
458 switch (stage) { in TryExecuteObserverCallback()
461 obs.stage = STAGE_BEFORE_WAITING.data(); in TryExecuteObserverCallback()
462 consumer = ExecuteObserverCallback(obs, stage, info); in TryExecuteObserverCallback()
469 obs.stage = STAGE_AFTER_WAITING.data(); in TryExecuteObserverCallback()
470 consumer = ExecuteObserverCallback(obs, stage, info); in TryExecuteObserverCallback()
477 HILOGI("execute observer callback task consumer: %{public}lld, stage: %{public}u", in TryExecuteObserverCallback()
482 int64_t EventQueueBase::ExecuteObserverCallback(ObserverTrace obsTrace, EventRunnerStage stage, StageInfo &info) in ExecuteObserverCallback() argument
488 (observer_.notifyCb)(stage, in ExecuteObserverCallback()
[all...]
/base/startup/init/services/modules/reboot/
H A Dreboot_static.c40 info.stage = INIT_REBOOT; in InitAddRebootHook()
/base/startup/init/services/init/
H A Dinit_common_service.c119 info.stage = hookState; in InitAddServiceHook()
140 info.stage = hookState; in InitServiceRestartHook()
151 static void ServiceHookExecute(const char *serviceName, const char *info, int stage) in ServiceHookExecute() argument
158 (void)HookMgrExecute(GetBootStageHookMgr(), stage, (void *)(&context), NULL); in ServiceHookExecute() local
/base/startup/init/services/modules/init_hook/
H A Dinit_hook.c99 info.stage = INIT_JOB_PARSE; in InitAddJobParseHook()
/base/powermgr/power_manager/frameworks/napi/power/
H A Dpower_napi.cpp190 int stage = SHUT_STAGE_FRAMEWORK_START; in SetFrameworkBootStage() local
191 ret = ioctl(fd, SET_SHUT_STAGE, &stage); in SetFrameworkBootStage()
193 POWER_HILOGE(FEATURE_SHUTDOWN, "set shut stage failed!"); in SetFrameworkBootStage()
/base/notification/eventhandler/frameworks/eventhandler/test/unittest/
H A Dlib_event_handler_event_queue_test.cpp2005 auto callback = [this]([[maybe_unused]]EventRunnerStage stage, in HWTEST_F()
2046 auto callback = [this]([[maybe_unused]]EventRunnerStage stage, in HWTEST_F()
2070 auto callback = [this]([[maybe_unused]]EventRunnerStage stage, in HWTEST_F()
2089 auto callback = []([[maybe_unused]]EventRunnerStage stage, in ObserverTest()
2126 auto callback = [this]([[maybe_unused]]EventRunnerStage stage, in HWTEST_F()
2149 auto callback = [this]([[maybe_unused]]EventRunnerStage stage, in HWTEST_F()
2158 trace.stage = "GFH"; in HWTEST_F()
/base/startup/init/test/unittest/innerkits/
H A Dhookmgr_unittest.cpp70 printf("\tstage[%02d] prio[%02d].\n", hookInfo->stage, hookInfo->prio); in OhosHookPrint()
169 // All hooks are in the same stage in HWTEST_F()
173 // Delete all hooks in stage 0 in HWTEST_F()
/base/startup/init/services/init/standard/
H A Dinit.c195 hookInfo->stage, hookInfo->prio, diff, executionRetVal); in InitPostHook()
296 INIT_LOGI("boot stage: init finish."); in SystemConfig()
298 // The cgroupv1 hierarchy may be created asynchronously in the early stage, in SystemConfig()
327 INIT_LOGI("boot stage: parse config file finish."); in SystemConfig()

Completed in 16 milliseconds

12