Home
last modified time | relevance | path

Searched refs:CHECK_TRUE (Results 1 – 25 of 86) sorted by relevance

1234

/developtools/profiler/device/services/profiler_service/src/
Dtrace_file_reader.cpp43 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()
67CHECK_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 …]
Dtrace_file_writer.cpp119 CHECK_TRUE(stream_.is_open(), false, "open %s failed, %d!", path_.c_str(), errno); in WriteHeader()
125 CHECK_TRUE(stream_, false, "write initial header to %s failed!", path_.c_str()); in WriteHeader()
154 CHECK_TRUE(stream_.is_open(), 0, "binary file %s not open or open failed!", path_.c_str()); in Write()
158 CHECK_TRUE(stream_, 0, "binary file %s write raw buffer size failed!", path_.c_str()); in Write()
159 CHECK_TRUE(helper_.AddSegment(reinterpret_cast<uint8_t*>(&dataLen), sizeof(dataLen)), in Write()
164 CHECK_TRUE(stream_, 0, "binary file %s write raw buffer data failed!", path_.c_str()); in Write()
165 CHECK_TRUE(helper_.AddSegment(reinterpret_cast<uint8_t*>(const_cast<void*>(data)), size), in Write()
214CHECK_TRUE(message.SerializeToArray(msgData.data(), msgData.size()), 0, "SerializeToArray failed!"… in Write()
225 CHECK_TRUE(stream_.is_open(), false, "binary file %s not open or open failed!", path_.c_str()); in Finish()
227 CHECK_TRUE(stream_, false, "seek write position to head for %s failed!", path_.c_str()); in Finish()
[all …]
Dtrace_file_helper.cpp41 CHECK_TRUE(retval, false, "[%u] SHA256_Update FAILED, s:%u!", header_.data_.segments, size); in AddSegment()
49 CHECK_TRUE(retval, false, "[%u] SHA256_Final FAILED!", header_.data_.segments); in Finish()
55 CHECK_TRUE(Finish(), false, "Finish FAILED!"); in Update()
64 CHECK_TRUE(Finish(), false, "Finish FAILED!"); in Validate()
/developtools/profiler/device/plugins/ftrace_plugin/src/
Dprocess_utils.cpp56 CHECK_TRUE(pipe(pipe_) != -1, -1, "create pipe failed, %d", errno); in Init()
57CHECK_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()
143CHECK_TRUE(dup2(outFd, STDOUT_FILENO) != -1, false, "dup fd %d to stdout failed, %d", outFd, errno… in ExecuteProcess()
149CHECK_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 …]
Dflow_controller.cpp62 CHECK_TRUE(ops != nullptr, nullptr, "traceOps[%zu] is null!", i); in GetTraceOps()
84 CHECK_TRUE(ftraceSupported_, -1, "current kernel not support ftrace!"); in SetWriter()
85 CHECK_TRUE(resultWriter_ == nullptr, 0, "writer already setted!"); in SetWriter()
93 CHECK_TRUE(nprocs > 0, -1, "get processor number failed!"); in SetWriter()
101 CHECK_TRUE(ftraceParser_->Init(), -1, "ftrace parser init failed!"); in SetWriter()
107 CHECK_TRUE(AddPlatformEventsToParser(), -1, "add platform events to parser failed!"); in SetWriter()
158 CHECK_TRUE(mkstemp(fileName) >= 0, false, "Create temp file failed!"); in CreateRawDataCaches()
168 CHECK_TRUE(ReportClockTimes(), -1, "report clock times FAILED!"); in ParseBasicData()
173 CHECK_TRUE(ParseKernelSymbols(), -1, "parse kernel symbols FAILED!"); in ParseBasicData()
177 CHECK_TRUE(ParsePerCpuStatus(TRACE_START), -1, "parse TRACE_START stats failed!"); in ParseBasicData()
[all …]
Dtrace_ops.cpp70 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()
Dfile_utils.cpp52 CHECK_TRUE((path.length() < PATH_MAX) && (realpath(path.c_str(), realPath) != nullptr), "", in ReadFile()
63 CHECK_TRUE(close(fd) != -1, content, "close %s failed, %d", path.c_str(), errno); in ReadFile()
79 CHECK_TRUE(!path.empty() && (path.length() < PATH_MAX), -1, in WriteFile()
88CHECK_TRUE(!(std::regex_search(dirName, dirNameRegex) || std::regex_search(fileName, fileNameRegex… in WriteFile()
91 CHECK_TRUE(!std::regex_search(path, fileNameRegex), -1, in WriteFile()
96 CHECK_TRUE(fd >= 0, -1, "open %s failed, %d", path.c_str(), errno); in WriteFile()
99 CHECK_TRUE(close(fd) != -1, -1, "close %s failed, %d", path.c_str(), errno); in WriteFile()
Dftrace_parser.cpp87 CHECK_TRUE(printkFormats.size() > 0, false, "read printk_formats failed!"); in Init()
88CHECK_TRUE(PrintkFormatsParser::GetInstance().Parse(printkFormats), false, "parse printk_formats f… in Init()
91 CHECK_TRUE(formatDesc.size() > 0, false, "read header_page failed!"); in Init()
111CHECK_TRUE(ParseEventFormat(desc.data(), format), false, "parse %s/%s/format failed!", type.c_str(… in SetupEvent()
112CHECK_TRUE(SubEventParser::GetInstance().SetupEvent(format), false, "setup %s/%s failed!", type.c_… in SetupEvent()
121 CHECK_TRUE(ParseEventFormat(formatDesc, format), false, "parse events/header_page failed!"); in ParseHeaderPageFormat()
139 CHECK_TRUE(commitFound, false, "commit field not found!"); in ParseHeaderPageFormat()
169CHECK_TRUE(format.fields.size() > 0, false, "ParseEventFormat from %s failed!", formatDesc.c_str()… in ParseEventFormat()
402CHECK_TRUE(field.size == sizeof(uint32_t), false, "__data_loc %s, size: %hu", typeName.c_str(), fi… in ParseFieldType()
524CHECK_TRUE(ReadInc(&cur_, endOfPage_, &timestamp, sizeof(timestamp)), false, "read timestamp from … in ParsePageHeader()
[all …]
/developtools/profiler/device/plugins/api/src/
Dcommand_poller.cpp44CHECK_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), false, 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/
Dbpf_controller.cpp86 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()
115CHECK_TRUE(!selectEventGroups.empty(), -1, "VerifySelectEventGroups() failed: event group list is … in VerifySelectEventGroups()
122CHECK_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 …]
Dipc_unix_socket.cpp36 CHECK_TRUE(serverFd_ == -1, false, "Unix Socket Server is running"); in Start()
39CHECK_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()
143CHECK_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()
Dhiebpf_data_file.cpp30 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()
137CHECK_TRUE(mapAddr_ != MAP_FAILED, -1, "failed to remap data file from %u to %u", mapPos_, remapPo… in RemapFile()
/developtools/profiler/device/base/src/
Depoll_event_poller.cpp54 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()
156CHECK_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 …]
Dcommon.cpp97 CHECK_TRUE(static_cast<size_t>(nbytes) == pidStr.size(), false, "write pid FAILED!"); in IsProcessRunning()
240 CHECK_TRUE(pipe(fds) == 0, nullptr, "Pipe open failed!"); in CustomPopen()
257 CHECK_TRUE(CustomFdClose(fds[READ]) == 0, nullptr, "CustomFdClose failed!"); in CustomPopen()
259 CHECK_TRUE(CustomFdClose(fds[WRITE]) == 0, nullptr, "CustomFdClose failed!"); in CustomPopen()
261 CHECK_TRUE(CustomFdClose(fds[WRITE]) == 0, nullptr, "CustomFdClose failed!"); in CustomPopen()
263 CHECK_TRUE(CustomFdClose(fds[READ]) == 0, nullptr, "CustomFdClose failed!"); in CustomPopen()
277CHECK_TRUE(CustomFdClose(fds[WRITE]) == 0, nullptr, "%s %d CustomFdClose failed! errno(%s)\n", in CustomPopen()
281CHECK_TRUE(CustomFdClose(fds[READ]) == 0, nullptr, "%s %d CustomFdClose failed! errno(%s)\n", in CustomPopen()
320 CHECK_TRUE(CustomFdClose(fds[WRITE]) == 0, -1, "CustomFdClose failed!"); in CustomPclose()
323 CHECK_TRUE(CustomFdClose(fds[READ]) == 0, -1, "CustomFdClose failed!"); in CustomPclose()
[all …]
Devent_notifier.cpp48 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()
/developtools/profiler/device/plugins/hilog_plugin/src/
Dfile_cache.cpp32CHECK_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()
Dhilog_plugin.cpp74CHECK_TRUE(protoConfig_.ParseFromArray(configData, configSize) > 0, -1, "HilogPlugin: ParseFromArr… in Start()
77 CHECK_TRUE(!fullCmd_.empty(), -1, "HilogPlugin: fullCmd_ is empty"); in Start()
88 CHECK_TRUE(InitHilogCmd(), -1, "HilogPlugin: Init HilogCmd failed"); in Start()
137 CHECK_TRUE(g_fileCache.Open(name), false, "HilogPlugin:%s failed!", __func__); in OpenLogFile()
299 CHECK_TRUE(FindFirstSpace(&pTmp), false, "HilogPlugin:FindFirstSpace failed!"); in SetHilogLineDetails()
301 CHECK_TRUE(value > 0, false, "HilogPlugin:strtoull pid failed!"); in SetHilogLineDetails()
305 CHECK_TRUE(value > 0, false, "HilogPlugin:strtoull tid failed!"); in SetHilogLineDetails()
308 CHECK_TRUE(RemoveSpaces(&pTmp), false, "HilogPlugin:RemoveSpaces failed!"); in SetHilogLineDetails()
311 CHECK_TRUE(RemoveSpaces(&pTmp), false, "HilogPlugin:RemoveSpaces failed!"); in SetHilogLineDetails()
335 CHECK_TRUE(RemoveSpaces(&pTmp), false, "HilogPlugin: RemoveSpaces failed!"); in SetHilogLineDetails()
[all …]
/developtools/profiler/device/services/plugin_service/src/
Dplugin_session.cpp57 CHECK_TRUE(state_ == INITIAL, false, "plugin state %d invalid!", state_); in Create()
71 CHECK_TRUE(retval, false, "call PluginService::CreatePluginSession failed!"); in Create()
82 CHECK_TRUE(state_ == CREATED || state_ == STARTED, false, "plugin state %d invalid!", state_); in Destroy()
94 CHECK_TRUE(retval, false, "call PluginService::DestroyPluginSession failed!"); in Destroy()
122 CHECK_TRUE(state_ == CREATED, false, "plugin state %d invalid!", state_); in Start()
129 CHECK_TRUE(retval, false, "call PluginService::StartPluginSession failed!"); in Start()
139 CHECK_TRUE(state_ == STARTED, false, "plugin state %d invalid!", state_); in Refresh()
146 CHECK_TRUE(retval, false, "call PluginService::RefreshPluginSession failed!"); in Refresh()
160 CHECK_TRUE(state_ == STARTED, false, "plugin state %d invalid!", state_); in StopLocked()
167 CHECK_TRUE(retval, false, "call PluginService::StopPluginSession failed!"); in StopLocked()
Dplugin_session_manager.cpp44CHECK_TRUE(pluginSvc->GetPluginInfo(name, info), false, "get plugin info %s failed!", name.c_str()… in CheckPluginSha256()
47CHECK_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()
84CHECK_TRUE(pluginConfigs.size() == bufferConfigs.size(), false, "buffer and config vector size mis… in CreatePluginSessions()
[all …]
Dplugin_service.cpp122CHECK_TRUE(cmd != nullptr, false, "CreatePluginSession BuildCreateSessionCmd FAIL %s", pluginName.… in CreatePluginSession()
125 CHECK_TRUE(smb != nullptr, false, "CreateMemoryBlockLocal FAIL %s", pluginName.c_str()); in CreatePluginSession()
168CHECK_TRUE(cmd != nullptr, false, "CreatePluginSession BuildCreateSessionCmd FAIL %s", pluginName.… in CreatePluginSession()
186CHECK_TRUE(cmd != nullptr, false, "StartPluginSession BuildStartSessionCmd FAIL %s", pluginName.c_… in StartPluginSession()
202CHECK_TRUE(cmd != nullptr, false, "StopPluginSession BuildStopSessionCmd FAIL %s", pluginName.c_st… in StopPluginSession()
238CHECK_TRUE(cmd != nullptr, false, "DestroyPluginSession BuildDestroySessionCmd FAIL %s", pluginNam… in DestroyPluginSession()
264CHECK_TRUE(cmd != nullptr, false, "RefreshPluginSession BuildRefreshSessionCmd FAIL %s", pluginNam… in RefreshPluginSession()
294 CHECK_TRUE(nameIndex_.count(pluginName) > 0, std::make_pair(0, nullptr), in GetPluginContext()
298CHECK_TRUE(pluginContext_.count(id) > 0, std::make_pair(id, nullptr), "plugin id %u not found!", i… in GetPluginContext()
305 CHECK_TRUE(pluginContext_.count(id) > 0, nullptr, "plugin id %u not found!", id); in GetPluginContextById()
[all …]
/developtools/profiler/device/services/ipc/src/
Dunix_socket_client.cpp36 CHECK_TRUE(socketHandle_ == -1, false, "socketHandle_ != -1 Already Connected"); in Connect()
39 CHECK_TRUE(sock != -1, false, "Unix Socket Create FAIL"); in Connect()
50CHECK_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()
Dunix_socket_server.cpp58 CHECK_TRUE(socketHandle_ != -1, NO_RETVAL, "Unix Socket Accept socketHandle_ == -1"); in UnixSocketAccept()
63CHECK_TRUE(epoll_ctl(epfd, EPOLL_CTL_ADD, socketHandle_, &evt) != -1, NO_RETVAL, "Unix Socket Serv… in UnixSocketAccept()
106 CHECK_TRUE(socketHandle_ == -1, false, "StartServer FAIL socketHandle_ != -1"); in StartServer()
111 CHECK_TRUE(sock != -1, false, "StartServer FAIL create socket ERR : %d", errno); in StartServer()
121CHECK_TRUE(bind(sock, (struct sockaddr*)&addr, sizeof(struct sockaddr_un)) == 0, close(sock) != 0, in StartServer()
129 CHECK_TRUE(sock != -1, false, "StartServer FAIL GetControlSocket retrun : %d", sock); in StartServer()
132CHECK_TRUE(listen(sock, UNIX_SOCKET_LISTEN_COUNT) != -1, close(sock) != 0 && unlink(addrname.c_str… in StartServer()
Dservice_entry.cpp28 CHECK_TRUE(unixSocketServer_ == nullptr, false, "Servier Already Started"); in StartServer()
32 CHECK_TRUE(server->StartServer(addrname, *this), false, "StartServer FAIL"); in StartServer()
40CHECK_TRUE(serviceMap_.find(psb.serviceName_) == serviceMap_.end(), false, "RegisterService FAIL"); in RegisterService()
46CHECK_TRUE(serviceMap_.find(service_name) != serviceMap_.end(), nullptr, "FindServiceByName FAIL %… in FindServiceByName()
/developtools/profiler/device/services/shared_memory/src/
Dshare_memory_allocator.cpp61CHECK_TRUE(memoryBlocks.find(name) == memoryBlocks.end(), nullptr, "%s already used", name.c_str()… in CreateMemoryBlockLocal()
62CHECK_TRUE(size >= MIN_SHARE_MEMORY_SIZE, nullptr, "%s %d size less than %d", name.c_str(), size, in CreateMemoryBlockLocal()
76CHECK_TRUE(memoryBlocks.find(name) == memoryBlocks.end(), nullptr, "%s already used", name.c_str()… in CreateMemoryBlockRemote()
77CHECK_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()
/developtools/profiler/device/plugins/hiebpf_plugin/src/
Dhiebpf_module.cpp54 CHECK_TRUE(!g_releaseResources, 0, "%s: hiebpf released resources, return", __func__); in HiebpfSessionStart()
61CHECK_TRUE(config.ParseFromArray(configData, configSize) > 0, RET_ERR, "Parameter parsing failed"); in HiebpfSessionStart()
64 CHECK_TRUE(sizeof(config.outfile_name().c_str()) <= defaultSize - 1, RET_ERR, in HiebpfSessionStart()
67CHECK_TRUE(ret == EOK, RET_ERR, "strncpy_s error! outfile is %s", config.outfile_name().c_str()); in HiebpfSessionStart()
78 CHECK_TRUE(!g_releaseResources, 0, "%s: hiebpf released resources, return", __func__); in HiebpfSessionStop()

1234