1{ 2 "services" : [{ 3 "name" : "hiprofilerd", 4 "path" : ["/system/bin/hiprofilerd"], 5 "sandbox" : 0, 6 "once" : 1, 7 "uid" : "hiprofiler", 8 "gid" : ["shell", "readproc", "netsys_socket"], 9 "socket" : [{ 10 "name" : "hiprofiler_unix_socket", 11 "family" : "AF_UNIX", 12 "type" : "SOCK_STREAM", 13 "protocol" : "default", 14 "permissions" : "0600", 15 "uid" : "hiprofiler", 16 "gid" : "shell", 17 "option" : [ 18 "SOCKET_OPTION_PASSCRED", 19 "SOCK_CLOEXEC" 20 ] 21 }], 22 "secon" : "u:r:hiprofilerd:s0", 23 "start-mode" : "condition" 24 } 25 ], 26 "jobs" : [{ 27 "name" : "param:hiviewdfx.hiprofiler.profilerd.start=1", 28 "condition" : "hiviewdfx.hiprofiler.profilerd.start=1", 29 "cmds" : [ 30 "start hiprofilerd" 31 ] 32 }, { 33 "name" : "param:hiviewdfx.hiprofiler.profilerd.start=0", 34 "condition" : "hiviewdfx.hiprofiler.profilerd.start=0", 35 "cmds" : [ 36 "stop hiprofilerd" 37 ] 38 }, { 39 "name" : "param:hiviewdfx.hiprofiler.plugins.start=1", 40 "condition" : "hiviewdfx.hiprofiler.plugins.start=1", 41 "cmds" : [ 42 "start hiprofiler_plugins" 43 ] 44 }, { 45 "name" : "param:hiviewdfx.hiprofiler.plugins.start=0", 46 "condition" : "hiviewdfx.hiprofiler.plugins.start=0", 47 "cmds" : [ 48 "stop hiprofiler_plugins" 49 ] 50 }, { 51 "name" : "param:hiviewdfx.hiprofiler.native_memoryd.start=1", 52 "condition" : "hiviewdfx.hiprofiler.native_memoryd.start=1", 53 "cmds" : [ 54 "start hiprofiler_daemon" 55 ] 56 }, { 57 "name" : "param:hiviewdfx.hiprofiler.native_memoryd.start=0", 58 "condition" : "hiviewdfx.hiprofiler.native_memoryd.start=0", 59 "cmds" : [ 60 "stop hiprofiler_daemon", 61 "stop hiprofiler_daemon_sa" 62 ] 63 }, { 64 "name" : "param:hiviewdfx.hiprofiler.native_memoryd.start=2", 65 "condition" : "hiviewdfx.hiprofiler.native_memoryd.start=2", 66 "cmds" : [ 67 "start hiprofiler_daemon_sa" 68 ] 69 }, 70 { 71 "name" : "param:hiviewdfx.hiprofiler.memprofiler.start=1", 72 "condition" : "hiviewdfx.hiprofiler.memprofiler.start=1", 73 "cmds" : [ 74 "start hiprofiler_daemon_sa" 75 ] 76 }, { 77 "name" : "param:hiviewdfx.hiprofiler.memprofiler.start=0", 78 "condition" : "hiviewdfx.hiprofiler.memprofiler.start=0", 79 "cmds" : [ 80 "stop hiprofiler_daemon_sa" 81 ] 82 } 83 ] 84} 85