提交 12c1d05f 编写于 作者: Y yanmengzhao

add func call for hidebug

Signed-off-by: Nyanmengzhao <yanmengzhao1@huawei.com>
上级 28572ecb
......@@ -25,7 +25,8 @@
"ipc",
"safwk",
"samgr_standard",
"utils_base"
"utils_base",
"profiler"
],
"third_party": [
"cJSON",
......
......@@ -134,6 +134,7 @@ if (defined(ohos_lite)) {
"//base/startup/init_lite/interfaces/innerkits/include",
"//base/startup/init_lite/interfaces/innerkits/fd_holder",
"//base/startup/init_lite/ueventd/include",
"//developtools/profiler/hidebug/interfaces/native/innerkits/include",
"//third_party/cJSON",
"//third_party/bounds_checking_function/include",
]
......@@ -147,6 +148,7 @@ if (defined(ohos_lite)) {
"//base/startup/init_lite/services/utils:libinit_tools",
"//base/startup/init_lite/services/utils:libinit_utils",
"//base/startup/init_lite/ueventd:libueventd_ramdisk_static",
"//developtools/profiler/hidebug/interfaces/native/innerkits:libhidebug",
"//third_party/bounds_checking_function:libsec_static",
"//third_party/cJSON:cjson_static",
]
......
......@@ -19,6 +19,7 @@
#include <sys/param.h>
#include <sys/resource.h>
#include "hidebug_base.h"
#include "init_group_manager.h"
#include "init.h"
#include "init_log.h"
......@@ -85,6 +86,7 @@ int ServiceExec(const Service *service)
}
}
INIT_CHECK_ONLY_ELOG(unsetenv("UV_THREADPOOL_SIZE") == 0, "set UV_THREADPOOL_SIZE error : %d.", errno);
InitEnvironmentParam(service->name);
// L2 Can not be reset env
if (service->extraArgs.argv != NULL && service->extraArgs.count > 0) {
INIT_CHECK_ONLY_ELOG(execv(service->extraArgs.argv[0], service->extraArgs.argv) == 0,
......
......@@ -25,6 +25,7 @@ ohos_shared_library("libpluginparamtest") {
"//base/startup/init_lite/interfaces/innerkits/include",
"//base/startup/init_lite/services/loopevent/include",
"//base/startup/init_lite/ueventd/include",
"//developtools/profiler/hidebug/interfaces/native/innerkits/include",
"//third_party/cJSON",
"//third_party/bounds_checking_function/include",
]
......@@ -33,6 +34,7 @@ ohos_shared_library("libpluginparamtest") {
"//base/startup/init_lite/interfaces/innerkits/plugin:libplugin",
"//base/startup/init_lite/services/log:agent_log",
"//base/startup/init_lite/services/utils:libinit_tools",
"//developtools/profiler/hidebug/interfaces/native/innerkits:libhidebug",
"//third_party/bounds_checking_function:libsec_static",
]
part_name = "init"
......
......@@ -162,6 +162,7 @@ ohos_unittest("init_ut") {
"//foundation/distributedschedule/samgr/adapter/interfaces/innerkits/include",
"//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include",
"//base/startup/init_lite/ueventd/include",
"//developtools/profiler/hidebug/interfaces/native/innerkits/include",
"//utils/native/base/include",
"//utils/system/safwk/native/include",
"//third_party/bounds_checking_function/include",
......@@ -174,6 +175,7 @@ ohos_unittest("init_ut") {
"//base/security/access_token/interfaces/innerkits/nativetoken:libnativetoken",
"//base/security/access_token/interfaces/innerkits/token_setproc:libtoken_setproc",
"//base/startup/syspara_lite/interfaces/innerkits/native/syspara:syspara",
"//developtools/profiler/hidebug/interfaces/native/innerkits:libhidebug",
"//third_party/bounds_checking_function:libsec_static",
"//third_party/cJSON:cjson_static",
"//third_party/googletest:gmock",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册