/ohos5.0/base/hiviewdfx/hilog/services/hilogd/ |
H A D | log_collector.cpp | 33 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 D | log_buffer.cpp | 36 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 D | flow_control.cpp | 43 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 D | kmsg_parser.cpp | 89 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 D | hilog_input_socket_client.cpp | 25 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 D | hilog_base.c | 35 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 D | hilog_input_socket_client.h | 27 …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 D | log_msg_wrapper.h | 36 HilogMsg& GetHilogMsg() in GetHilogMsg() 38 return *reinterpret_cast<HilogMsg*>(msgBuffer.data()); in GetHilogMsg()
|
H A D | log_collector.h | 34 void InsertDropInfo(const HilogMsg &msg, int droppedCount); 35 size_t InsertLogToBuffer(const HilogMsg& msg);
|
H A D | flow_control.h | 24 int FlowCtrlDomain(const HilogMsg& hilogMsg);
|
H A D | log_buffer.h | 42 size_t Insert(const HilogMsg& msg, bool& isFull);
|
H A D | log_data.h | 65 explicit HilogData(const HilogMsg& msg) in HilogData()
|
/ohos5.0/base/hiviewdfx/hilog/frameworks/libhilog/include/ |
H A D | hilog_base.h | 44 } HilogMsg; typedef
|
H A D | hilog_common.h | 56 #define CONTENT_LEN(pMsg) ((pMsg)->len - sizeof(HilogMsg) - (pMsg)->tagLen) /* include '\0' */
|
/ohos5.0/base/hiviewdfx/hilog/test/fuzztest/hilogclient_fuzzer/ |
H A D | hilogclient_fuzzer.cpp | 31 HilogMsg header = {0}; in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/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 f… in PrintLog() 234 HilogMsg header = {0}; in HiLogPrintArgs()
|