Home
last modified time | relevance | path

Searched refs:HilogMsg (Results 1 – 16 of 16) sorted by relevance

/ohos5.0/base/hiviewdfx/hilog/services/hilogd/
H A Dlog_collector.cpp33 void LogCollector::InsertDropInfo(const HilogMsg &msg, int droppedCount) in InsertDropInfo()
37 std::vector<char> buffer(sizeof(HilogMsg) + tag.size() + dropLog.size() + 1, '\0'); in InsertDropInfo()
38 HilogMsg *dropMsg = reinterpret_cast<HilogMsg *>(buffer.data()); in InsertDropInfo()
52 auto remainSize = buffer.size() - sizeof(HilogMsg); in InsertDropInfo()
72 if (dataLen < sizeof(HilogMsg)) { in onDataRecv()
75 HilogMsg& msg = *(reinterpret_cast<HilogMsg *>(data.data())); in onDataRecv()
115 .len = (msg.len - sizeof(HilogMsg) - 1 - 1), // don't count '\0' of tag and content in onDataRecv()
128 size_t LogCollector::InsertLogToBuffer(const HilogMsg& msg) in InsertLogToBuffer()
H A Dlog_buffer.cpp36 static int GenerateHilogMsgInside(HilogMsg& hilogMsg, const string& msg, uint16_t logType);
71 HilogMsg *headMsg = reinterpret_cast<HilogMsg *>(buf.data()); in InitBuffHead()
88 size_t HilogBuffer::Insert(const HilogMsg& msg, bool& isFull) in Insert()
253 HilogMsg *headMsg = reinterpret_cast<HilogMsg *>(buf.data()); in Query()
414 static int GenerateHilogMsgInside(HilogMsg& hilogMsg, const string& msg, uint16_t logType) in GenerateHilogMsgInside()
418 hilogMsg.len = static_cast<uint16_t>(sizeof(HilogMsg) + contentLen); in GenerateHilogMsgInside()
420 contentLen = hilogMsg.len - static_cast<uint16_t>(sizeof(HilogMsg)); in GenerateHilogMsgInside()
H A Dflow_control.cpp43 int FlowCtrlDomain(const HilogMsg& hilogMsg) in FlowCtrlDomain()
51 …auto logLen = hilogMsg.len - sizeof(HilogMsg) - 1 - 1; /* quota length exclude '\0' of tag and log… in FlowCtrlDomain()
H A Dkmsg_parser.cpp89 auto msgLen = sizeof(HilogMsg) + tagLen + len + 1; in ParseKmsg()
91 HilogMsg& msg = msgWrap.GetHilogMsg(); in ParseKmsg()
/ohos5.0/base/hiviewdfx/hilog/frameworks/libhilog/socket/
H A Dhilog_input_socket_client.cpp25 extern "C" int HilogWriteLogMessage(HilogMsg *header, const char *tag, uint16_t tagLen, const char … in HilogWriteLogMessage()
31 int HilogInputSocketClient::WriteLogMessage(HilogMsg *header, const char *tag, uint16_t tagLen, con… in WriteLogMessage()
39 header->len = sizeof(HilogMsg) + tagLen + fmtLen; in WriteLogMessage()
44 …vec[0].iov_len = sizeof(HilogMsg); // 0 : index of hos log hea… in WriteLogMessage()
/ohos5.0/base/hiviewdfx/hilog/frameworks/libhilog/base/
H A Dhilog_base.c35 static int SendMessage(HilogMsg *header, const char *tag, uint16_t tagLen, const char *fmt, uint16_… in SendMessage()
62 header->len = sizeof(HilogMsg) + tagLen + fmtLen; in SendMessage()
67 vec[0].iov_len = sizeof(HilogMsg); // 0 : index of hos log header in SendMessage()
88 HilogMsg header = {0}; in HiLogBasePrintArgs()
/ohos5.0/base/hiviewdfx/hilog/frameworks/libhilog/socket/include/
H A Dhilog_input_socket_client.h27 …int WriteLogMessage(HilogMsg *header, const char *tag, uint16_t tagLen, const char *fmt, uint16_t …
33 extern "C" int HilogWriteLogMessage(HilogMsg *header, const char *tag, uint16_t tagLen, const char …
/ohos5.0/base/hiviewdfx/hilog/services/hilogd/include/
H A Dlog_msg_wrapper.h36 HilogMsg& GetHilogMsg() in GetHilogMsg()
38 return *reinterpret_cast<HilogMsg*>(msgBuffer.data()); in GetHilogMsg()
H A Dlog_collector.h34 void InsertDropInfo(const HilogMsg &msg, int droppedCount);
35 size_t InsertLogToBuffer(const HilogMsg& msg);
H A Dflow_control.h24 int FlowCtrlDomain(const HilogMsg& hilogMsg);
H A Dlog_buffer.h42 size_t Insert(const HilogMsg& msg, bool& isFull);
H A Dlog_data.h65 explicit HilogData(const HilogMsg& msg) in HilogData()
/ohos5.0/base/hiviewdfx/hilog/frameworks/libhilog/include/
H A Dhilog_base.h44 } HilogMsg; typedef
H A Dhilog_common.h56 #define CONTENT_LEN(pMsg) ((pMsg)->len - sizeof(HilogMsg) - (pMsg)->tagLen) /* include '\0' */
/ohos5.0/base/hiviewdfx/hilog/test/fuzztest/hilogclient_fuzzer/
H A Dhilogclient_fuzzer.cpp31 HilogMsg header = {0}; in DoSomethingInterestingWithMyAPI()
/ohos5.0/base/hiviewdfx/hilog/frameworks/libhilog/
H A Dhilog_printf.cpp170 static int PrintLog(HilogMsg& header, const char *tag, uint16_t tagLen, const char *fmt, uint16_t f… in PrintLog()
234 HilogMsg header = {0}; in HiLogPrintArgs()