/base/hiviewdfx/hilog/frameworks/libhilog/ioctl/ |
H A D | log_ioctl.cpp | 78 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, in ReceiveProcLogTypeStats() 139 int msgSize = rsp.procNum * sizeof(ProcStatsRsp); ReceiveProcStats() local 171 int msgSize = dStats.tagNum * sizeof(TagStatsRsp); ReceiveDomainTagStats() local 203 int msgSize = ldStats.domainNum * sizeof(DomainStatsRsp); ReceiveDomainStats() local 233 int msgSize = rsp.typeNum * sizeof(LogTypeDomainStatsRsp); ReceiveLogTypeDomainStats() local [all...] |
/base/startup/init/services/param/linux/ |
H A D | param_message.c | 48 uint32_t bufferSize = request->msgSize - sizeof(ParamMessage);
in FillParamMsgContent() 51 return -1, "Invalid msgSize %u offset %u %d", request->msgSize, offset, type);
in FillParamMsgContent() 65 ParamMessage *CreateParamMessage(int type, const char *name, uint32_t msgSize)
in CreateParamMessage() argument 68 PARAM_CHECK(msgSize < PARAM_BUFFER_MAX, return NULL, "Invalid msg size %u", msgSize);
in CreateParamMessage() 69 uint32_t size = msgSize;
in CreateParamMessage() 70 if (msgSize < sizeof(ParamMessage)) {
in CreateParamMessage() 77 msg->msgSize = size;
in CreateParamMessage() 89 if ((*offset + sizeof(ParamMessage) + sizeof(ParamMsgContent)) >= msg->msgSize) {
in GetNextContent() [all...] |
H A D | param_request.c | 150 ssize_t sendLen = send(clientFd, (char *)request, request->msgSize, 0);
in StartRequest() 175 size_t msgSize = sizeof(ParamMsgContent);
in SystemSetParameter_() local 176 msgSize = (msgSize < RECV_BUFFER_MAX) ? RECV_BUFFER_MAX : msgSize;
in SystemSetParameter_() 178 ParamMessage *request = (ParamMessage *)CreateParamMessage(MSG_SET_PARAM, name, msgSize);
in SystemSetParameter_() 184 request->msgSize = offset + sizeof(ParamMessage);
in SystemSetParameter_() 231 size_t msgSize = RECV_BUFFER_MAX;
in SystemSaveParameters() local 233 ParamMessage *request = (ParamMessage *)CreateParamMessage(MSG_SAVE_PARAM, name, msgSize);
in SystemSaveParameters() 241 request->msgSize in SystemSaveParameters() 260 uint32_t msgSize = sizeof(ParamMessage) + sizeof(ParamMsgContent) + sizeof(ParamMsgContent) + sizeof(uint32_t); SystemWaitParameter() local [all...] |
H A D | param_msgadp.c | 37 if ((nread - curr < msg->msgSize) ||
in OnReceiveRequest() 39 (msg->msgSize < sizeof(ParamMessage))) {
in OnReceiveRequest() 42 curr += msg->msgSize;
in OnReceiveRequest() 92 uint32_t dataSize = msg->msgSize;
in ParamTaskSendMsg()
|
H A D | param_message.h | 59 uint32_t msgSize;
member 100 ParamMessage *CreateParamMessage(int type, const char *name, uint32_t msgSize);
|
H A D | param_service.c | 94 response->msg.msgSize = sizeof(ParamResponseMessage);
in SendResponseMsg() 104 uint32_t msgSize = sizeof(ParamMessage) + PARAM_ALIGN(strlen(content) + 1);
in SendWatcherNotifyMessage() local 105 ParamMessage *msg = (ParamMessage *)CreateParamMessage(MSG_NOTIFY_PARAM, "*", msgSize);
in SendWatcherNotifyMessage() 131 msg->msgSize = sizeof(ParamMessage) + offset;
in SendWatcherNotifyMessage() 132 PARAM_LOGV("SendWatcherNotifyMessage cmd %s, id %d msgSize %d para: %s",
in SendWatcherNotifyMessage() 134 msg->id.msgId, msg->msgSize, content);
in SendWatcherNotifyMessage() 335 PARAM_CHECK((msg != NULL) && (msg->msgSize >= sizeof(ParamMessage)), return -1, "Invalid msg");
in ProcessMessage()
|
/base/hiviewdfx/hilog/services/hilogd/ |
H A D | service_controller.cpp | 221 int msgSize = typeNum * sizeof(LogTypeDomainStatsRsp); in SendLogTypeDomainStats() local 222 if (msgSize == 0) { in SendLogTypeDomainStats() 225 char* tmp = new (std::nothrow) char[msgSize]; in SendLogTypeDomainStats() 229 if (memset_s(tmp, msgSize, 0, msgSize) != 0) { in SendLogTypeDomainStats() 246 m_communicationSocket->Write(tmp, msgSize); in SendLogTypeDomainStats() 258 int msgSize = dt.size() * sizeof(DomainStatsRsp); in SendDomainStats() local 259 char *tmp = new (std::nothrow) char[msgSize]; in SendDomainStats() 263 if (memset_s(tmp, msgSize, 0, msgSize) ! in SendDomainStats() 305 int msgSize = pTable.size() * sizeof(ProcStatsRsp); SendProcStats() local 360 int msgSize = typeNum * sizeof(LogTypeStatsRsp); SendProcLogTypeStats() local 402 int msgSize = tagTable.size() * sizeof(TagStatsRsp); SendTagStats() local [all...] |
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/ |
H A D | hks_crypto_ed25519.c | 39 #define ED25519_SIGN(sig, msgData, msgSize, pub, priv) ED25519_sign((sig), (msgData), (msgSize), (pub), (priv))
40 #define ED25519_VERIFY(msgData, msgSize, sig, pub) ED25519_verify((msgData), (msgSize), (sig), (pub))
44 #define ED25519_SIGN(sig, msgData, msgSize, pub, priv) \
45 ossl_ed25519_sign((sig), (msgData), (msgSize), (pub), (priv), NULL, NULL)
46 #define ED25519_VERIFY(msgData, msgSize, sig, pub) ossl_ed25519_verify((msgData), (msgSize), (sig), (pub), NULL, NULL)
|
/base/startup/init/test/unittest/param/ |
H A D | watcher_proxy_unittest.cpp | 169 uint32_t msgSize = sizeof(ParamMessage) + sizeof(ParamMsgContent) + value.size(); in TestProcessWatcherMessage() local 170 msgSize = PARAM_ALIGN(msgSize); // align in TestProcessWatcherMessage() 171 std::vector<char> buffer(msgSize, 0); in TestProcessWatcherMessage() 175 msg->msgSize = msgSize; in TestProcessWatcherMessage()
|
H A D | paramservice_unittest.cpp | 321 uint32_t msgSize = sizeof(ParamMessage) + sizeof(ParamMsgContent) + PARAM_ALIGN(strlen(value) + 1); in TestServiceProcessMessage() local 322 ParamMessage *request = (ParamMessage *)CreateParamMessage(MSG_SET_PARAM, name, msgSize); in TestServiceProcessMessage() 344 uint32_t msgSize = sizeof(ParamMessage) + sizeof(ParamMsgContent) + sizeof(ParamMsgContent) in AddWatch() local 346 ParamMessage *request = (ParamMessage *)(ParamMessage *)CreateParamMessage(type, name, msgSize); in AddWatch() 358 request->msgSize = offset + sizeof(ParamMessage); in AddWatch()
|
H A D | param_unittest.cpp | 584 const int msgSize = sizeof(ParamMessage) + 128; // 128 TEST in HWTEST_F() local 585 ParamMessage *msg = CreateParamMessage(0, nullptr, msgSize); in HWTEST_F() 591 "555555555555555555555555555555555555555555555555555555555555555555555", msgSize); in HWTEST_F() 595 msg = CreateParamMessage(0, "22222222222222222222222222222222222222222", msgSize); in HWTEST_F() 606 ret = FillParamMsgContent(msg, &start, 0, "22222", msgSize); in HWTEST_F() 611 msg->msgSize = start + sizeof(ParamMessage); in HWTEST_F()
|
/base/startup/init/interfaces/innerkits/control_fd/ |
H A D | control_fd.h | 76 uint16_t msgSize; member
|
H A D | control_fd_client.c | 141 message->msgSize = bufferSize; in SendCmdMessage()
|
/base/startup/init/services/param/watcher/proxy/ |
H A D | watcher_manager.cpp | 164 request->msgSize = sizeof(ParamMessage); in SendMessage() 173 ssize_t sendLen = send(serverFd_, (char *)request, request->msgSize, 0); in SendMessage() 289 if (msg->msgSize == 0 || (msg->msgSize > dataLen - curr)) { in RunLoop() 293 curr += msg->msgSize; in RunLoop()
|
/base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
H A D | app_spawn_cold_run_test.cpp | 271 appProperty.forkCtx.msgSize = 20; in HWTEST_F()
|
H A D | app_spawn_child_test.cpp | 755 argStr += std::to_string(property->forkCtx.msgSize); in GetColdRunArgs()
|
/base/startup/appspawn/standard/ |
H A D | appspawn_manager.h | 74 uint32_t msgSize; member
|
H A D | appspawn_service.c | 530 property->forkCtx.msgSize = memSize; in WriteMsgToChild() 706 property->forkCtx.msgSize = MAX_MEM_SIZE; in GetAppSpawnMsg() 1131 len = sprintf_s(buffer[2], sizeof(buffer[2]), " %u ", property->forkCtx.msgSize); // 2 2 index for dest path in AppSpawnColdStartApp()
|