developtools_profiler/device/etc/hiprofilerd.cfg
wenlong_12 8b160275f1 user 模式下去掉非阻塞模式的选项
Signed-off-by:shuxinyi4 <shuxinyi4@h-partners.com>

Signed-off-by: wenlong_12 <wenlong12@huawei.com>
2024-01-29 17:06:25 +08:00

85 lines
3.0 KiB
INI

{
"services" : [{
"name" : "hiprofilerd",
"path" : ["/system/bin/hiprofilerd"],
"sandbox" : 0,
"once" : 1,
"uid" : "hiprofiler",
"gid" : ["shell", "readproc", "netsys_socket"],
"socket" : [{
"name" : "hiprofiler_unix_socket",
"family" : "AF_UNIX",
"type" : "SOCK_STREAM",
"protocol" : "default",
"permissions" : "0600",
"uid" : "hiprofiler",
"gid" : "shell",
"option" : [
"SOCKET_OPTION_PASSCRED",
"SOCK_CLOEXEC"
]
}],
"secon" : "u:r:hiprofilerd:s0",
"start-mode" : "condition"
}
],
"jobs" : [{
"name" : "param:hiviewdfx.hiprofiler.profilerd.start=1",
"condition" : "hiviewdfx.hiprofiler.profilerd.start=1",
"cmds" : [
"start hiprofilerd"
]
}, {
"name" : "param:hiviewdfx.hiprofiler.profilerd.start=0",
"condition" : "hiviewdfx.hiprofiler.profilerd.start=0",
"cmds" : [
"stop hiprofilerd"
]
}, {
"name" : "param:hiviewdfx.hiprofiler.plugins.start=1",
"condition" : "hiviewdfx.hiprofiler.plugins.start=1",
"cmds" : [
"start hiprofiler_plugins"
]
}, {
"name" : "param:hiviewdfx.hiprofiler.plugins.start=0",
"condition" : "hiviewdfx.hiprofiler.plugins.start=0",
"cmds" : [
"stop hiprofiler_plugins"
]
}, {
"name" : "param:hiviewdfx.hiprofiler.native_memoryd.start=1",
"condition" : "hiviewdfx.hiprofiler.native_memoryd.start=1",
"cmds" : [
"start hiprofiler_daemon"
]
}, {
"name" : "param:hiviewdfx.hiprofiler.native_memoryd.start=0",
"condition" : "hiviewdfx.hiprofiler.native_memoryd.start=0",
"cmds" : [
"stop hiprofiler_daemon",
"stop hiprofiler_daemon_sa"
]
}, {
"name" : "param:hiviewdfx.hiprofiler.native_memoryd.start=2",
"condition" : "hiviewdfx.hiprofiler.native_memoryd.start=2",
"cmds" : [
"start hiprofiler_daemon_sa"
]
},
{
"name" : "param:hiviewdfx.hiprofiler.memprofiler.start=1",
"condition" : "hiviewdfx.hiprofiler.memprofiler.start=1",
"cmds" : [
"start hiprofiler_daemon_sa"
]
}, {
"name" : "param:hiviewdfx.hiprofiler.memprofiler.start=0",
"condition" : "hiviewdfx.hiprofiler.memprofiler.start=0",
"cmds" : [
"stop hiprofiler_daemon_sa"
]
}
]
}