/base/hiviewdfx/hilog/frameworks/libhilog/socket/ |
H A D | hilog_input_socket_client.cpp | 25 extern "C" int HilogWriteLogMessage(HilogMsg *header, const char *tag, uint16_t tagLen, const char *fmt, in HilogWriteLogMessage() argument 28 return g_hilogInputSocketClient.WriteLogMessage(header, tag, tagLen, fmt, fmtLen); in HilogWriteLogMessage() 31 int HilogInputSocketClient::WriteLogMessage(HilogMsg *header, const char *tag, uint16_t tagLen, const char *fmt, in WriteLogMessage() argument 39 header->len = sizeof(HilogMsg) + tagLen + fmtLen; in WriteLogMessage() 40 header->tagLen = tagLen; in WriteLogMessage() 46 vec[1].iov_len = tagLen; // 1 : index of log tag in WriteLogMessage()
|
/base/tee/tee_client/services/tlogcat/src/ |
H A D | proc_tag.c | 114 uint32_t tagLen; in GetLogItemTag() local 135 tagLen = ((middleStr != NULL) ? (middleStr - startStr - 1) : (endStr - startStr - 1)); in GetLogItemTag() 136 if (memcpy_s(tagStr, tagStrLen, startStr + 1, tagLen) != EOK) { in GetLogItemTag() 141 tagLen = ((tagStrLen == tagLen) ? (tagStrLen - 1) : tagLen); in GetLogItemTag() 142 tagStr[tagLen] = '\0'; in GetLogItemTag() 143 return tagLen; in GetLogItemTag() 146 static int32_t InsertTaTagNode(char *tagName, uint32_t tagLen, const char **logTag, const struct LogItem *logItem) in InsertTaTagNode() argument 163 tagName[tagLen in InsertTaTagNode() 178 InsertDriverTagNode(char *tagName, uint32_t tagLen, const char **logTag, const struct LogItem *logItem) InsertDriverTagNode() argument 209 InsertTagNode(bool isTa, char *tagName, uint32_t tagLen, const char **logTag, const struct LogItem *logItem) InsertTagNode() argument 234 uint32_t tagLen = taTagTempLen + strlen("teeos-") + 1; GetTagName() local [all...] |
/base/hiviewdfx/hilog/services/hilogd/ |
H A D | kmsg_parser.cpp | 86 size_t tagLen = tagStr.size(); in ParseKmsg() local 89 auto msgLen = sizeof(HilogMsg) + tagLen + len + 1; in ParseKmsg() 93 msg.tagLen = tagLen + 1; in ParseKmsg() 100 if (strncpy_s(msg.tag, tagLen + 1, tagStr.c_str(), tagLen) != 0) { in ParseKmsg()
|
H A D | log_buffer.cpp | 91 if (unlikely(msg.tagLen > MAX_TAG_LEN || msg.tagLen == 0 || elemSize > MAX_LOG_LEN || in Insert() 118 size_t cLen = it->len - it->tagLen; in Insert() 290 size_t cLen = it->len - it->tagLen; in Delete() 434 hilogMsg.tagLen = tag.length() + 1; in GenerateHilogMsgInside() 435 if (memcpy_s(hilogMsg.tag, contentLen, tag.c_str(), hilogMsg.tagLen) != 0) { in GenerateHilogMsgInside() 438 if (memcpy_s(hilogMsg.tag + hilogMsg.tagLen, contentLen - hilogMsg.tagLen, msg.c_str(), msg.length() + 1) != 0) { in GenerateHilogMsgInside()
|
H A D | log_collector.cpp | 44 dropMsg->tagLen = tag.size(); in InsertDropInfo() 109 if (*(msg.tag + msg.tagLen - 1) != '\0') { in onDataRecv()
|
H A D | service_controller.cpp | 146 rsp.len = data.len; /* data len, equals tagLen plus content length, include '\0' */ in WriteQueryResponse() 149 rsp.tagLen = data.tagLen; /* include '\0' */ in WriteQueryResponse()
|
/base/hiviewdfx/hilog/frameworks/libhilog/base/ |
H A D | hilog_base.c | 35 static int SendMessage(HilogMsg *header, const char *tag, uint16_t tagLen, const char *fmt, uint16_t fmtLen)
in SendMessage() argument 62 header->len = sizeof(HilogMsg) + tagLen + fmtLen;
in SendMessage() 63 header->tagLen = tagLen;
in SendMessage() 69 vec[1].iov_len = tagLen; // 1 : index of log tag
in SendMessage() 86 size_t tagLen = strnlen(tag, MAX_TAG_LEN - 1);
in HiLogBasePrintArgs() local 97 return SendMessage(&header, tag, tagLen + 1, buf, logLen + 1);
in HiLogBasePrintArgs()
|
/base/hiviewdfx/hilog/frameworks/libhilog/socket/include/ |
H A D | hilog_input_socket_client.h | 27 int WriteLogMessage(HilogMsg *header, const char *tag, uint16_t tagLen, const char *fmt, uint16_t fmtLen); 33 extern "C" int HilogWriteLogMessage(HilogMsg *header, const char *tag, uint16_t tagLen, const char *fmt,
|
/base/hiviewdfx/hilog/services/hilogd/include/ |
H A D | log_data.h | 33 uint16_t tagLen : 6; /* include '\0' */ member 66 : len(0), version(msg.version), type(msg.type), level(msg.level), tagLen(msg.tagLen), in HilogData() 70 Init(msg.tag, msg.tagLen, CONTENT_PTR((&msg)), CONTENT_LEN((&msg))); in HilogData() 85 content = tag + tagLen; in HilogData()
|
/base/hiviewdfx/hilog/frameworks/libhilog/include/ |
H A D | hilog_common.h | 56 #define CONTENT_LEN(pMsg) ((pMsg)->len - sizeof(HilogMsg) - (pMsg)->tagLen) /* include '\0' */ 57 #define CONTENT_PTR(pMsg) ((pMsg)->tag + (pMsg)->tagLen)
|
H A D | hilog_base.h | 36 uint16_t tagLen : 6; /* include '\0' */
member
|
H A D | hilog_cmd.h | 93 uint16_t len; /* data len, equals tagLen plus content length, include '\0' */ 102 uint8_t tagLen; member
|
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/src/ |
H A D | cipher_aes_common.c | 48 size_t tagLen = spec->tag.len; in GetCcmTagLen() local 49 return (int)tagLen; in GetCcmTagLen()
|
H A D | cipher_aes_openssl.c | 269 data->tagLen = params->tag.len; in InitAadAndTagFromGcmParams() 300 data->tagLen = params->tag.len; in InitAadAndTagFromCcmParams() 606 int32_t ret = OpensslEvpCipherCtxCtrl(data->ctx, EVP_CTRL_AEAD_GET_TAG, data->tagLen, output->data + len); in CcmEncryptDoFinal() 612 output->len = data->tagLen + len; in CcmEncryptDoFinal() 648 int32_t ret = OpensslEvpCipherCtxCtrl(data->ctx, EVP_CTRL_AEAD_SET_TAG, data->tagLen, (void *)data->tag); in GcmDecryptDoFinal() 673 ret = OpensslEvpCipherCtxCtrl(data->ctx, EVP_CTRL_AEAD_GET_TAG, data->tagLen, in GcmEncryptDoFinal() 680 output->len += data->tagLen; in GcmEncryptDoFinal()
|
H A D | cipher_sm4_openssl.c | 198 data->tagLen = params->tag.len; in InitAadAndTagFromGcmParams() 498 int32_t ret = OpensslEvpCipherCtxCtrl(data->ctx, EVP_CTRL_AEAD_SET_TAG, data->tagLen, (void *)data->tag); in GcmDecryptDoFinal() 523 ret = OpensslEvpCipherCtxCtrl(data->ctx, EVP_CTRL_AEAD_GET_TAG, data->tagLen, in GcmEncryptDoFinal() 530 output->len += data->tagLen; in GcmEncryptDoFinal()
|
/base/hiviewdfx/hilog/frameworks/libhilog/ |
H A D | hilog_printf.cpp | 170 static int PrintLog(HilogMsg& header, const char *tag, uint16_t tagLen, const char *fmt, uint16_t fmtLen) in PrintLog() argument 303 auto tagLen = strnlen(tag, MAX_TAG_LEN - 1); in HiLogPrintArgs() local 338 ret = HiLogFlowCtrlProcess(tagLen + logLen - traceBufLen, ts_mono); in HiLogPrintArgs() 354 return HilogWriteLogMessage(&header, tag, tagLen + 1, buf, logLen + 1); in HiLogPrintArgs() 356 return PrintLog(header, tag, tagLen + 1, buf, logLen + 1); in HiLogPrintArgs()
|
/base/security/crypto_framework/plugin/openssl_plugin/common/inc/ |
H A D | aes_openssl_common.h | 38 uint32_t tagLen; member
|
/base/hiviewdfx/hilog/test/unittest/common/ |
H A D | hilogtool_test.cpp | 803 int tagLen = res.substr(40).find(":") + 1;
in HWTEST_F() local 804 std::string tag = res.substr(40, tagLen);
in HWTEST_F() 832 std::string logTag = it.substr(40, tagLen);
in HWTEST_F() 852 int tagLen = res.substr(40).find(":") + 1;
in HWTEST_F() local 853 std::string tag = res.substr(40, tagLen);
in HWTEST_F()
|
/base/telephony/ril_adapter/services/vendor/src/ |
H A D | at_sim.c | 1333 uint8_t tagLen = 0; in FcpTlvSearchTag() local 1335 for (*outPtr = dataPtr; lenVar > 0; *outPtr += tagLen) { in FcpTlvSearchTag() 1336 tagLen = (*(*outPtr + 1) + HALF_LEN); in FcpTlvSearchTag() 1341 lenVar -= tagLen; in FcpTlvSearchTag()
|
/base/hiviewdfx/hilog/services/hilogtool/ |
H A D | main.cpp | 428 .log = (rsp.data + rsp.tagLen) in QueryLogHandler()
|