Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
12c1d05f
S
Startup Init Lite
项目概览
OpenHarmony
/
Startup Init Lite
1 年多 前同步成功
通知
3
Star
37
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Startup Init Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
12c1d05f
编写于
2月 15, 2022
作者:
Y
yanmengzhao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add func call for hidebug
Signed-off-by:
N
yanmengzhao
<
yanmengzhao1@huawei.com
>
上级
28572ecb
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
1 deletion
+10
-1
bundle.json
bundle.json
+2
-1
services/BUILD.gn
services/BUILD.gn
+2
-0
services/init/standard/init_service.c
services/init/standard/init_service.c
+2
-0
test/plugintest/BUILD.gn
test/plugintest/BUILD.gn
+2
-0
test/unittest/BUILD.gn
test/unittest/BUILD.gn
+2
-0
未找到文件。
bundle.json
浏览文件 @
12c1d05f
...
...
@@ -25,7 +25,8 @@
"ipc"
,
"safwk"
,
"samgr_standard"
,
"utils_base"
"utils_base"
,
"profiler"
],
"third_party"
:
[
"cJSON"
,
...
...
services/BUILD.gn
浏览文件 @
12c1d05f
...
...
@@ -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",
]
...
...
services/init/standard/init_service.c
浏览文件 @
12c1d05f
...
...
@@ -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
,
...
...
test/plugintest/BUILD.gn
浏览文件 @
12c1d05f
...
...
@@ -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"
...
...
test/unittest/BUILD.gn
浏览文件 @
12c1d05f
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录