Home
last modified time | relevance | path

Searched refs:rqst (Results 1 – 5 of 5) sorted by relevance

/base/hiviewdfx/hilog/services/hilogd/include/
Dservice_controller.h52 int GetRqst(const MsgHeader& hdr, char* rqst, int expectedLen);
56 void RequestHandler(const MsgHeader& hdr, std::function<void(const T& rqst)> handle);
59 int CheckOutputRqst(const OutputRqst& rqst);
60 void LogFilterFromOutputRqst(const OutputRqst& rqst, LogFilter& filter);
61 int CheckPersistStartRqst(const PersistStartRqst &rqst);
62 void PersistStartRqst2Msg(const PersistStartRqst &rqst, LogPersistStartMsg &msg);
75 void HandleOutputRqst(const OutputRqst &rqst);
76 void HandlePersistStartRqst(const PersistStartRqst &rqst);
77 void HandlePersistStopRqst(const PersistStopRqst &rqst);
78 void HandlePersistQueryRqst(const PersistQueryRqst& rqst);
[all …]
/base/hiviewdfx/hilog/services/hilogd/
Dservice_controller.cpp97 int ServiceController::GetRqst(const MsgHeader& hdr, char* rqst, int expectedLen) in GetRqst() argument
103 int ret = m_communicationSocket->Read(rqst, hdr.len); in GetRqst()
417 int ServiceController::CheckOutputRqst(const OutputRqst& rqst) in CheckOutputRqst() argument
419 if (((rqst.types & (0b01 << LOG_KMSG)) != 0) && (GetBitsCount(rqst.types) > 1)) { in CheckOutputRqst()
422 if (rqst.domainCount > MAX_DOMAINS) { in CheckOutputRqst()
425 if (rqst.tagCount > MAX_TAGS) { in CheckOutputRqst()
428 if (rqst.pidCount > MAX_PIDS) { in CheckOutputRqst()
433 if (uid != ROOT_UID && uid != SHELL_UID && rqst.pidCount > 0) { in CheckOutputRqst()
439 void ServiceController::LogFilterFromOutputRqst(const OutputRqst& rqst, LogFilter& filter) in LogFilterFromOutputRqst() argument
441 if (rqst.types == 0) { in LogFilterFromOutputRqst()
[all …]
/base/hiviewdfx/hilog/services/hilogtool/
Dmain.cpp329 void ToOutputRqst(OutputRqst& rqst) in ToOutputRqst()
331 rqst.headLines = headLines; in ToOutputRqst()
332 rqst.types = types; in ToOutputRqst()
333 rqst.levels = levels; in ToOutputRqst()
334 rqst.blackDomain = blackDomain; in ToOutputRqst()
335 rqst.domainCount = static_cast<uint8_t>(domainCount); in ToOutputRqst()
338 rqst.domains[i] = domains[i]; in ToOutputRqst()
340 rqst.blackTag = blackTag; in ToOutputRqst()
341 rqst.tagCount = tagCount; in ToOutputRqst()
343 (void)strncpy_s(rqst.tags[i], MAX_TAG_LEN, tags[i].c_str(), tags[i].length()); in ToOutputRqst()
[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…
53 int RequestMsgHead(const T1& rqst);
67 int LogIoctl::RequestMsgHead(const T1& rqst) in RequestMsgHead() argument
74 ret = socket.WriteAll(reinterpret_cast<const char*>(&rqst), sizeof(T1)); in RequestMsgHead()
97 int LogIoctl::Request(const T1& rqst, std::function<int(const T2& rsp)> handle) in Request() argument
103 int ret = RequestMsgHead<T1, T2>(rqst); in Request()
/base/hiviewdfx/hilog/frameworks/libhilog/ioctl/
Dlog_ioctl.cpp31 LogIoctl::LogIoctl(IoctlCmd rqst, IoctlCmd rsp) : socket(GetSocketName(rqst), 0) in LogIoctl() argument
37 rqstCmd = rqst; in LogIoctl()
301 int LogIoctl::RequestOutput(const OutputRqst& rqst, std::function<int(const OutputRsp& rsp)> handle) in RequestOutput() argument
304 int ret = RequestMsgHead<OutputRqst, OutputRsp>(rqst); in RequestOutput()
329 int LogIoctl::RequestStatsQuery(const StatsQueryRqst& rqst, std::function<int(const StatsQueryRsp& … in RequestStatsQuery() argument
332 int ret = RequestMsgHead<StatsQueryRqst, StatsQueryRsp>(rqst); in RequestStatsQuery()