Lines Matching refs:rsp
404 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()
417 .tag = rsp.data, in QueryLogHandler()
418 .log = (rsp.data + rsp.tagLen) in QueryLogHandler()
523 …t = ioctl.Request<BufferSizeGetRqst, BufferSizeGetRsp>(rqst, [&rqst](const BufferSizeGetRsp& rsp) { in BufferSizeGetHandler() argument
525 if (rsp.size[i] > 0) { in BufferSizeGetHandler()
526 … cout << "Log type " << LogType2Str(i) << " buffer size is " << Size2Str(rsp.size[i]) << endl; in BufferSizeGetHandler()
547 …t = ioctl.Request<BufferSizeSetRqst, BufferSizeSetRsp>(rqst, [&rqst](const BufferSizeSetRsp& rsp) { in BufferSizeSetHandler() argument
549 if (rsp.size[i] > 0) { in BufferSizeSetHandler()
551 << Size2Str(rsp.size[i]) << " successfully" << endl; in BufferSizeSetHandler()
552 } else if (rsp.size[i] < 0) { in BufferSizeSetHandler()
555 PrintErr(rsp.size[i]); in BufferSizeSetHandler()
598 int ret = ioctl.Request<KmsgEnableRqst, KmsgEnableRsp>(rqst, [&rqst](const KmsgEnableRsp& rsp) { in KmsgFeatureSetHandler() argument
687 … ioctl.Request<DomainFlowCtrlRqst, DomainFlowCtrlRsp>(rqst, [&rqst](const DomainFlowCtrlRsp& rsp) { in SetDomainFlowCtrl() argument
721 int ret = ioctl.Request<LogRemoveRqst, LogRemoveRsp>(rqst, [&rqst](const LogRemoveRsp& rsp) { in RemoveHandler() argument
722 cout << "Log type " << ComboLogType2Str(rsp.types) << " buffer clear successfully" << endl; in RemoveHandler()
736 int ret = ioctl.RequestStatsQuery(rqst, [&rqst](const StatsQueryRsp& rsp) { in StatsInfoQueryHandler() argument
737 HilogShowLogStatsInfo(rsp); in StatsInfoQueryHandler()
750 int ret = ioctl.Request<StatsClearRqst, StatsClearRsp>(rqst, [&rqst](const StatsClearRsp& rsp) { in StatsInfoClearHandler() argument
832 … ret = ioctl.Request<PersistStartRqst, PersistStartRsp>(rqst, [&rqst](const PersistStartRsp& rsp) { in PersistTaskStart() argument
833 cout << "Persist task [jobid:" << rsp.jobId << "] start successfully" << endl; in PersistTaskStart()
847 …nt ret = ioctl.Request<PersistStopRqst, PersistStopRsp>(rqst, [&rqst](const PersistStopRsp& rsp) { in PersistTaskStop() argument
848 for (int i = 0; i < rsp.jobNum; i++) { in PersistTaskStop()
849 cout << "Persist task [jobid:" << rsp.jobId[i] << "] stop successfully" << endl; in PersistTaskStop()
869 …ret = ioctl.Request<PersistQueryRqst, PersistQueryRsp>(rqst, [&rqst](const PersistQueryRsp& rsp) { in PersistTaskQuery() argument
870 for (int i = 0; i < rsp.jobNum; i++) { in PersistTaskQuery()
871 PrintTaskInfo(rsp.taskInfo[i]); in PersistTaskQuery()