/developtools/profiler/device/plugins/native_hook/src/ |
H A D | runtime_stack_range.cpp | 32 const char* end; member 35 StandardLibrary(uint64_t begin, uint64_t end, const std::string& name) in StandardLibrary() 36 : soBegin_(begin), soEnd_(end), name_(name) in StandardLibrary() 47 static void GetThreadRuntimeStackRange(const char** start, const char** end) in GetThreadRuntimeStackRange() argument 50 *end = nullptr; in GetThreadRuntimeStackRange() 56 *end = *start + stackSize; in GetThreadRuntimeStackRange() 184 g_mainStack.end = reinterpret_cast<char*>(CvtStrToInt(line.c_str() + concatPos + 1, BASE_MAX)); in GetMainThreadRuntimeStackRange() 198 static bool IfContained(const char* start, const char* end, const char* ptr) in IfContained() argument 200 bool ret = (ptr >= start && ptr < end); in IfContained() 204 static void GetRuntimeSigalAltStackRange(char** start, char** end) in GetRuntimeSigalAltStackRange() argument 224 GetRuntimeStackEnd(const char* stackptr, const char** end, pid_t pid, pid_t tid) GetRuntimeStackEnd() argument [all...] |
H A D | hook_client.cpp | 218 if (it == g_memTagMap.end()) { in GetTagId() 405 struct timespec end = {}; in hook_malloc() local 406 clock_gettime(CLOCK_REALTIME, &end); in hook_malloc() 407 g_timeCost += (end.tv_sec - start.tv_sec) * S_TO_NS + (end.tv_nsec - start.tv_nsec); in hook_malloc() 442 GetRuntimeStackEnd(stackptr, &stackendptr, g_hookPid, GetCurThreadId()); // stack end pointer in hook_malloc() 453 GetRuntimeStackEnd(stackptr, &stackendptr, g_hookPid, GetCurThreadId()); // stack end pointer in hook_malloc() 476 struct timespec end = {}; in hook_malloc() local 477 clock_gettime(CLOCK_REALTIME, &end); in hook_malloc() 478 g_timeCost += (end in hook_malloc() 510 struct timespec end = {}; hook_aligned_alloc() local 581 struct timespec end = {}; hook_aligned_alloc() local 624 struct timespec end = {}; hook_calloc() local 691 struct timespec end = {}; hook_calloc() local 733 struct timespec end = {}; hook_realloc() local 818 struct timespec end = {}; hook_realloc() local 858 struct timespec end = {}; hook_free() local 941 struct timespec end = {}; hook_free() local 994 struct timespec end = {}; hook_mmap() local 1079 struct timespec end = {}; hook_mmap() local 1162 struct timespec end = {}; hook_munmap() local 1208 struct timespec end = {}; hook_prctl() local 1285 struct timespec end = {}; hook_memtrace() local [all...] |
/developtools/profiler/hiebpf/include/ |
H A D | commandline_flags.h | 419 for (std::size_t start = 0, end = 0; end <= valStr.length(); ++end) { in ParseBoolArrayFlag() 420 if (valStr[end] == ',' or end == valStr.length()) { in ParseBoolArrayFlag() 421 if (start == end) { in ParseBoolArrayFlag() 425 auto str = valStr.substr(start, end - start); in ParseBoolArrayFlag() 437 start = end + 1; in ParseBoolArrayFlag() 446 for (std::size_t start = 0, end = 0; end < in ParseInt8ArrayFlag() [all...] |
/developtools/profiler/device/plugins/ftrace_plugin/src/ |
H A D | ftrace_field_parser.cpp | 32 std::string ReadString(const uint8_t start[], const uint8_t end[], int size) in ReadString() argument 36 if (end - start < static_cast<ptrdiff_t>(size)) { in ReadString() 51 bool FtraceFieldParser::ReadData(const uint8_t start[], const uint8_t end[], void* out, size_t size) in ReadData() argument 53 ptrdiff_t memSize = end - start; in ReadData() 70 uint8_t* end = data + size; in ParseStrField() local 79 retval = ReadString(start, end, format.size); in ParseStrField() 84 strSize = end - start; in ParseStrField() 85 retval = ReadString(start, end, strSize); in ParseStrField() 87 retval = ReadString(start, end, strSize); in ParseStrField() 97 ReadData(start, end, in ParseStrField() [all...] |
/developtools/profiler/device/plugins/native_daemon/src/ |
H A D | virtual_thread.cpp | 37 if ((*maps_)[index - 1].end > (*maps_)[index].begin) { in IsSorted() 39 << " " << (*maps_)[index - 1].begin << "-" << (*maps_)[index - 1].end in IsSorted() 40 << " " << (*maps_)[index].begin << "-" << (*maps_)[index].end; in IsSorted() 62 if (maps_->back()->end <= addr) { in FindMapByAddr() 70 if (addr < (*maps_)[mid]->end) { in FindMapByAddr() 75 if (addr >= (*maps_)[mid]->end) { in FindMapByAddr() 81 if (addr >= (*maps_)[left]->begin and addr < (*maps_)[left]->end) { in FindMapByAddr() 110 comm.erase(std::remove(comm.begin(), comm.end(), '\r'), comm.end()); in ReadThreadName() 111 comm.erase(std::remove(comm.begin(), comm.end(), '\ in ReadThreadName() [all...] |
H A D | virtual_runtime.cpp | 68 comm.erase(std::remove(comm.begin(), comm.end(), '\r'), comm.end()); in ReadThreadName() 69 comm.erase(std::remove(comm.begin(), comm.end(), '\n'), comm.end()); in ReadThreadName() 102 if (it == userSpaceThreadMap_.end()) { in GetThread() 139 for (auto callFrameIt = callFrames.begin() + offset; callFrameIt != callFrames.end(); ++callFrameIt) { in GetSymbolName() 157 if (failedIPs_.find(callFrame.ip_) == failedIPs_.end()) { in GetSymbolName() 160 callFrames.erase(callFrameIt, callFrames.end()); in GetSymbolName() 165 callFrames.erase(callFrameIt, callFrames.end()); in GetSymbolName() 179 callFrames.erase(callFrameIt, callFrames.end()); in GetSymbolName() [all...] |
/developtools/global_resource_tool/src/ |
H A D | id_worker.cpp | 54 if (result == ids_.end()) { in GetId() 73 ids.insert(ids.end(), item.second.begin(), item.second.end()); in GetHeaderId() 81 if (result == sysDefinedIds_.end()) { in GetSystemId() 90 if (result != ids_.end()) { in GenerateAppId() 95 if (defined != appDefinedIds_.end()) { in GenerateAppId() 101 if (result != cacheIds_.end()) { in GenerateAppId() 131 auto ret = find_if(appDefinedIds_.begin(), appDefinedIds_.end(), [id](const auto &iter) { in GetCurId() 134 if (ret == appDefinedIds_.end()) { in GetCurId() 146 if (result != ids_.end()) { in GenerateSysId() [all...] |
H A D | resource_util.cpp | 50 string::size_type end = str.find(splitter, begin); in Split() local 51 while (end != string::npos) { in Split() 52 string sub = str.substr(begin, end - begin); in Split() 54 begin = end + splitter.size(); in Split() 58 end = str.find(splitter, begin); in Split() 121 if (ret == g_fileClusterMap.end()) { in GetResTypeByDir() 129 auto ret = find_if(g_fileClusterMap.begin(), g_fileClusterMap.end(), [type](auto iter) { in ResTypeToString() 132 if (ret != g_fileClusterMap.end()) { in ResTypeToString() 136 ret = find_if(g_contentClusterMap.begin(), g_contentClusterMap.end(), [type](auto iter) { in ResTypeToString() 139 if (ret != g_contentClusterMap.end()) { in ResTypeToString() [all...] |
H A D | select_compile_parse.cpp | 55 transform(limitType.begin(), limitType.end(), limitType.begin(), ::tolower); in ParseTargetConfig() 84 if (iter == selectableFuncMatch.end()) { in IsSelectCompile() 122 return find(mccmncArray_.begin(), mccmncArray_.end(), mccmncLimit) != mccmncArray_.end(); in IsSelectableMccmnc() 163 return find(localeArray_.begin(), localeArray_.end(), localeLimit) != localeArray_.end(); in IsSelectableLocale() 171 return find(limit.begin(), limit.end(), keyParams[index]) != limit.end(); in IsSelectableOther()
|
/developtools/hiperf/src/ |
H A D | virtual_thread.cpp | 41 if (memMaps_[memMapsIndexs_[index - 1]]->end > memMaps_[memMapsIndexs_[index]]->begin) { in IsSorted() 44 << memMaps_[memMapsIndexs_[index - 1]]->end in IsSorted() 46 << memMaps_[memMapsIndexs_[index]]->end; in IsSorted() 64 if (memMaps_[memMapsIndexs_[memMapsIndexs_.size() >= 1 ? memMapsIndexs_.size() - 1 : 0]]->end <= addr) { in FindMapIndexByAddr() 72 if (addr < memMaps_[memMapsIndexs_[mid]]->end) { in FindMapIndexByAddr() 77 if (addr >= memMaps_[memMapsIndexs_[mid]]->end) { in FindMapIndexByAddr() 83 if (addr >= memMaps_[memMapsIndexs_[left]]->begin && addr < memMaps_[memMapsIndexs_[left]]->end) { in FindMapIndexByAddr() 101 if (memMaps_[memMapsIndexs_[memMapsIndexs_.size() >= 1 ? memMapsIndexs_.size() - 1 : 0]]->end <= addr) { in FindMapByAddr() 109 if (addr < memMaps_[memMapsIndexs_[mid]]->end) { in FindMapByAddr() 114 if (addr >= memMaps_[memMapsIndexs_[mid]]->end) { in FindMapByAddr() 282 uint64_t end = 0; ParseServiceMap() local 326 uint64_t begin, end, offset; ParseDevhostMap() local [all...] |
H A D | option.cpp | 47 if (found != g_MainOptions.end()) { in FindMainOption() 60 for (; tmpit != args.end(); tmpit++) { in FindOption() 66 auto it = find(args.begin(), args.end(), optionName); in FindOption() 67 if (it != args.end()) { in FindOption() 68 if (tmpit != args.end() && it > tmpit) { in FindOption() 69 it = args.end(); in FindOption() 143 trackedCommand.insert(trackedCommand.begin(), args.begin(), args.end()); in GetOptionTrackedCommand()
|
/developtools/smartperf_host/trace_streamer/src/parser/ebpf_parser/ |
H A D | ebpf_base.cpp | 37 if (itor == ebpfToTSClockType_.end()) { in InitEbpfDataParser() 89 auto end = startValueToSymAddr->upper_bound(symVaddr); in GetSymbolNameIndexFromSymVaddr() local 91 auto length = std::distance(startValueToSymAddr->begin(), end); in GetSymbolNameIndexFromSymVaddr() 93 end--; in GetSymbolNameIndexFromSymVaddr() 95 GetSymbolStartIndex(reinterpret_cast<const Elf32_Sym *>(end->second), symbolStart, symVaddr); in GetSymbolNameIndexFromSymVaddr() 97 GetSymbolStartIndex(reinterpret_cast<const Elf64_Sym *>(end->second), symbolStart, symVaddr); in GetSymbolNameIndexFromSymVaddr() 120 if (itor != filePathIndexToPidAndIpMap_.end()) { in UpdateFilePathIndexToPidAndIpMap() 139 auto end = startToMapsAddr->upper_bound(ip); in GetSymbolSave() local 140 auto length = std::distance(startToMapsAddr->begin(), end); in GetSymbolSave() 142 end in GetSymbolSave() [all...] |
/developtools/packing_tool/ohos_packing_tool/frameworks/src/ |
H A D | hap_packager.cpp | 61 if (it != parameterMap_.end()) { in Process() 67 if (it != parameterMap_.end()) { in Process() 71 if (it != parameterMap_.end()) { in Process() 75 if (it != parameterMap_.end()) { in Process() 79 if (it != parameterMap_.end()) { in Process() 83 if (it != parameterMap_.end()) { in Process() 87 if (it != parameterMap_.end()) { in Process() 91 if (it != parameterMap_.end()) { in Process()
|
H A D | hsp_packager.cpp | 51 if (it != parameterMap_.end()) { in Process() 57 if (it != parameterMap_.end()) { in Process() 61 if (it != parameterMap_.end()) { in Process() 65 if (it != parameterMap_.end()) { in Process() 69 if (it != parameterMap_.end()) { in Process() 73 if (it != parameterMap_.end()) { in Process() 77 if (it != parameterMap_.end()) { in Process() 81 if (it != parameterMap_.end()) { in Process()
|
/developtools/packing_tool/packing_tool/frameworks/src/ |
H A D | hsp_packager.cpp | 50 if (parameterMap_.find(Constants::PARAM_OUT_PATH) != parameterMap_.end()) { in Process() 66 if (parameterMap_.find(Constants::PARAM_OUT_PATH) != parameterMap_.end()) { in PostProcess() 82 if (it == parameterMap_.end() || it->second.empty()) { in IsVerifyValidInHspCommonMode() 99 if (it != parameterMap_.end() && !it->second.empty() && in IsVerifyValidInHspCommonMode() 105 if (it != parameterMap_.end()) { in IsVerifyValidInHspCommonMode() 115 if (it != parameterMap_.end() && !it ->second.empty()) { in IsVerifyValidInHspCommonMode() 130 if (it != parameterMap_.end()) { in IsVerifyValidInHspMode() 141 if (it != parameterMap_.end()) { in IsVerifyValidInHspMode() 146 if (it != parameterMap_.end()) { in IsVerifyValidInHspMode() 157 if (it != parameterMap_.end() in Compatible() [all...] |
H A D | hap_packager.cpp | 46 if (it != parameterMap_.end()) { in PreProcess() 50 if (it != parameterMap_.end() && !it->second.empty() && jsonPath.empty()) { in PreProcess() 54 if (it != parameterMap_.end()) { in PreProcess() 59 if (it != parameterMap_.end()) { in PreProcess() 77 if (parameterMap_.find(Constants::PARAM_OUT_PATH) != parameterMap_.end()) { in Process() 94 if (parameterMap_.find(Constants::PARAM_OUT_PATH) != parameterMap_.end()) { in PostProcess() 110 if (it == parameterMap_.end() || it->second.empty()) { in IsVerifyValidInHapCommonMode() 125 if (it != parameterMap_.end()) { in IsVerifyValidInHapCommonMode() 138 if (it != parameterMap_.end() && !SplitDirList(it->second, formatedDirList_)) { in IsVerifyValidInHapCommonMode() 143 if (it != parameterMap_.end()) { in IsVerifyValidInHapCommonMode() [all...] |
H A D | app_packager.cpp | 55 if (parameterMap_.find(Constants::PARAM_OUT_PATH) != parameterMap_.end()) { in Process() 206 if (parameterMap_.find(Constants::PARAM_OUT_PATH) == parameterMap_.end()) { in GetAndCheckOutPath() 217 LOGE("out-path must end with .app."); in GetAndCheckOutPath() 225 if (parameterMap_.find(Constants::PARAM_HAP_PATH) == parameterMap_.end() && in GetAndCheckHapPathAndHspPath() 226 parameterMap_.find(Constants::PARAM_HSP_PATH) == parameterMap_.end()) { in GetAndCheckHapPathAndHspPath() 230 if (parameterMap_.find(Constants::PARAM_HAP_PATH) != parameterMap_.end()) { in GetAndCheckHapPathAndHspPath() 233 if (parameterMap_.find(Constants::PARAM_HSP_PATH) != parameterMap_.end()) { in GetAndCheckHapPathAndHspPath() 260 if (parameterMap_.find(Constants::PARAM_PACK_INFO_PATH) == parameterMap_.end()) { in GetAndCheckPackInfoPath() 279 if (it != parameterMap_.end() && !it->second.empty()) { in CheckSignaturePath() 291 if (it != parameterMap_.end() in CheckCertificatePath() [all...] |
H A D | res_packager.cpp | 70 if (it != parameterMap_.end()) { in IsVerifyValidInResMode() 83 if (it != parameterMap_.end()) { in IsVerifyValidInResMode() 101 if (it != parameterMap_.end()) { in IsVerifyValidInResMode() 106 if (it != parameterMap_.end()) { in IsVerifyValidInResMode()
|
H A D | multiapp_packager.cpp | 59 if (parameterMap_.find(Constants::PARAM_OUT_PATH) != parameterMap_.end()) { in Process() 78 if (parameterMap_.find(Constants::PARAM_OUT_PATH) == parameterMap_.end()) { in GetAndCheckOutPath() 89 LOGE("out-path must end with .app."); in GetAndCheckOutPath() 98 if (parameterMap_.find(Constants::PARAM_HAP_LIST) == parameterMap_.end() && in GetAndCheckHapAndHspAndAppListStr() 99 parameterMap_.find(Constants::PARAM_HSP_LIST) == parameterMap_.end() && in GetAndCheckHapAndHspAndAppListStr() 100 parameterMap_.find(Constants::PARAM_APP_LIST) == parameterMap_.end()) { in GetAndCheckHapAndHspAndAppListStr() 104 if (parameterMap_.find(Constants::PARAM_HAP_LIST) != parameterMap_.end()) { in GetAndCheckHapAndHspAndAppListStr() 107 if (parameterMap_.find(Constants::PARAM_HSP_LIST) != parameterMap_.end()) { in GetAndCheckHapAndHspAndAppListStr() 110 if (parameterMap_.find(Constants::PARAM_APP_LIST) != parameterMap_.end()) { in GetAndCheckHapAndHspAndAppListStr() 155 if (it != parameterMap_.end() in IsVerifyValidInMultiAppMode() [all...] |
/developtools/smartperf_host/trace_streamer/src/proto_reader/include/ |
H A D | proto_reader_help.h | 92 auto end = string.end(); in ToUppercase() local 93 for (auto c = string.begin(); c != end; ++c) in ToUppercase() 101 auto end = string.end(); in ToLowercase() local 102 for (auto c = string.begin(); c != end; ++c) in ToLowercase() 127 const uint8_t *VarIntDecode(const uint8_t *start, const uint8_t *end, uint64_t *varIntValue);
|
/developtools/packing_tool/packing_tool/frameworks/src/json/ |
H A D | hap_verify_utils.cpp | 207 for (auto iter1 = hapVerifyInfos.begin(); iter1 != hapVerifyInfos.end(); iter1++) { in CheckModuleNameIsValid() 213 for (auto iter2 = std::next(iter1); iter2 != hapVerifyInfos.end(); iter2++) { in CheckModuleNameIsValid() 294 for (auto iter1 = hapVerifyInfos.begin(); iter1 != hapVerifyInfos.end(); iter1++) { in CheckPackageNameIsValid() 299 for (auto iter2 = std::next(iter1); iter2 != hapVerifyInfos.end(); iter2++) { in CheckPackageNameIsValid() 328 for (auto iter1 = entryHapVerifyInfos.begin(); iter1 != entryHapVerifyInfos.end(); iter1++) { in CheckEntryIsValid() 330 for (auto iter2 = std::next(iter1); iter2 != entryHapVerifyInfos.end(); iter2++) { in CheckEntryIsValid() 444 std::list<std::string> include(includeSet.begin(), includeSet.end()); in CheckApiVersionCovered() 445 std::list<std::string> exclude(excludeSet.begin(), excludeSet.end()); in CheckApiVersionCovered() 474 std::list<std::string> include(includeSet.begin(), includeSet.end()); in CheckScreenShapeCovered() 475 std::list<std::string> exclude(excludeSet.begin(), excludeSet.end()); in CheckScreenShapeCovered() [all...] |
/developtools/smartperf_host/trace_streamer/src/base/ |
H A D | double_map.h | 36 if (streamIdHookidMap != internalMap_.end()) { in Insert() 38 if (hookId == (*streamIdHookidMap).second.end()) { in Insert() 51 if (streamIdHookidMap != internalMap_.end()) { in Find() 53 if (hookId == (*streamIdHookidMap).second.end()) { in Find() 65 if (streamIdHookidMap != internalMap_.end()) { in Find()
|
/developtools/profiler/device/plugins/hilog_plugin/src/ |
H A D | hilog_plugin.cpp | 126 dataBuffer_.erase(dataBuffer_.begin(), dataBuffer_.end()); in Stop() 253 dataBuffer_.erase(dataBuffer_.begin(), dataBuffer_.end()); in Run() 295 char* end = nullptr; in SetHilogLineDetails() local 305 uint32_t value = static_cast<uint32_t>(strtoul(pTmp, &end, DEC_BASE)); in SetHilogLineDetails() 308 pTmp = end; in SetHilogLineDetails() 309 value = static_cast<uint32_t>(strtoul(pTmp, &end, DEC_BASE)); in SetHilogLineDetails() 312 pTmp = end; in SetHilogLineDetails() 326 end = pTmp; in SetHilogLineDetails() 328 end = pTmp; in SetHilogLineDetails() 331 if (end in SetHilogLineDetails() 396 char* end = nullptr; StringToL() local 413 char* end = nullptr; TimeStringToNS() local [all...] |
/developtools/smartperf_host/trace_streamer/src/trace_data/trace_stdtype/hiperf/ |
H A D | hiperf_stdtype.cpp | 119 uint64_t end = INVALID_UINT64; in EraseFileIdSameData() local 124 end = row; in EraseFileIdSameData() 126 end = row; in EraseFileIdSameData() 130 end++; in EraseFileIdSameData() 131 if (start <= end && end < Size()) { in EraseFileIdSameData() 132 ids_.erase(ids_.begin() + start, ids_.begin() + end); in EraseFileIdSameData() 133 fileIds_.erase(fileIds_.begin() + start, fileIds_.begin() + end); in EraseFileIdSameData() 134 serials_.erase(serials_.begin() + start, serials_.begin() + end); in EraseFileIdSameData() 135 symbols_.erase(symbols_.begin() + start, symbols_.begin() + end); in EraseFileIdSameData() [all...] |
/developtools/profiler/device/plugins/api/src/ |
H A D | plugin_manager.cpp | 95 if (pluginIds_.find(pluginName) != pluginIds_.end()) { in AddPlugin() 151 if (it == pluginIds_.end()) { in RemovePlugin() 198 if (it == pluginIds_.end()) { in RemovePlugin() 211 CHECK_TRUE(it != pluginIds_.end(), false, "%s:plugin not exist", __func__); in LoadPlugin() 226 if (it == pluginIds_.end()) { in UnloadPlugin() 237 if (pluginModules_.find(pluginId) == pluginModules_.end()) { in UnloadPlugin() 253 if (it == pluginIds_.end()) { in CreatePluginSession() 269 if (it == pluginModules_.end()) { in DestroyPluginSession() 285 if (it == pluginModules_.end()) { in StartPluginSession() 331 if (pluginModules_.find(id) == pluginModules_.end()) { in StopPluginSession() [all...] |