Home
last modified time | relevance | path

Searched refs:rsp (Results 1 – 6 of 6) sorted by relevance

/base/hiviewdfx/hilog/frameworks/libhilog/ioctl/
Dlog_ioctl.cpp31 LogIoctl::LogIoctl(IoctlCmd rqst, IoctlCmd rsp) : socket(GetSocketName(rqst), 0) in LogIoctl() argument
38 rspCmd = rsp; in LogIoctl()
64 int LogIoctl::GetRsp(char* rsp, int len) in GetRsp() argument
66 int ret = socket.RecvMsg(rsp, len); in GetRsp()
73 int LogIoctl::ReceiveProcTagStats(StatsQueryRsp &rsp) in ReceiveProcTagStats() argument
76 for (i = 0; i < rsp.procNum; i++) { in ReceiveProcTagStats()
77 ProcStatsRsp &pStats = rsp.pStats[i]; in ReceiveProcTagStats()
104 int LogIoctl::ReceiveProcLogTypeStats(StatsQueryRsp &rsp) in ReceiveProcLogTypeStats() argument
107 for (i = 0; i < rsp.procNum; i++) { in ReceiveProcLogTypeStats()
108 ProcStatsRsp &pStats = rsp.pStats[i]; in ReceiveProcLogTypeStats()
[all …]
/base/hiviewdfx/hilog/frameworks/libhilog/ioctl/include/
Dlog_ioctl.h34 LogIoctl(IoctlCmd rqst, IoctlCmd rsp);
38 int Request(const T1& rqst, std::function<int(const T2& rsp)> handle);
39 int RequestOutput(const OutputRqst& rqst, std::function<int(const OutputRsp& rsp)> handle);
40 …int RequestStatsQuery(const StatsQueryRqst& rqst, std::function<int(const StatsQueryRsp& rsp)> han…
51 int GetRsp(char* rsp, int len);
55 int ReceiveAndProcessOutputRsp(std::function<int(const OutputRsp& rsp)> handle);
56 int ReceiveAndProcessStatsQueryRsp(std::function<int(const StatsQueryRsp& rsp)> handle);
57 int ReceiveProcTagStats(StatsQueryRsp &rsp);
58 int ReceiveProcLogTypeStats(StatsQueryRsp &rsp);
59 int ReceiveProcStats(StatsQueryRsp &rsp);
[all …]
/base/hiviewdfx/hilog/services/hilogtool/
Dlog_display.cpp95 static uint32_t GetTotalLines(const StatsRsp &rsp) in GetTotalLines() argument
100 lines += rsp.lines[i]; in GetTotalLines()
105 static uint64_t GetTotalLen(const StatsRsp &rsp) in GetTotalLen() argument
110 len += rsp.len[i]; in GetTotalLen()
115 static void PrintStats(const StatsRsp &rsp) in PrintStats() argument
118 cout << setw(FREQ_W) << setprecision(FLOAT_PRECSION) << rsp.freqMax << colCmd; in PrintStats()
119 cout << setw(TIME_W) << TimeStr(rsp.freqMaxSec, rsp.freqMaxNsec) << colCmd; in PrintStats()
120 cout << setw(TP_W) << setprecision(FLOAT_PRECSION) << rsp.throughputMax << colCmd; in PrintStats()
121 cout << setw(TIME_W) << TimeStr(rsp.tpMaxSec, rsp.tpMaxNsec) << colCmd; in PrintStats()
122 cout << setw(LINES_W) << GetTotalLines(rsp) << colCmd; in PrintStats()
[all …]
Dmain.cpp404 int ret = ioctl.RequestOutput(rqst, [&context](const OutputRsp& rsp) { in QueryLogHandler() argument
405 if (rsp.end) { in QueryLogHandler()
409 .level = rsp.level, in QueryLogHandler()
410 .type = rsp.type, in QueryLogHandler()
411 .pid = rsp.pid, in QueryLogHandler()
412 .tid = rsp.tid, in QueryLogHandler()
413 .domain = rsp.domain, in QueryLogHandler()
414 .tv_sec = rsp.tv_sec, in QueryLogHandler()
415 .tv_nsec = rsp.tv_nsec, in QueryLogHandler()
416 .mono_sec = rsp.mono_sec, in QueryLogHandler()
[all …]
/base/hiviewdfx/hilog/services/hilogd/
Dservice_controller.cpp128 OutputRsp rsp; in WriteQueryResponse() local
130 rsp.end = true; // tell client it's the last messsage in WriteQueryResponse()
131 return m_communicationSocket->Write(reinterpret_cast<char*>(&rsp), sizeof(rsp)); in WriteQueryResponse()
134 rsp.len = data.len; /* data len, equals tag_len plus content length, include '\0' */ in WriteQueryResponse()
135 rsp.level = data.level; in WriteQueryResponse()
136 rsp.type = data.type; in WriteQueryResponse()
137 rsp.tagLen = data.tag_len; /* include '\0' */ in WriteQueryResponse()
138 rsp.pid = data.pid; in WriteQueryResponse()
139 rsp.tid = data.tid; in WriteQueryResponse()
140 rsp.domain = data.domain; in WriteQueryResponse()
[all …]
/base/hiviewdfx/hilog/services/hilogtool/include/
Dlog_display.h24 void HilogShowLogStatsInfo(const StatsQueryRsp& rsp);