/base/startup/init/interfaces/innerkits/init_module_engine/include/ |
D | bootstage.h | 56 __attribute__((always_inline)) inline int InitAddGlobalInitHook(int prio, OhosHook hook) in InitAddGlobalInitHook() argument 58 return HookMgrAdd(GetBootStageHookMgr(), INIT_GLOBAL_INIT, prio, hook); in InitAddGlobalInitHook() 61 __attribute__((always_inline)) inline int InitAddPreParamServiceHook(int prio, OhosHook hook) in InitAddPreParamServiceHook() argument 63 return HookMgrAdd(GetBootStageHookMgr(), INIT_PRE_PARAM_SERVICE, prio, hook); in InitAddPreParamServiceHook() 66 __attribute__((always_inline)) inline int InitAddPreParamLoadHook(int prio, OhosHook hook) in InitAddPreParamLoadHook() argument 68 return HookMgrAdd(GetBootStageHookMgr(), INIT_PRE_PARAM_LOAD, prio, hook); in InitAddPreParamLoadHook() 94 __attribute__((always_inline)) inline int InitAddPreCfgLoadHook(int prio, OhosHook hook) in InitAddPreCfgLoadHook() argument 96 return HookMgrAdd(GetBootStageHookMgr(), INIT_PRE_CFG_LOAD, prio, hook); in InitAddPreCfgLoadHook() 99 __attribute__((always_inline)) inline int InitAddPostCfgLoadHook(int prio, OhosHook hook) in InitAddPostCfgLoadHook() argument 101 return HookMgrAdd(GetBootStageHookMgr(), INIT_POST_CFG_LOAD, prio, hook); in InitAddPostCfgLoadHook() [all …]
|
D | init_running_hooks.h | 61 int ParamSetHookAdd(ParamSetHook hook);
|
/base/startup/init/interfaces/innerkits/hookmgr/ |
D | hookmgr.c | 123 OhosHook hook; member 134 …if (hookItem->info.hook == compareVal->hook && hookItem->info.hookCookie == compareVal->hookCookie… in hookItemCompareValue() 141 static int addHookToStage(HOOK_STAGE *hookStage, int prio, OhosHook hook, void *hookCookie) in addHookToStage() argument 148 compareVal.hook = hook; in addHookToStage() 158 hookItem->info.hook = hook; in addHookToStage() 171 BEGET_CHECK(hookInfo->hook != NULL, return -1); in HookMgrAddEx() 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 190 info.hook = hook; in HookMgrAdd() 200 BEGET_CHECK((void *)hookItem->info.hook == cookie, return 0); in hookTraversalDelProc() [all …]
|
/base/startup/init/interfaces/innerkits/include/ |
D | hookmgr.h | 84 OhosHook hook; /* hook function */ member 98 int HookMgrAdd(HOOK_MGR *hookMgr, int stage, int prio, OhosHook hook); 120 void HookMgrDel(HOOK_MGR *hookMgr, int stage, OhosHook hook);
|
/base/startup/init/services/modules/init_hook/ |
D | init_hook.c | 96 int InitAddClearServiceHook(ServiceHook hook) in InitAddClearServiceHook() argument 101 info.hook = ServiceClearHookWrapper; in InitAddClearServiceHook() 102 info.hookCookie = (void *)hook; in InitAddClearServiceHook() 114 int InitAddJobParseHook(JobParseHook hook) in InitAddJobParseHook() argument 119 info.hook = JobParseHookWrapper; in InitAddJobParseHook() 120 info.hookCookie = (void *)hook; in InitAddJobParseHook()
|
/base/startup/init/services/modules/reboot/ |
D | reboot_static.c | 37 int InitAddRebootHook(InitRebootHook hook) in InitAddRebootHook() argument 42 info.hook = RebootHookWrapper; in InitAddRebootHook() 43 info.hookCookie = (void *)hook; in InitAddRebootHook()
|
/base/hiviewdfx/hisysevent/interfaces/rust/innerkits/src/ |
D | macros.rs | 32 fn hook() {} 36 let name = type_name_of(hook);
|
/base/startup/init/test/moduletest/ |
D | hookmgr_moduletest.cpp | 91 info.hook = OhosTestHookMultiThreadAnother;
|
/base/startup/init/services/init/ |
D | init_common_service.c | 111 int InitAddServiceHook(ServiceHook hook, int hookState) in InitAddServiceHook() argument 117 info.hook = ServiceHookWrapper; in InitAddServiceHook() 118 info.hookCookie = (void *)hook; in InitAddServiceHook()
|
D | init_service_manager.c | 898 int InitAddServiceParseHook(ServiceParseHook hook) in InitAddServiceParseHook() argument 904 info.hook = ServiceParseHookWrapper; in InitAddServiceParseHook() 905 info.hookCookie = (void *)hook; in InitAddServiceParseHook()
|
/base/hiviewdfx/faultloggerd/docs/ |
D | usage.md | 206 可以通过Q7修改preload的方法hook相关函数,并打印调用栈到流水日志中。
|
/base/hiviewdfx/faultloggerd/ |
D | README_zh.md | 64 │ ├── funchook # hook 工具测试用例
|
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest004/ |
D | last_kmsg | 29 <14>[ 3.822546] [pid=1][Init][INFO][init.c:313]Executing hook [0:0] cost [1546]us, return 0. 30 <14>[ 3.822584] [pid=1][Init][INFO][init.c:313]Executing hook [0:0] cost [10]us, return 0. 39 <14>[ 3.827907] [pid=1][Init][INFO][init.c:313]Executing hook [0:0] cost [5305]us, return 0. 40 <14>[ 3.827936] [pid=1][Init][INFO][init.c:313]Executing hook [0:0] cost [14]us, return 0. 43 <14>[ 3.832133] [pid=1][Init][INFO][init.c:313]Executing hook [0:0] cost [4176]us, return 0. 177 <14>[ 4.207932] [pid=1][Init][INFO][init.c:313]Executing hook [30:0] cost [9]us, return 0. 182 <14>[ 4.213150] [pid=1][Init][INFO][init.c:313]Executing hook [30:0] cost [5198]us, return 0. 209 <14>[ 4.295965] [pid=1][Init][INFO][init.c:313]Executing hook [50:0] cost [20]us, return 0.
|
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest008/ |
D | last_kmsg | 29 <14>[ 3.822546] [pid=1][Init][INFO][init.c:313]Executing hook [0:0] cost [1546]us, return 0. 30 <14>[ 3.822584] [pid=1][Init][INFO][init.c:313]Executing hook [0:0] cost [10]us, return 0. 39 <14>[ 3.827907] [pid=1][Init][INFO][init.c:313]Executing hook [0:0] cost [5305]us, return 0. 40 <14>[ 3.827936] [pid=1][Init][INFO][init.c:313]Executing hook [0:0] cost [14]us, return 0. 43 <14>[ 3.832133] [pid=1][Init][INFO][init.c:313]Executing hook [0:0] cost [4176]us, return 0. 177 <14>[ 4.207932] [pid=1][Init][INFO][init.c:313]Executing hook [30:0] cost [9]us, return 0. 182 <14>[ 4.213150] [pid=1][Init][INFO][init.c:313]Executing hook [30:0] cost [5198]us, return 0. 209 <14>[ 4.295965] [pid=1][Init][INFO][init.c:313]Executing hook [50:0] cost [20]us, return 0.
|
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest005/ |
D | last_kmsg | 29 <14>[ 3.822546] [pid=1][Init][INFO][init.c:313]Executing hook [0:0] cost [1546]us, return 0. 30 <14>[ 3.822584] [pid=1][Init][INFO][init.c:313]Executing hook [0:0] cost [10]us, return 0. 39 <14>[ 3.827907] [pid=1][Init][INFO][init.c:313]Executing hook [0:0] cost [5305]us, return 0. 40 <14>[ 3.827936] [pid=1][Init][INFO][init.c:313]Executing hook [0:0] cost [14]us, return 0. 43 <14>[ 3.832133] [pid=1][Init][INFO][init.c:313]Executing hook [0:0] cost [4176]us, return 0. 177 <14>[ 4.207932] [pid=1][Init][INFO][init.c:313]Executing hook [30:0] cost [9]us, return 0. 182 <14>[ 4.213150] [pid=1][Init][INFO][init.c:313]Executing hook [30:0] cost [5198]us, return 0. 209 <14>[ 4.295965] [pid=1][Init][INFO][init.c:313]Executing hook [50:0] cost [20]us, return 0.
|