Home
last modified time | relevance | path

Searched refs:msgSize (Results 1 – 12 of 12) sorted by relevance

/base/hiviewdfx/hilog/frameworks/libhilog/ioctl/
Dlog_ioctl.cpp78 int msgSize = pStats.tagNum * sizeof(TagStatsRsp); in ReceiveProcTagStats() local
79 if (msgSize == 0) { in ReceiveProcTagStats()
83 char* tmp = new (std::nothrow) char[msgSize]; in ReceiveProcTagStats()
88 if (memset_s(tmp, msgSize, 0, msgSize) != 0) { in ReceiveProcTagStats()
93 if (GetRsp(tmp, msgSize) != RET_SUCCESS) { in ReceiveProcTagStats()
109 int msgSize = pStats.typeNum * sizeof(LogTypeStatsRsp); in ReceiveProcLogTypeStats() local
110 if (msgSize == 0) { in ReceiveProcLogTypeStats()
113 char* tmp = new (std::nothrow) char[msgSize]; in ReceiveProcLogTypeStats()
118 if (memset_s(tmp, msgSize, 0, msgSize) != 0) { in ReceiveProcLogTypeStats()
123 if (GetRsp(tmp, msgSize) != RET_SUCCESS) { in ReceiveProcLogTypeStats()
[all …]
/base/startup/init/services/param/linux/
Dparam_request.c132 ssize_t sendLen = send(clientFd, (char *)request, request->msgSize, 0); in StartRequest()
153 size_t msgSize = sizeof(ParamMsgContent); in SystemSetParameter() local
154 msgSize = (msgSize < RECV_BUFFER_MAX) ? RECV_BUFFER_MAX : msgSize; in SystemSetParameter()
156 ParamMessage *request = (ParamMessage *)CreateParamMessage(MSG_SET_PARAM, name, msgSize); in SystemSetParameter()
162 request->msgSize = offset + sizeof(ParamMessage); in SystemSetParameter()
205 …uint32_t msgSize = sizeof(ParamMessage) + sizeof(ParamMsgContent) + sizeof(ParamMsgContent) + size… in SystemWaitParameter() local
206 msgSize = (msgSize < RECV_BUFFER_MAX) ? RECV_BUFFER_MAX : msgSize; in SystemWaitParameter()
210 msgSize += PARAM_ALIGN(strlen(value) + 1); in SystemWaitParameter()
211 request = (ParamMessage *)CreateParamMessage(MSG_WAIT_PARAM, name, msgSize); in SystemWaitParameter()
215 msgSize += PARAM_ALIGN(1); in SystemWaitParameter()
[all …]
Dparam_message.c48 uint32_t bufferSize = request->msgSize - sizeof(ParamMessage); in FillParamMsgContent()
51 return -1, "Invalid msgSize %u offset %u %d", request->msgSize, offset, type); in FillParamMsgContent()
63 ParamMessage *CreateParamMessage(int type, const char *name, uint32_t msgSize) in CreateParamMessage() argument
66 uint32_t size = msgSize; in CreateParamMessage()
67 if (msgSize < sizeof(ParamMessage)) { in CreateParamMessage()
74 msg->msgSize = size; in CreateParamMessage()
86 …f ((msg == NULL) || ((*offset + sizeof(ParamMessage) + sizeof(ParamMsgContent)) >= msg->msgSize)) { in GetNextContent()
Dparam_msgadp.c37 if (((msg->msgSize + curr) > nread) in OnReceiveRequest()
39 || (msg->msgSize < sizeof(ParamMessage))) { in OnReceiveRequest()
42 curr += msg->msgSize; in OnReceiveRequest()
92 uint32_t dataSize = msg->msgSize; in ParamTaskSendMsg()
Dparam_message.h58 uint32_t msgSize; member
99 ParamMessage *CreateParamMessage(int type, const char *name, uint32_t msgSize);
Dparam_service.c96 response->msg.msgSize = sizeof(ParamResponseMessage); in SendResponseMsg()
106 uint32_t msgSize = sizeof(ParamMessage) + PARAM_ALIGN(strlen(content) + 1); in SendWatcherNotifyMessage() local
107 ParamMessage *msg = (ParamMessage *)CreateParamMessage(MSG_NOTIFY_PARAM, "*", msgSize); in SendWatcherNotifyMessage()
133 msg->msgSize = sizeof(ParamMessage) + offset; in SendWatcherNotifyMessage()
136 msg->id.msgId, msg->msgSize, content); in SendWatcherNotifyMessage()
314 PARAM_CHECK((msg != NULL) && (msg->msgSize >= sizeof(ParamMessage)), return -1, "Invalid msg"); in ProcessMessage()
/base/hiviewdfx/hilog/services/hilogd/
Dservice_controller.cpp208 int msgSize = typeNum * sizeof(LogTypeDomainStatsRsp); in SendLogTypeDomainStats() local
209 if (msgSize == 0) { in SendLogTypeDomainStats()
212 char* tmp = new (std::nothrow) char[msgSize]; in SendLogTypeDomainStats()
216 if (memset_s(tmp, msgSize, 0, msgSize) != 0) { in SendLogTypeDomainStats()
233 m_communicationSocket->Write(tmp, msgSize); in SendLogTypeDomainStats()
245 int msgSize = dt.size() * sizeof(DomainStatsRsp); in SendDomainStats() local
246 char *tmp = new (std::nothrow) char[msgSize]; in SendDomainStats()
250 if (memset_s(tmp, msgSize, 0, msgSize) != 0) { in SendDomainStats()
270 m_communicationSocket->Write(tmp, msgSize); in SendDomainStats()
292 int msgSize = pTable.size() * sizeof(ProcStatsRsp); in SendProcStats() local
[all …]
/base/startup/init/test/unittest/param/
Dwatcher_proxy_unittest.cpp141 uint32_t msgSize = sizeof(ParamMessage) + sizeof(ParamMsgContent) + value.size(); in TestProcessWatcherMessage() local
142 msgSize = PARAM_ALIGN(msgSize); // align in TestProcessWatcherMessage()
143 std::vector<char> buffer(msgSize, 0); in TestProcessWatcherMessage()
147 msg->msgSize = msgSize; in TestProcessWatcherMessage()
Dparamservice_unittest.cpp335 …uint32_t msgSize = sizeof(ParamMessage) + sizeof(ParamMsgContent) + PARAM_ALIGN(strlen(value) + 1); in TestServiceProcessMessage() local
336 ParamMessage *request = (ParamMessage *)CreateParamMessage(MSG_SET_PARAM, name, msgSize); in TestServiceProcessMessage()
358 …uint32_t msgSize = sizeof(ParamMessage) + sizeof(ParamMsgContent) + PARAM_ALIGN(strlen(value) + 1); in AddWatch() local
359 … ParamMessage *request = (ParamMessage *)(ParamMessage *)CreateParamMessage(type, name, msgSize); in AddWatch()
/base/startup/init/interfaces/innerkits/control_fd/
Dcontrol_fd.h73 uint16_t msgSize; member
Dcontrol_fd_client.c132 message->msgSize = bufferSize; in SendCmdMessage()
/base/startup/init/services/param/watcher/proxy/
Dwatcher_manager.cpp146 request->msgSize = sizeof(ParamMessage); in SendMessage()
150 ssize_t sendLen = send(serverFd_, (char *)request, request->msgSize, 0); in SendMessage()
256 if ((msg->msgSize > dataLen) || ((curr + msg->msgSize) > dataLen)) { in RunLoop()
260 curr += msg->msgSize; in RunLoop()