/developtools/profiler/device/services/profiler_service/src/ |
D | trace_file_reader.cpp | 43 CHECK_TRUE(stream_.is_open(), false, "open %s failed, %d!", path.c_str(), errno); in Open() 46 CHECK_TRUE(stream_, false, "read header from %s failed!", path_.c_str()); in Open() 59 CHECK_TRUE(stream_.is_open(), 0, "binary file %s not open or open failed!", path_.c_str()); in Read() 60 CHECK_TRUE(!stream_.eof(), 0, "no more data in file %s stream", path_.c_str()); in Read() 66 CHECK_TRUE(msgLen > 0, 0, "read in file %s msg length: %d", path_.c_str(), msgLen); in Read() 67 …CHECK_TRUE(stream_, 0, "read msg length from %s (offset %zu) failed, or no more data!", path_.c_st… in Read() 68 CHECK_TRUE(helper_.AddSegment(reinterpret_cast<uint8_t*>(&msgLen), sizeof(msgLen)), in Read() 75 CHECK_TRUE(stream_, 0, "read msg bytes from %s (offset %zu) failed!", path_.c_str(), offset); in Read() 76 CHECK_TRUE(helper_.AddSegment(reinterpret_cast<uint8_t*>(msgData.data()), msgData.size()), in Read() 79 CHECK_TRUE(message.ParseFromArray(msgData.data(), msgData.size()), 0, "ParseFromArray failed!"); in Read() [all …]
|
D | trace_file_helper.cpp | 41 …CHECK_TRUE(retval, false, "[%u] SHA256_Update FAILED, s:%u, d:%p!", header_.data_.segments, size, … in AddSegment() 50 CHECK_TRUE(retval, false, "[%u] SHA256_Final FAILED!", header_.data_.segments); in Finish() 56 CHECK_TRUE(Finish(), false, "Finish FAILED!"); in Update() 65 CHECK_TRUE(Finish(), false, "Finish FAILED!"); in Validate()
|
D | trace_file_writer.cpp | 216 CHECK_TRUE(stream_.is_open(), false, "open %s failed, %d!", path_.c_str(), errno); in WriteHeader() 222 CHECK_TRUE(stream_, false, "write initial header to %s failed!", path_.c_str()); in WriteHeader() 251 CHECK_TRUE(stream_.is_open(), 0, "binary file %s not open or open failed!", path_.c_str()); in Write() 255 CHECK_TRUE(stream_, 0, "binary file %s write raw buffer size failed!", path_.c_str()); in Write() 256 CHECK_TRUE(helper_.AddSegment(reinterpret_cast<uint8_t*>(&dataLen), sizeof(dataLen)), in Write() 261 CHECK_TRUE(stream_, 0, "binary file %s write raw buffer data failed!", path_.c_str()); in Write() 263 CHECK_TRUE(helper_.AddSegment(reinterpret_cast<uint8_t*>(const_cast<void*>(data)), size), in Write() 277 CHECK_TRUE(stream_.is_open(), 0, "binary file %s not open or open failed!", path_.c_str()); in WriteStandalonePluginFile() 370 …CHECK_TRUE(message.SerializeToArray(msgData.data(), msgData.size()), 0, "SerializeToArray failed!"… in Write() 386 …CHECK_TRUE(ret == sizeof(header_), false, "write initial header failed!, error: %s", strerror(errn… in Finish() [all …]
|
/developtools/profiler/device/plugins/ftrace_plugin/src/ |
D | process_utils.cpp | 56 CHECK_TRUE(pipe(pipe_) != -1, -1, "create pipe failed, %d", errno); in Init() 57 … CHECK_TRUE(fcntl(pipe_[RD], F_SETFL, O_NONBLOCK) != -1, -1, "set non block to pipe[WR] failed!"); in Init() 63 CHECK_TRUE(close(pipe_[RD]) != -1, -1, "close pipe_[RD] failed, %d", errno); in Finalize() 64 CHECK_TRUE(close(pipe_[WR]) != -1, -1, "close pipe_[WR] failed, %d", errno); in Finalize() 99 CHECK_TRUE(nready >= 0, -1, "poll failed, %d", errno); in PollEvents() 136 CHECK_TRUE(inFd >= 0, false, "open /dev/null failed, %d", errno); in ExecuteProcess() 137 CHECK_TRUE(dup2(inFd, STDIN_FILENO) != -1, false, "dup nullFD to stdin failed, %d", errno); in ExecuteProcess() 143 …CHECK_TRUE(dup2(outFd, STDOUT_FILENO) != -1, false, "dup fd %d to stdout failed, %d", outFd, errno… in ExecuteProcess() 149 …CHECK_TRUE(dup2(errFd, STDERR_FILENO) != -1, false, "dup fd %d to stderr failed, %d", errFd, errno… in ExecuteProcess() 151 CHECK_TRUE(close(nullFd) != -1, false, "close nullFd failed, %d", errno); in ExecuteProcess() [all …]
|
D | trace_ops.cpp | 70 CHECK_TRUE(PrepareListCategoriesCmd(), result, "prepare list categories command failed!"); in ListCategories() 114 CHECK_TRUE(categories.size() > 0, false, "categories empty!"); in EnableCategories() 128 CHECK_TRUE(PrepareEnableCategoriesCmd(traceTime), false, "prepare enable categories failed!"); in EnableCategories() 132 CHECK_TRUE(retval == 0, false, "exec %s failed with %d", bin_.c_str(), retval); in EnableCategories() 139 CHECK_TRUE(PrepareDisableCategoriesCmd(), false, "prepare enable categories failed!"); in DisableCategories() 145 CHECK_TRUE(retval == 0, false, "exec %s failed with %d", bin_.c_str(), retval); in DisableCategories() 151 CHECK_TRUE(bin_.size() > 0, -1, "bin_ empty"); in ExecuteCommand() 152 CHECK_TRUE(args_.size() > 0, -1, "args_ empty"); in ExecuteCommand()
|
D | flow_controller.cpp | 72 CHECK_TRUE(ftraceSupported_, -1, "current kernel not support ftrace!"); in SetWriter() 73 CHECK_TRUE(resultWriter_ == nullptr, 0, "writer already setted!"); in SetWriter() 81 CHECK_TRUE(nprocs > 0, -1, "get processor number failed!"); in SetWriter() 86 CHECK_TRUE(ftraceParser_->Init(), -1, "ftrace parser init failed!"); in SetWriter() 92 CHECK_TRUE(AddPlatformEventsToParser(), -1, "add platform events to parser failed!"); in SetWriter() 165 CHECK_TRUE(mkstemp(fileName) >= 0, false, "Create temp file failed!"); in CreateRawDataCaches() 178 CHECK_TRUE(ReportClockTimes(traceResult), -1, "parse clock times FAILED!"); in ParseBasicData() 179 … CHECK_TRUE(tansporter_->Submit(std::move(traceResult)), -1, "report clock times FAILED!"); in ParseBasicData() 197 CHECK_TRUE(ParseKernelSymbols(traceResult), -1, "parse kernel symbols FAILED!"); in ParseBasicData() 198 … CHECK_TRUE(tansporter_->Submit(std::move(traceResult)), -1, "report kernel symbols FAILED!"); in ParseBasicData() [all …]
|
D | file_utils.cpp | 55 CHECK_TRUE((path.length() < PATH_MAX) && (realpath(path.c_str(), realPath) != nullptr), "", in ReadFile() 66 CHECK_TRUE(close(fd) != -1, content, "close %s failed, %d", path.c_str(), errno); in ReadFile() 82 CHECK_TRUE(!path.empty() && (path.length() < PATH_MAX), -1, in WriteFile() 92 …CHECK_TRUE(!(std::regex_search(dirName, dirNameRegex) || std::regex_search(fileName, fileNameRegex… in WriteFile() 95 CHECK_TRUE(!std::regex_search(path, fileNameRegex), -1, in WriteFile() 100 CHECK_TRUE(fd >= 0, -1, "open %s failed, %d", path.c_str(), errno); in WriteFile() 103 CHECK_TRUE(close(fd) != -1, -1, "close %s failed, %d", path.c_str(), errno); in WriteFile()
|
D | ftrace_parser.cpp | 70 CHECK_TRUE(printkFormats.size() > 0, false, "read printk_formats failed!"); in Init() 71 …CHECK_TRUE(PrintkFormatsParser::GetInstance().Parse(printkFormats), false, "parse printk_formats f… in Init() 74 CHECK_TRUE(formatDesc.size() > 0, false, "read header_page failed!"); in Init() 95 CHECK_TRUE(ParseEventFormat(desc.data(), format), false, "parse %s/%s/format failed!", in SetupEvent() 97 CHECK_TRUE(SubEventParser<FtraceEvent>::GetInstance().SetupEvent(format), in SetupEvent() 99 CHECK_TRUE(SubEventParser<ProtoEncoder::FtraceEvent>::GetInstance().SetupEvent(format), in SetupEvent() 109 CHECK_TRUE(ParseEventFormat(desc.data(), hmformat), false, " parse hm %s/%s/format failed!", in SetupEvent() 120 CHECK_TRUE(SubEventParser<FtraceEvent>::GetInstance().SetupEvent(hmformat), in SetupEvent() 122 CHECK_TRUE(SubEventParser<ProtoEncoder::FtraceEvent>::GetInstance().SetupEvent(hmformat), in SetupEvent() 131 CHECK_TRUE(ParseEventFormat(formatDesc, format), false, "parse events/header_page failed!"); in ParseHeaderPageFormat() [all …]
|
/developtools/profiler/device/plugins/api/src/ |
D | command_poller.cpp | 44 …CHECK_TRUE(cmd.buffer_sizes().size() != 0 && cmd.plugin_configs().size() != 0, false, "%s:cmd inva… in OnCreateSessionCmd() 54 CHECK_TRUE(pluginManager->LoadPlugin(config.name()), false, "%s:fail 1", __func__); in OnCreateSessionCmd() 66 …CHECK_TRUE(pluginManager->CreateWriter(config.name(), bufferSize, smbFd, eventFd, config.is_protob… in OnCreateSessionCmd() 68 CHECK_TRUE(pluginManager->CreatePluginSession(configVec), false, in OnCreateSessionCmd() 77 CHECK_TRUE(cmd.plugin_ids().size() != 0, false, "%s:cmd invalid!", __func__); in OnDestroySessionCmd() 84 CHECK_TRUE(pluginManager->DestroyPluginSession(pluginIdVec), false, in OnDestroySessionCmd() 86 CHECK_TRUE(pluginManager->ResetWriter(pluginId), false, "%s:resetWriter failed!", __func__); in OnDestroySessionCmd() 87 CHECK_TRUE(pluginManager->UnloadPlugin(pluginId), false, "%s:unloadPlugin failed!", __func__); in OnDestroySessionCmd() 95 CHECK_TRUE(cmd.plugin_ids().size() != 0 && cmd.plugin_configs().size() != 0, false, in OnStartSessionCmd() 104 CHECK_TRUE(pluginManager->StartPluginSession(pluginIds, configVec, result), false, in OnStartSessionCmd() [all …]
|
/developtools/profiler/hiebpf/src/ |
D | bpf_controller.cpp | 86 CHECK_TRUE(bpfctlr->VerifyConfigurations() == 0, nullptr, "failed to verify config"); in MakeUnique() 89 CHECK_TRUE(bpfctlr->SetUpBPF() == 0, nullptr, "failed to set up BPF"); in MakeUnique() 97 CHECK_TRUE(nr <= BPFController::DUMP_EVENTS_LIMIT, -1, "dump events exceeds limit"); in VerifyDumpEvents() 103 CHECK_TRUE(duration <= BPFController::TRACE_DURATION_LIMIT, -1, "trace duration exceeds limit"); in VerifyTraceDuration() 109 CHECK_TRUE(depth <= MAX_STACK_LIMIT, -1, "max stack depth exceeds limit"); in VerifyMaxStackDepth() 115 …CHECK_TRUE(!selectEventGroups.empty(), -1, "VerifySelectEventGroups() failed: event group list is … in VerifySelectEventGroups() 122 …CHECK_TRUE(VerifySelectEventGroups(config_.selectEventGroups_) == 0, -1, "VerifySelectEventGroups … in VerifyConfigurations() 124 CHECK_TRUE(VerifyDumpEvents(config_.dumpEvents_) == 0, -1, in VerifyConfigurations() 127 CHECK_TRUE(VerifyTraceDuration(config_.traceDuration_) == 0, -1, in VerifyConfigurations() 130 CHECK_TRUE(VerifyMaxStackDepth(config_.maxStackDepth_) == 0, -1, in VerifyConfigurations() [all …]
|
D | ipc_unix_socket.cpp | 36 CHECK_TRUE(serverFd_ == -1, false, "Unix Socket Server is running"); in Start() 39 …CHECK_TRUE(serverFd_ != -1, false, "create Unix Socket Server failed, %d: %s", errno, strerror(err… in Start() 84 CHECK_TRUE(clientFd_ != -1, false, "no available Unix Socket"); in SendMessage() 86 CHECK_TRUE(send(clientFd_, buf, size, 0) != -1, false, in SendMessage() 140 CHECK_TRUE(sockFd_ == -1, false, "Unix Socket has connected"); in Connect() 143 …CHECK_TRUE(sockFd_ != -1, false, "create Unix Socket Server failed, %d: %s", errno, strerror(errno… in Connect() 167 CHECK_TRUE(sockFd_ != -1, false, "Unix Socket disconnected"); in SendMessage() 178 CHECK_TRUE(sockFd_ != -1, false, "Unix Socket disconnected"); in RecvMessage()
|
D | hiebpf_data_file.cpp | 30 CHECK_TRUE(obj->OpenFile() == 0, nullptr, "failed to open hiebpf data file"); in MakeShared() 31 CHECK_TRUE(obj->MapFile() == 0, nullptr, "failed to map hiebpf data file into memory"); in MakeShared() 100 CHECK_TRUE(ExtendFile(mapPos_, length_) == 0, -1, in MapFile() 108 CHECK_TRUE(mapAddr_ != MAP_FAILED, -1, "mmap() failed: %s", strerror(errno)); in MapFile() 111 CHECK_TRUE(WriteFileHeader() == 0, -1, "failed to write hiebpf data file header"); in MapFile() 130 CHECK_TRUE(ExtendFile(remapPos, extendLength) == 0, -1, in RemapFile() 137 …CHECK_TRUE(mapAddr_ != MAP_FAILED, -1, "failed to remap data file from %u to %u", mapPos_, remapPo… in RemapFile()
|
/developtools/profiler/device/base/src/ |
D | epoll_event_poller.cpp | 54 CHECK_TRUE(AddContextLocked(ctx), false, "add context for %d failed!", fd); in AddFileDescriptor() 62 CHECK_TRUE(it != context_.end(), false, "fd %d not found in poll set!", fd); in RemoveFileDescriptor() 66 CHECK_TRUE(RemoveContextLocked(ctx), false, "remove context for %d failed!", fd); in RemoveFileDescriptor() 79 CHECK_TRUE(UpdateEvent(EPOLL_CTL_DEL, ctx), false, "update fd %d ctx FAILED!", ctx->fd); in RemoveContextLocked() 111 CHECK_TRUE(retval == 0, false, "epoll_ctl %s failed, %d", name.c_str(), errno); in UpdateEvent() 126 CHECK_TRUE(retval >= 0, NO_RETVAL, "epoll_wait failed, %d!", errno); in Run() 156 …CHECK_TRUE(read(eventFd_, &value, sizeof(value)) == sizeof(value), NO_RETVAL, "read eventfd FAILED… in OnNotify() 163 CHECK_TRUE(static_cast<size_t>(nbytes) == sizeof(value), false, "write eventfd FAILED!"); in Notify() 171 CHECK_TRUE(state_ == INITIAL, false, "Init FAIL %d", state_.load()); in Init() 174 CHECK_TRUE(epollFd >= 0, false, "epoll_create failed, %d!", errno); in Init() [all …]
|
D | event_notifier.cpp | 48 CHECK_TRUE(fd_ >= 0, NO_RETVAL, "create eventfd FAILED, %d", errno); in EventNotifier() 55 CHECK_TRUE(flags >= 0, NO_RETVAL, "get flags of fd %d FAILED, %d", fd, errno); in EventNotifier() 74 CHECK_TRUE(retval == sizeof(value), 0, "read value from eventfd %d failed, %d!", fd_, errno); in Take() 81 CHECK_TRUE(retval == sizeof(value), false, "write value to eventfd %d failed, %d!", fd_, errno); in Post()
|
D | common.cpp | 115 CHECK_TRUE(static_cast<size_t>(nbytes) == pidStr.size(), false, "write pid FAILED!"); in IsProcessRunning() 257 CHECK_TRUE(pipe(fds) == 0, nullptr, "Pipe open failed!"); in CustomPopen() 274 CHECK_TRUE(CustomFdClose(fds[READ]) == 0, nullptr, "CustomFdClose failed!"); in CustomPopen() 276 CHECK_TRUE(CustomFdClose(fds[WRITE]) == 0, nullptr, "CustomFdClose failed!"); in CustomPopen() 278 CHECK_TRUE(CustomFdClose(fds[WRITE]) == 0, nullptr, "CustomFdClose failed!"); in CustomPopen() 280 CHECK_TRUE(CustomFdClose(fds[READ]) == 0, nullptr, "CustomFdClose failed!"); in CustomPopen() 294 … CHECK_TRUE(CustomFdClose(fds[WRITE]) == 0, nullptr, "%s %d CustomFdClose failed! errno(%s)\n", in CustomPopen() 298 … CHECK_TRUE(CustomFdClose(fds[READ]) == 0, nullptr, "%s %d CustomFdClose failed! errno(%s)\n", in CustomPopen() 337 CHECK_TRUE(CustomFdClose(fds[WRITE]) == 0, -1, "CustomFdClose failed!"); in CustomPclose() 340 CHECK_TRUE(CustomFdClose(fds[READ]) == 0, -1, "CustomFdClose failed!"); in CustomPclose() [all …]
|
/developtools/profiler/device/plugins/hilog_plugin/src/ |
D | file_cache.cpp | 32 …CHECK_TRUE(!(path_.empty() || (path_.length() >= PATH_MAX) || (realpath(path_.c_str(), realPath) =… in Open() 42 CHECK_TRUE((len >= 0) && (bytes != nullptr), -1, "FileCache:%s param invalid!", __func__); in Write() 50 CHECK_TRUE(len >= 0, -1, "FileCache: write failed, error(%d)!", errno); in Write() 65 CHECK_TRUE(ret == 0, -1, "FileCache:%s fseek_end failed, error(%d)!", __func__, errno); in Read() 67 CHECK_TRUE(dataLen > 0, -1, "FileCache:%s ftell failed, error(%d)!", __func__, errno); in Read() 69 CHECK_TRUE(ret == 0, -1, "FileCache:%s fseek_set failed, error(%d)!", __func__, errno); in Read() 73 CHECK_TRUE(len >= 0, -1, "FileCache:%s read failed, error(%d)!", __func__, errno); in Read()
|
/developtools/profiler/device/services/plugin_service/src/ |
D | plugin_session.cpp | 57 CHECK_TRUE(state_ == INITIAL, false, "plugin state %d invalid!", state_); in Create() 72 CHECK_TRUE(retval, false, "call PluginService::CreatePluginSession failed!"); in Create() 83 CHECK_TRUE(state_ == CREATED || state_ == STARTED, false, "plugin state %d invalid!", state_); in Destroy() 96 CHECK_TRUE(retval, false, "call PluginService::DestroyPluginSession failed!"); in Destroy() 124 CHECK_TRUE(state_ == CREATED, false, "plugin state %d invalid!", state_); in Start() 131 CHECK_TRUE(retval, false, "call PluginService::StartPluginSession failed!"); in Start() 141 CHECK_TRUE(state_ == STARTED, false, "plugin state %d invalid!", state_); in Refresh() 149 CHECK_TRUE(retval, false, "call PluginService::RefreshPluginSession failed!"); in Refresh() 163 CHECK_TRUE(state_ == STARTED, false, "plugin state %d invalid!", state_); in StopLocked() 170 CHECK_TRUE(retval, false, "call PluginService::StopPluginSession failed!"); in StopLocked()
|
D | plugin_session_manager.cpp | 44 …CHECK_TRUE(pluginSvc->GetPluginInfo(name, info), false, "get plugin info %s failed!", name.c_str()… in CheckPluginSha256() 47 … CHECK_TRUE(devSha == reqSha, false, "SHA256 mismatch: %s, %s!", devSha.c_str(), reqSha.c_str()); in CheckPluginSha256() 57 CHECK_TRUE(pluginSessions_.count(name) == 0, nullptr, "plugin name %s exists!", name.c_str()); in CreatePluginSession() 58 CHECK_TRUE(CheckBufferConfig(bufferConfig), nullptr, "buffer config invalid!"); in CreatePluginSession() 59 CHECK_TRUE(CheckPluginSha256(pluginConfig), nullptr, "SHA256 check failed!"); in CreatePluginSession() 63 CHECK_TRUE(session->IsAvailable(), nullptr, "config plugin for %s failed!", name.c_str()); in CreatePluginSession() 71 CHECK_TRUE(pluginSessions_.count(name) == 0, nullptr, "plugin name %s exists!", name.c_str()); in CreatePluginSession() 72 CHECK_TRUE(CheckPluginSha256(pluginConfig), nullptr, "SHA256 check failed!"); in CreatePluginSession() 76 CHECK_TRUE(session->IsAvailable(), nullptr, "config plugin for %s failed!", name.c_str()); in CreatePluginSession() 84 …CHECK_TRUE(pluginConfigs.size() == bufferConfigs.size(), false, "buffer and config vector size mis… in CreatePluginSessions() [all …]
|
D | plugin_service.cpp | 141 …CHECK_TRUE(cmd != nullptr, false, "CreatePluginSession BuildCreateSessionCmd FAIL %s", pluginName.… in CreatePluginSession() 144 CHECK_TRUE(smb != nullptr, false, "CreateMemoryBlockLocal FAIL %s", pluginName.c_str()); in CreatePluginSession() 152 CHECK_TRUE(pluginServiceImpl_->SendHeartBeat(*pluginCtx->context), false, in CreatePluginSession() 192 …CHECK_TRUE(cmd != nullptr, false, "CreatePluginSession BuildCreateSessionCmd FAIL %s", pluginName.… in CreatePluginSession() 193 CHECK_TRUE(pluginServiceImpl_->SendHeartBeat(*pluginCtx->context), false, in CreatePluginSession() 210 …CHECK_TRUE(cmd != nullptr, false, "StartPluginSession BuildStartSessionCmd FAIL %s", pluginName.c_… in StartPluginSession() 211 CHECK_TRUE(pluginServiceImpl_->SendHeartBeat(*pluginCtx->context), false, in StartPluginSession() 227 …CHECK_TRUE(cmd != nullptr, false, "StopPluginSession BuildStopSessionCmd FAIL %s", pluginName.c_st… in StopPluginSession() 228 CHECK_TRUE(pluginServiceImpl_->SendHeartBeat(*pluginCtx->context), false, in StopPluginSession() 255 …CHECK_TRUE(cmd != nullptr, false, "DestroyPluginSession BuildDestroySessionCmd FAIL %s", pluginNam… in DestroyPluginSession() [all …]
|
/developtools/profiler/device/plugins/ftrace_plugin/include/ |
D | ftrace_parser.h | 49 CHECK_TRUE(ParsePageHeader(), false, "parse page header fail!"); in ParsePage() 56 CHECK_TRUE(ReadInc(&cur_, endOfData_, &eventHeader, sizeof(FtraceEventHeader)), false, in ParsePage() 65 CHECK_TRUE(retval, false, "parse PADDING data failed!"); in ParsePage() 69 CHECK_TRUE(retval, false, "parse TIME_EXTEND failed!"); in ParsePage() 73 CHECK_TRUE(retval, false, "parse TIME_STAMP failed!"); in ParsePage() 77 CHECK_TRUE(retval, false, "parse record data failed!"); in ParsePage() 119 …CHECK_TRUE(ReadInc(&cur_, endOfData_, &evtSize, sizeof(evtSize)), false, "read event size failed!"… in ParseDataRecord() 129 CHECK_TRUE(ReadInc(&cur_, evEnd, &evId, sizeof(evId)), false, "read event ID failed!"); in ParseDataRecord() 146 CHECK_TRUE(dataSize >= parseEventCtx->format.eventSize, false, in ParseFtraceEvent() 150 CHECK_TRUE(ParseFtraceCommonFields(ftraceEvent, data, dataSize, parseEventCtx->format, pid), in ParseFtraceEvent() [all …]
|
/developtools/profiler/device/services/ipc/src/ |
D | unix_socket_client.cpp | 36 CHECK_TRUE(socketHandle_ == -1, false, "socketHandle_ != -1 Already Connected"); in Connect() 39 CHECK_TRUE(sock != -1, false, "Unix Socket Create FAIL"); in Connect() 50 …CHECK_TRUE(connect(sock, (struct sockaddr*)&addr, sizeof(struct sockaddr_un)) != -1, close(sock) !… in Connect() 60 CHECK_TRUE( in Connect() 64 CHECK_TRUE(CreateRecvThread(), close(sock) != 0, "Unix Socket Create Recv Thread FAIL"); in Connect()
|
D | service_entry.cpp | 28 CHECK_TRUE(unixSocketServer_ == nullptr, false, "Servier Already Started"); in StartServer() 32 CHECK_TRUE(server->StartServer(addrname, *this), false, "StartServer FAIL"); in StartServer() 40 …CHECK_TRUE(serviceMap_.find(psb.serviceName_) == serviceMap_.end(), false, "RegisterService FAIL"); in RegisterService() 46 …CHECK_TRUE(serviceMap_.find(service_name) != serviceMap_.end(), nullptr, "FindServiceByName FAIL %… in FindServiceByName()
|
D | unix_socket_server.cpp | 66 CHECK_TRUE(socketHandle_ != -1, NO_RETVAL, "Unix Socket Accept socketHandle_ == -1"); in UnixSocketAccept() 71 …CHECK_TRUE(epoll_ctl(epfd, EPOLL_CTL_ADD, socketHandle_, &evt) != -1, NO_RETVAL, "Unix Socket Serv… in UnixSocketAccept() 116 CHECK_TRUE(socketHandle_ == -1, false, "StartServer FAIL socketHandle_ != -1"); in StartServer() 121 CHECK_TRUE(sock != -1, false, "StartServer FAIL create socket ERR : %d", errno); in StartServer() 131 … CHECK_TRUE(bind(sock, (struct sockaddr*)&addr, sizeof(struct sockaddr_un)) == 0, close(sock) != 0, in StartServer() 139 CHECK_TRUE(sock != -1, false, "StartServer FAIL GetControlSocket return : %d", sock); in StartServer() 142 …CHECK_TRUE(listen(sock, UNIX_SOCKET_LISTEN_COUNT) != -1, close(sock) != 0 && unlink(addrname.c_str… in StartServer()
|
/developtools/profiler/device/plugins/native_daemon/native_memory_profiler_sa/src/ |
D | native_memory_profiler_sa_client_manager.cpp | 31 CHECK_TRUE(CheckConfig(config), RET_ERR, "CheckConfig failed"); in Start() 63 CHECK_TRUE(pid != 0, RET_ERR, "NativeMemoryProfilerSaClientManager: pid is 0"); in Stop() 75 CHECK_TRUE(!name.empty(), RET_ERR, "NativeMemoryProfilerSaClientManager: name is empty"); in Stop() 88 CHECK_TRUE(fd != 0, RET_ERR, "NativeMemoryProfilerSaClientManager: fd is 0"); in DumpData() 90 CHECK_TRUE(CheckConfig(config), RET_ERR, "CheckConfig failed"); in DumpData() 124 CHECK_TRUE(fd != 0, RET_ERR, "NativeMemoryProfilerSaClientManager: GetMallocStats fd is 0"); in GetMallocStats() 125 CHECK_TRUE(pid > 0, RET_ERR, "NativeMemoryProfilerSaClientManager: GetMallocStats invalid pid"); in GetMallocStats() 126 …CHECK_TRUE(type == 0 || type == 1, RET_ERR, "NativeMemoryProfilerSaClientManager: type is invalid"… in GetMallocStats()
|
/developtools/profiler/device/services/shared_memory/src/ |
D | share_memory_allocator.cpp | 61 …CHECK_TRUE(memoryBlocks.find(name) == memoryBlocks.end(), nullptr, "%s already used", name.c_str()… in CreateMemoryBlockLocal() 62 … CHECK_TRUE(size >= MIN_SHARE_MEMORY_SIZE, nullptr, "%s %d size less than %d", name.c_str(), size, in CreateMemoryBlockLocal() 76 …CHECK_TRUE(memoryBlocks.find(name) == memoryBlocks.end(), nullptr, "%s already used", name.c_str()… in CreateMemoryBlockRemote() 77 … CHECK_TRUE(size >= MIN_SHARE_MEMORY_SIZE, nullptr, "%s %d size less than %d", name.c_str(), size, in CreateMemoryBlockRemote() 92 CHECK_TRUE(it != memoryBlocks.end(), nullptr, "FAIL"); in FindMemoryBlockByName()
|