Home
last modified time | relevance | path

Searched refs:CHECK_TRUE (Results 1 - 25 of 102) sorted by relevance

12345

/developtools/profiler/device/services/profiler_service/src/
H A Dtrace_file_reader.cpp49 CHECK_TRUE(stream_.is_open(), false, "open %s failed, %d!", realPath.c_str(), errno); in Open()
52 CHECK_TRUE(stream_, false, "read header from %s failed!", realPath.c_str()); in Open()
65 CHECK_TRUE(stream_.is_open(), 0, "binary file %s not open or open failed!", path_.c_str()); in Read()
66 CHECK_TRUE(!stream_.eof(), 0, "no more data in file %s stream", path_.c_str()); in Read()
72 CHECK_TRUE(msgLen > 0, 0, "read in file %s msg length: %d", path_.c_str(), msgLen); in Read()
73 CHECK_TRUE(stream_, 0, "read msg length from %s (offset %zu) failed, or no more data!", path_.c_str(), offset); in Read()
74 CHECK_TRUE(helper_.AddSegment(reinterpret_cast<uint8_t*>(&msgLen), sizeof(msgLen)), in Read()
81 CHECK_TRUE(stream_, 0, "read msg bytes from %s (offset %zu) failed!", path_.c_str(), offset); in Read()
82 CHECK_TRUE(helper_.AddSegment(reinterpret_cast<uint8_t*>(msgData.data()), msgData.size()), in Read()
85 CHECK_TRUE(messag in Read()
[all...]
H A Dtrace_file_helper.cpp41 CHECK_TRUE(retval, false, "[%u] SHA256_Update FAILED, s:%u, d:%p!", header_.data_.segments, size, data); 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()
/developtools/profiler/hiebpf/src/
H A Dbpf_controller.cpp87 CHECK_TRUE(bpfctlr->VerifyConfigurations() == 0, nullptr, "failed to verify config"); in MakeUnique()
90 CHECK_TRUE(bpfctlr->SetUpBPF() == 0, nullptr, "failed to set up BPF"); in MakeUnique()
98 CHECK_TRUE(nr <= BPFController::DUMP_EVENTS_LIMIT, -1, "dump events exceeds limit"); in VerifyDumpEvents()
104 CHECK_TRUE(duration <= BPFController::TRACE_DURATION_LIMIT, -1, "trace duration exceeds limit"); in VerifyTraceDuration()
110 CHECK_TRUE(depth <= MAX_STACK_LIMIT, -1, "max stack depth exceeds limit"); in VerifyMaxStackDepth()
116 CHECK_TRUE(!selectEventGroups.empty(), -1, "VerifySelectEventGroups() failed: event group list is empty"); in VerifySelectEventGroups()
123 CHECK_TRUE(VerifySelectEventGroups(config_.selectEventGroups_) == 0, -1, "VerifySelectEventGroups fail"); in VerifyConfigurations()
125 CHECK_TRUE(VerifyDumpEvents(config_.dumpEvents_) == 0, -1, in VerifyConfigurations()
128 CHECK_TRUE(VerifyTraceDuration(config_.traceDuration_) == 0, -1, in VerifyConfigurations()
131 CHECK_TRUE(VerifyMaxStackDept in VerifyConfigurations()
[all...]
H A 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()
137 CHECK_TRUE(mapAddr_ != MAP_FAILED, -1, "failed to remap data file from %u to %u", mapPos_, remapPos); in RemapFile()
H A Dipc_unix_socket.cpp36 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(errno)); in Start()
83 CHECK_TRUE(clientFd_ != -1, false, "no available Unix Socket"); in SendMessage()
85 CHECK_TRUE(send(clientFd_, buf, size, 0) != -1, false, in SendMessage()
139 CHECK_TRUE(sockFd_ == -1, false, "Unix Socket has connected"); in Connect()
142 CHECK_TRUE(sockFd_ != -1, false, "create Unix Socket Server failed, %d: %s", errno, strerror(errno)); in Connect()
166 CHECK_TRUE(sockFd_ != -1, false, "Unix Socket disconnected"); in SendMessage()
177 CHECK_TRUE(sockFd_ != -1, false, "Unix Socket disconnected"); in RecvMessage()
/developtools/profiler/device/base/src/
H A 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()
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(epollF in Init()
[all...]
H A 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/api/src/
H A Dcommand_poller.cpp44 CHECK_TRUE(cmd.buffer_sizes().size() != 0 && cmd.plugin_configs().size() != 0, false, "%s:cmd invalid!", __func__); 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_protobuf_serialize()), 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(pluginManage in OnStartSessionCmd()
[all...]
/developtools/profiler/device/plugins/hilog_plugin/src/
H A Dfile_cache.cpp32 CHECK_TRUE(!(path_.empty() || (path_.length() >= PATH_MAX) || (realpath(path_.c_str(), realPath) == nullptr)), 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/hiperf/src/
H A Dperf_file_format.cpp104 CHECK_TRUE(offset_ + size > maxSize_, false, 1, in Write()
106 CHECK_TRUE(offset_ + max > maxSize_, false, 1, in Write()
108 CHECK_TRUE(wBuffer_ == nullptr, false, 0, ""); in Write()
134 CHECK_TRUE(!Read(size), false, 0, ""); in Read()
137 CHECK_TRUE(size == 0 or size > maxSize_, false, 0, ""); in Read()
139 CHECK_TRUE(!Read(buf, size), false, 0, ""); in Read()
140 CHECK_TRUE(buf[size - 1] != 0, false, 0, ""); in Read()
180 CHECK_TRUE(!Read(stdString_), NO_RETVAL, 0, ""); // or throw ... in PerfFileSectionString()
191 CHECK_TRUE(size < GetSize(), false, 0, ""); in GetBinary() function
292 CHECK_TRUE(!Writ in GetBinary()
[all...]
H A Dspe_decoder.cpp60 CHECK_TRUE(buf == nullptr || packet == nullptr, -1, 1, "Invalid pointer!"); in SpeGetPayload()
80 CHECK_TRUE(packet == nullptr, -1, 1, "Invalid pointer!"); in SpeGetPad()
88 CHECK_TRUE(buf == nullptr || packet == nullptr, -1, 1, "Invalid pointer!"); in SpeGetAlignment()
100 CHECK_TRUE(packet == nullptr, -1, 1, "Invalid pointer!"); in SpeGetEnd()
108 CHECK_TRUE(buf == nullptr || packet == nullptr, -1, 1, "Invalid pointer!"); in SpeGetTimestamp()
116 CHECK_TRUE(buf == nullptr || packet == nullptr, -1, 1, "Invalid pointer!"); in SpeGetEvents()
125 CHECK_TRUE(buf == nullptr || packet == nullptr, -1, 1, "Invalid pointer!"); in SpeGetDataSource()
133 CHECK_TRUE(buf == nullptr || packet == nullptr, -1, 1, "Invalid pointer!"); in SpeGetContext()
142 CHECK_TRUE(buf == nullptr || packet == nullptr, -1, 1, "Invalid pointer!"); in SpeGetOpType()
151 CHECK_TRUE(bu in SpeGetCounter()
[all...]
H A Dperf_file_writer.cpp130 CHECK_TRUE(record.GetSize() > RECORD_SIZE_LIMIT_SPE, false, 1, in WriteRecord()
135 CHECK_TRUE(!record.GetBinary(buf), false, 0, ""); in WriteRecord()
137 CHECK_TRUE(!Write(buf.data(), record.GetSize()), false, 0, ""); in WriteRecord()
192 CHECK_TRUE(record == nullptr, true, 0, ""); in ReadRecords()
213 CHECK_TRUE(fread(buf, len, 1, fp_) != 1, false, 1, "failed to read file"); in Read()
243 CHECK_TRUE(len != 0u && fwrite(buf, len, 1, fp_) != 1, false, 1, "PerfFileWriter fwrite fail "); in Write()
252 CHECK_TRUE(attrIds.empty(), false, 0, ""); in WriteAttrAndId()
263 CHECK_TRUE(!GetFilePos(idSectionOffset), false, 0, ""); in WriteAttrAndId()
268 CHECK_TRUE(!Write(attrId.ids.data(), attrId.ids.size() * sizeof(uint64_t)), false, 0, ""); in WriteAttrAndId()
273 CHECK_TRUE(!GetFilePo in WriteAttrAndId()
[all...]
H A Dperf_file_reader.cpp51 CHECK_TRUE(!UncompressFile(fileName, ".perf.data"), nullptr, 1, in Instance()
73 CHECK_TRUE(!reader->ReadAttrSection(), nullptr, 0, ""); in Instance()
142 CHECK_TRUE(header_.attrSize == 0, false, 0, ""); in ReadAttrSection()
144 CHECK_TRUE(attrCount == 0, false, 1, "no attr in file"); in ReadAttrSection()
151 CHECK_TRUE(!Read(buf.data(), buf.size()), false, 0, ""); in ReadAttrSection()
172 CHECK_TRUE(!ReadIdsForAttr(vecAttr_[i], &ids), false, 0, ""); in ReadAttrSection()
192 CHECK_TRUE(ids == nullptr, false, 0, ""); in ReadIdsForAttr()
194 CHECK_TRUE(!Read(ids->data(), attr.ids.size), false, 0, ""); in ReadIdsForAttr()
220 CHECK_TRUE(!ReadRecord(callback), false, LOG_TYPE_PRINTF, "some record format is error!\n"); in ReadDataSection()
233 CHECK_TRUE(vecAttr in GetDefaultAttr()
[all...]
/developtools/profiler/device/plugins/ftrace_plugin/src/
H A Dflow_controller.cpp75 CHECK_TRUE(ftraceSupported_, -1, "current kernel not support ftrace!"); in SetWriter()
76 CHECK_TRUE(resultWriter_ == nullptr, 0, "writer already setted!"); in SetWriter()
84 CHECK_TRUE(nprocs > 0, -1, "get processor number failed!"); in SetWriter()
89 CHECK_TRUE(ftraceParser_->Init(), -1, "ftrace parser init failed!"); in SetWriter()
95 CHECK_TRUE(AddPlatformEventsToParser(), -1, "add platform events to parser failed!"); in SetWriter()
171 CHECK_TRUE(mkstemp(fileName) >= 0, false, "Create temp file failed!"); in CreateRawDataCaches()
184 CHECK_TRUE(ReportClockTimes(traceResult), false, "parse clock times FAILED!"); in ParseBasicData()
185 CHECK_TRUE(tansporter_->Submit(std::move(traceResult)), false, "report clock times FAILED!"); in ParseBasicData()
190 CHECK_TRUE(ReportClockTimes(traceResult), false, "parse clock times FAILED!"); in ParseBasicData()
201 CHECK_TRUE(ParseKernelSymbol in ParseBasicData()
[all...]
H A Dfile_utils.cpp55 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)), -1, 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()
H A Dftrace_parser.cpp74 CHECK_TRUE(printkFormats.size() > 0, false, "read printk_formats failed!"); in Init()
75 CHECK_TRUE(PrintkFormatsParser::GetInstance().Parse(printkFormats), false, "parse printk_formats failed"); in Init()
78 CHECK_TRUE(formatDesc.size() > 0, false, "read header_page failed!"); in Init()
99 CHECK_TRUE(ParseEventFormat(desc.data(), format), false, "parse %s/%s/format failed!", in SetupEvent()
101 CHECK_TRUE(SubEventParser<FtraceEvent>::GetInstance().SetupEvent(format), in SetupEvent()
103 CHECK_TRUE(SubEventParser<ProtoEncoder::FtraceEvent>::GetInstance().SetupEvent(format), in SetupEvent()
112 CHECK_TRUE(ParseEventFormat(formatDesc, format), false, "parse events/header_page failed!"); in ParseHeaderPageFormat()
126 CHECK_TRUE(commitFound, false, "commit field not found!"); in ParseHeaderPageFormat()
155 CHECK_TRUE(format.fields.size() > 0, false, "ParseEventFormat failed!"); in ParseEventFormat()
337 CHECK_TRUE(fiel in ParseFieldType()
[all...]
/developtools/profiler/device/services/plugin_service/src/
H A Dplugin_session.cpp57 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(retva in StopLocked()
[all...]
H A Dplugin_service.cpp141 CHECK_TRUE(cmd != nullptr, false, "CreatePluginSession BuildCreateSessionCmd FAIL %s", pluginName.c_str()); 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.c_str()); in CreatePluginSession()
193 CHECK_TRUE(pluginServiceImpl_->SendHeartBeat(*pluginCtx->context), false, in CreatePluginSession()
210 CHECK_TRUE(cmd != nullptr, false, "StartPluginSession BuildStartSessionCmd FAIL %s", pluginName.c_str()); in StartPluginSession()
211 CHECK_TRUE(pluginServiceImpl_->SendHeartBeat(*pluginCtx->context), false, in StartPluginSession()
227 CHECK_TRUE(cmd != nullptr, false, "StopPluginSession BuildStopSessionCmd FAIL %s", pluginName.c_str()); in StopPluginSession()
228 CHECK_TRUE(pluginServiceImpl_->SendHeartBeat(*pluginCtx->context), false, in StopPluginSession()
255 CHECK_TRUE(cm in DestroyPluginSession()
[all...]
H A Dplugin_session_manager.cpp44 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(pluginConfig in CreatePluginSessions()
[all...]
/developtools/profiler/device/plugins/native_daemon/native_memory_profiler_sa/src/
H A Dnative_memory_profiler_sa_client_manager.cpp31 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/ipc/src/
H A 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()
50 CHECK_TRUE(connect(sock, (struct sockaddr*)&addr, sizeof(struct sockaddr_un)) != -1, close(sock) != 0, in Connect()
60 CHECK_TRUE( in Connect()
64 CHECK_TRUE(CreateRecvThread(callback), close(sock) != 0, "Unix Socket Create Recv Thread FAIL"); in Connect()
H A 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()
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 %s", in FindServiceByName()
H A Dunix_socket_server.cpp67 CHECK_TRUE(socketHandle_ != -1, NO_RETVAL, "Unix Socket Accept socketHandle_ == -1"); in UnixSocketAccept()
72 CHECK_TRUE(epoll_ctl(epfd, EPOLL_CTL_ADD, socketHandle_, &evt) != -1, NO_RETVAL, "Unix Socket Server Exit"); in UnixSocketAccept()
123 CHECK_TRUE(socketHandle_ == -1, false, "StartServer FAIL socketHandle_ != -1"); in StartServer()
128 CHECK_TRUE(sock != -1, false, "StartServer FAIL create socket ERR : %d", errno); in StartServer()
138 CHECK_TRUE(bind(sock, (struct sockaddr*)&addr, sizeof(struct sockaddr_un)) == 0, close(sock) != 0, in StartServer()
146 CHECK_TRUE(sock != -1, false, "StartServer FAIL GetControlSocket return : %d", sock); in StartServer()
149 CHECK_TRUE(listen(sock, UNIX_SOCKET_LISTEN_COUNT) != -1, close(sock) != 0 && unlink(addrname.c_str()) == 0, in StartServer()
/developtools/profiler/device/plugins/ftrace_plugin/include/
H A Dftrace_parser.h49 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()
118 CHECK_TRUE(ReadInc(&cur_, endOfData_, &evtSize, sizeof(evtSize)), false, "read event size failed!"); in ParseDataRecord()
128 CHECK_TRUE(ReadInc(&cur_, evEnd, &evId, sizeof(evId)), false, "read event ID failed!"); in ParseDataRecord()
145 CHECK_TRUE( in ParseFtraceEvent()
151 CHECK_TRUE(ParseFtraceCommonField in ParseFtraceEvent()
[all...]
/developtools/profiler/device/services/shared_memory/src/
H A Dshare_memory_allocator.cpp61 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()

Completed in 11 milliseconds

12345