Home
last modified time | relevance | path

Searched refs:end (Results 1 – 25 of 373) sorted by relevance

12345678910>>...15

/developtools/profiler/device/plugins/native_hook/src/
Druntime_stack_range.cpp36 const char* end; member
41 static void GetThreadRuntimeStackRange(const char** start, const char** end) in GetThreadRuntimeStackRange() argument
44 *end = nullptr; in GetThreadRuntimeStackRange()
51 *end = *start + stackSize; in GetThreadRuntimeStackRange()
150 … g_mainStack.end = reinterpret_cast<char*>(CvtStrToInt(line.c_str() + concatPos + 1, BASE_MAX)); in GetMainThreadRuntimeStackRange()
160 static bool IfContained(const char* start, const char* end, const char* ptr) in IfContained() argument
162 bool ret = (ptr >= start && ptr < end); in IfContained()
166 static void GetRuntimeSigalAltStackRange(char** start, char** end) in GetRuntimeSigalAltStackRange() argument
169 *end = nullptr; in GetRuntimeSigalAltStackRange()
176 *end = static_cast<char*>(altStack.ss_sp) + altStack.ss_size; in GetRuntimeSigalAltStackRange()
[all …]
/developtools/profiler/hiebpf/include/
Dcommandline_flags.h419 for (std::size_t start = 0, end = 0; end <= valStr.length(); ++end) { in ParseBoolArrayFlag() local
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 <= valStr.length(); ++end) { in ParseInt8ArrayFlag() local
447 if (valStr[end] == ',' or end == valStr.length()) { in ParseInt8ArrayFlag()
448 if (start == end) { in ParseInt8ArrayFlag()
452 auto str = valStr.substr(start, end - start); in ParseInt8ArrayFlag()
463 start = end + 1; in ParseInt8ArrayFlag()
[all …]
/developtools/profiler/device/plugins/ftrace_plugin/src/
Dftrace_field_parser.cpp32 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()
98 ReadData(start, end, &dataLoc, sizeof(dataLoc)); in ParseStrField()
[all …]
/developtools/smartperf_host/trace_streamer/src/parser/ebpf_parser/
Debpf_base.cpp37 if (itor == ebpfToTSClockType_.end()) { in InitEbpfDataParser()
78 auto end = startValueToSymAddr->upper_bound(symVaddr); in GetSymbolNameIndexFromSymVaddr() local
80 auto length = std::distance(startValueToSymAddr->begin(), end); in GetSymbolNameIndexFromSymVaddr()
82 end--; in GetSymbolNameIndexFromSymVaddr()
84 … GetSymbolStartIndex(reinterpret_cast<const Elf32_Sym*>(end->second), symbolStart, symVaddr); in GetSymbolNameIndexFromSymVaddr()
86 … GetSymbolStartIndex(reinterpret_cast<const Elf64_Sym*>(end->second), symbolStart, symVaddr); in GetSymbolNameIndexFromSymVaddr()
109 if (itor != filePathIndexToPidAndIpMap_.end()) { in UpdateFilePathIndexToPidAndIpMap()
140 auto end = startToMapsAddr->upper_bound(ip); in GetSymbolNameIndexFromElfSym() local
141 auto length = std::distance(startToMapsAddr->begin(), end); in GetSymbolNameIndexFromElfSym()
143 end--; in GetSymbolNameIndexFromElfSym()
[all …]
/developtools/profiler/host/smartperf/trace_streamer/src/parser/ebpf_parser/
Debpf_base.cpp37 if (itor == ebpfToTSClockType_.end()) { in InitEbpfDataParser()
78 auto end = startValueToSymAddr->upper_bound(symVaddr); in GetSymbolNameIndexFromSymVaddr() local
80 auto length = std::distance(startValueToSymAddr->begin(), end); in GetSymbolNameIndexFromSymVaddr()
82 end--; in GetSymbolNameIndexFromSymVaddr()
84 … GetSymbolStartIndex(reinterpret_cast<const Elf32_Sym*>(end->second), symbolStart, symVaddr); in GetSymbolNameIndexFromSymVaddr()
86 … GetSymbolStartIndex(reinterpret_cast<const Elf64_Sym*>(end->second), symbolStart, symVaddr); in GetSymbolNameIndexFromSymVaddr()
105 if (itor != filePathIndexToPidAndIpMap_.end()) { in UpdateFilePathIndexToPidAndIpMap()
136 auto end = startToMapsAddr->upper_bound(ip); in GetSymbolNameIndexFromElfSym() local
137 auto length = std::distance(startToMapsAddr->begin(), end); in GetSymbolNameIndexFromElfSym()
139 end--; in GetSymbolNameIndexFromElfSym()
[all …]
/developtools/smartperf_host/trace_streamer/src/filter/
Doffline_symbolization_filter.cpp29 for (auto itor = ips->begin(); itor != ips->end(); itor++) { in OfflineSymbolization()
66 if (ip < endItor->second->end()) { in FillFrameInfo()
94 if (itor == filePathIdToSymbolTableMap_.end()) { in OfflineSymbolization()
117 auto end = startValueToSymAddrMap->upper_bound(symVaddr); in OfflineSymbolization() local
118 auto length = std::distance(startValueToSymAddrMap->begin(), end); in OfflineSymbolization()
121 end--; in OfflineSymbolization()
123 …GetSymbolStartMaybeUpdateFrameInfo(reinterpret_cast<const Elf32_Sym*>(end->second), symbolStart, s… in OfflineSymbolization()
126 …GetSymbolStartMaybeUpdateFrameInfo(reinterpret_cast<const Elf64_Sym*>(end->second), symbolStart, s… in OfflineSymbolization()
159 auto end = startValueToSymAddrMap->upper_bound(symVaddr); in OfflineSymbolization() local
160 auto length = std::distance(startValueToSymAddrMap->begin(), end); in OfflineSymbolization()
[all …]
Dnative_hook_filter.cpp88 if (itor != sourceMap.end()) { in UpdateMap()
383 for (auto rowIter = indexSetPtr->begin(); rowIter != indexSetPtr->end(); rowIter++) { in ParseTagEvent()
393 if (iter != addrToMmapTag_.end()) { in GetMemMapSubTypeWithAddr()
413 for (; itor != tsToMainEventsMap_.end() && num; num--, itor++) { in FilterNativeHookMainEvent()
456 uint64_t end = INVALID_UINT64; in GetNeedUpdateProcessMapsAddrRange() local
458 return std::make_tuple(start, end); in GetNeedUpdateProcessMapsAddrRange()
466 if (startAddr >= startItor->second->end()) { in GetNeedUpdateProcessMapsAddrRange()
471 if (startItor != startAddrToMapsInfoMap_.end()) { in GetNeedUpdateProcessMapsAddrRange()
485 if (endItor == startAddrToMapsInfoMap_.end()) { in GetNeedUpdateProcessMapsAddrRange()
486 return std::make_tuple(start, end); in GetNeedUpdateProcessMapsAddrRange()
[all …]
/developtools/profiler/host/smartperf/trace_streamer/src/filter/
Doffline_symbolization_filter.cpp29 for (auto itor = ips->begin(); itor != ips->end(); itor++) { in OfflineSymbolization()
66 if (ip < endItor->second->end()) { in FillFrameInfo()
94 if (itor == filePathIdToSymbolTableMap_.end()) { in OfflineSymbolization()
117 auto end = startValueToSymAddrMap->upper_bound(symVaddr); in OfflineSymbolization() local
118 auto length = std::distance(startValueToSymAddrMap->begin(), end); in OfflineSymbolization()
121 end--; in OfflineSymbolization()
123 …GetSymbolStartMaybeUpdateFrameInfo(reinterpret_cast<const Elf32_Sym*>(end->second), symbolStart, s… in OfflineSymbolization()
126 …GetSymbolStartMaybeUpdateFrameInfo(reinterpret_cast<const Elf64_Sym*>(end->second), symbolStart, s… in OfflineSymbolization()
156 auto end = startValueToSymAddrMap->upper_bound(symVaddr); in OfflineSymbolization() local
157 auto length = std::distance(startValueToSymAddrMap->begin(), end); in OfflineSymbolization()
[all …]
Dnative_hook_filter.cpp87 if (itor != sourceMap.end()) { in UpdateMap()
375 for (auto rowIter = indexSetPtr->begin(); rowIter != indexSetPtr->end(); rowIter++) { in ParseTagEvent()
385 if (iter != addrToMmapTag_.end()) { in GetMemMapSubTypeWithAddr()
405 for (; itor != tsToMainEventsMap_.end() && num; num--, itor++) { in FilterNativeHookMainEvent()
448 uint64_t end = INVALID_UINT64; in GetNeedUpdateProcessMapsAddrRange() local
450 return std::make_tuple(start, end); in GetNeedUpdateProcessMapsAddrRange()
458 if (startAddr >= startItor->second->end()) { in GetNeedUpdateProcessMapsAddrRange()
463 if (startItor != startAddrToMapsInfoMap_.end()) { in GetNeedUpdateProcessMapsAddrRange()
477 if (endItor == startAddrToMapsInfoMap_.end()) { in GetNeedUpdateProcessMapsAddrRange()
478 return std::make_tuple(start, end); in GetNeedUpdateProcessMapsAddrRange()
[all …]
/developtools/profiler/host/smartperf/trace_streamer/src/base/
Ddouble_map.h35 if (streamIdHookidMap != internalMap_.end()) { in Insert()
37 if (hookId == (*streamIdHookidMap).second.end()) { in Insert()
50 if (streamIdHookidMap != internalMap_.end()) { in Find()
52 if (hookId == (*streamIdHookidMap).second.end()) { in Find()
64 if (streamIdHookidMap != internalMap_.end()) { in Find()
72 if (streamIdHookidMap != internalMap_.end()) { in Erase()
79 if (streamIdHookidMap != internalMap_.end()) { in Erase()
81 if (hookId != (*streamIdHookidMap).second.end()) { in Erase()
Dindex_map.h33 IndexMap(TableRowId start, TableRowId end);
57 for (auto i = rowIndex_.begin(); i != rowIndex_.end();) { in MixRange()
81 for (auto i = rowIndex_.begin(); i != rowIndex_.end();) { in MixRange()
105 for (auto i = rowIndex_.begin(); i != rowIndex_.end();) { in MixRange()
129 for (auto i = rowIndex_.begin(); i != rowIndex_.end();) { in MixRange()
153 for (auto i = rowIndex_.begin(); i != rowIndex_.end();) { in MixRange()
177 for (auto i = rowIndex_.begin(); i != rowIndex_.end();) { in MixRange()
201 for (auto i = rowIndex_.begin(); i != rowIndex_.end();) { in MixRange()
225 for (auto i = rowIndex_.begin(); i != rowIndex_.end();) { in MixRange()
262 (void)std::remove(rowIndex_.begin(), rowIndex_.end(), row); in Remove()
[all …]
Dquatra_map.h35 if (streamIdHookidMap != internalMap_.end()) { in Insert()
46 if (streamIdHookidMap != internalMap_.end()) { in Find()
55 if (streamIdHookidMap != internalMap_.end()) { in Erase()
62 if (streamIdHookidMap != internalMap_.end()) { in Erase()
69 if (streamIdHookidMap != internalMap_.end()) { in Erase()
76 if (streamIdHookidMap != internalMap_.end()) { in Erase()
Dtriple_map.h35 if (streamIdHookidMap != internalMap_.end()) { in Insert()
46 if (streamIdHookidMap != internalMap_.end()) { in Find()
55 if (streamIdHookidMap != internalMap_.end()) { in Erase()
62 if (streamIdHookidMap != internalMap_.end()) { in Erase()
69 if (streamIdHookidMap != internalMap_.end()) { in Erase()
/developtools/smartperf_host/trace_streamer/src/proto_reader/include/
Dproto_reader_help.h91 auto end = string.end(); in ToUppercase() local
92 for (auto c = string.begin(); c != end; ++c) in ToUppercase()
100 auto end = string.end(); in ToLowercase() local
101 for (auto c = string.begin(); c != end; ++c) in ToLowercase()
126 inline const uint8_t* VarIntDecode(const uint8_t* start, const uint8_t* end, uint64_t* varIntValue) in VarIntDecode() argument
139 } while (cursor < end && shift < varIntValueDecodeMaxOffset); in VarIntDecode()
/developtools/profiler/host/smartperf/trace_streamer/src/proto_reader/include/
Dproto_reader_help.h91 auto end = string.end(); in ToUppercase() local
92 for (auto c = string.begin(); c != end; ++c) in ToUppercase()
100 auto end = string.end(); in ToLowercase() local
101 for (auto c = string.begin(); c != end; ++c) in ToLowercase()
126 inline const uint8_t* VarIntDecode(const uint8_t* start, const uint8_t* end, uint64_t* varIntValue) in VarIntDecode() argument
139 } while (cursor < end && shift < varIntValueDecodeMaxOffset); in VarIntDecode()
/developtools/global_resource_tool/src/
Dresource_util.cpp47 string::size_type end = str.find(splitter, begin); in Split() local
48 while (end != string::npos) { in Split()
49 string sub = str.substr(begin, end - begin); in Split()
51 begin = end + splitter.size(); in Split()
55 end = str.find(splitter, begin); in Split()
114 if (ret == g_fileClusterMap.end()) { in GetResTypeByDir()
122 auto ret = find_if(g_fileClusterMap.begin(), g_fileClusterMap.end(), [type](auto iter) { in ResTypeToString()
125 if (ret != g_fileClusterMap.end()) { in ResTypeToString()
129 ret = find_if(g_contentClusterMap.begin(), g_contentClusterMap.end(), [type](auto iter) { in ResTypeToString()
132 if (ret != g_contentClusterMap.end()) { in ResTypeToString()
[all …]
/developtools/profiler/device/plugins/native_daemon/include/
Dmem_map_item.h26 …MemMaps(uint64_t begin, uint64_t end, uint64_t offset, uint32_t type, uint32_t filePathId, const s… in MemMaps() argument
27 : soBegin_(begin), soEnd_(end), filePathId_(filePathId), name_(name) in MemMaps()
29 maps_.emplace_back(begin, end, static_cast<uint16_t>(type), offset, name_); in MemMaps()
40 …MemMapItem(uint64_t begin, uint64_t end, uint16_t type, uint64_t offset, std::string_view nameHold) in MemMapItem() argument
41 : begin_(begin), end_(end), type_(type), pageoffset_(offset), nameHold_(nameHold) {} in MemMapItem()
76 MemMapItem(uint64_t begin, uint64_t end, uint64_t offset, const std::string &name) in MemMapItem() argument
77 : begin_(begin), end_(end), pageoffset_(offset), name_(name), in MemMapItem()
/developtools/smartperf_host/trace_streamer/src/base/
Ddouble_map.h36 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()
Dindex_map.h33 IndexMap(TableRowId start, TableRowId end);
134 (void)std::remove(rowIndex_.begin(), rowIndex_.end(), row); in Remove()
136 void Set(TableRowId start, TableRowId end) in Set() argument
139 end_ = std::min(end_, end); in Set()
153 void Intersect(TableRowId start, TableRowId end);
160 auto end = std::upper_bound(start, rows.begin() + end_, v); in IntersectabcEqual() local
162 auto newEnd = std::distance(rows.begin(), end); in IntersectabcEqual()
180 auto end = std::upper_bound(rows.begin() + start_, rows.begin() + end_, v, in IntersectLessEqual() local
182 auto newEnd = std::distance(rows.begin(), end); in IntersectLessEqual()
197 for (auto i = rowIndex_.begin(); i != rowIndex_.end();) { in RemoveNullElements()
/developtools/profiler/device/plugins/native_daemon/src/
Dvirtual_thread.cpp55 std::upper_bound(memMaps_->begin(), memMaps_->end(), addr, MemMapItem::ValueLessThan); in FindMapByAddr2()
130 comm.erase(std::remove(comm.begin(), comm.end(), '\r'), comm.end()); in ReadThreadName()
131 comm.erase(std::remove(comm.begin(), comm.end(), '\n'), comm.end()); in ReadThreadName()
138 curMemMapItem != curMemMaps->maps_.end(); ++curMemMapItem) { in FindMapByOffset()
174 if (search != symbolsFiles_.end()) { in FindSymbolsFileByMap()
181 if (find(missedSymbolFile_.begin(), missedSymbolFile_.end(), inMap.name_) == in FindSymbolsFileByMap()
182 missedSymbolFile_.end()) { in FindSymbolsFileByMap()
196 if (search != symbolsFiles_.end()) { in FindSymbolsFileByName()
203 if (find(missedSymbolFile_.begin(), missedSymbolFile_.end(), name) == in FindSymbolsFileByName()
204 missedSymbolFile_.end()) { in FindSymbolsFileByName()
[all …]
Dvirtual_runtime.cpp64 comm.erase(std::remove(comm.begin(), comm.end(), '\r'), comm.end()); in ReadThreadName()
65 comm.erase(std::remove(comm.begin(), comm.end(), '\n'), comm.end()); in ReadThreadName()
97 if (it == userSpaceThreadMap_.end()) { in GetThread()
133 …for (auto callFrameIt = callFrames.begin() + offset; callFrameIt != callFrames.end(); ++callFrameI… in GetSymbolName()
147 if (failedIPs_.find(callFrame.ip_) == failedIPs_.end()) { in GetSymbolName()
150 callFrames.erase(callFrameIt, callFrames.end()); in GetSymbolName()
155 callFrames.erase(callFrameIt, callFrames.end()); in GetSymbolName()
163 callFrames.erase(callFrameIt, callFrames.end()); in GetSymbolName()
248 if (symbolsFiles_.find(fileName) != symbolsFiles_.end()) { in IsSymbolExist()
266 if (symbolsFiles_.find(fileName) != symbolsFiles_.end()) { in UpdateSymbols()
[all …]
/developtools/profiler/device/plugins/hilog_plugin/src/
Dhilog_plugin.cpp259 dataBuffer_.erase(dataBuffer_.begin(), dataBuffer_.end()); in Run()
269 dataBuffer_.erase(dataBuffer_.begin(), dataBuffer_.end()); in Run()
291 char* end = nullptr; in SetHilogLineDetails() local
300 uint32_t value = static_cast<uint32_t>(strtoul(pTmp, &end, DEC_BASE)); in SetHilogLineDetails()
303 pTmp = end; in SetHilogLineDetails()
304 value = static_cast<uint32_t>(strtoul(pTmp, &end, DEC_BASE)); in SetHilogLineDetails()
307 pTmp = end; in SetHilogLineDetails()
321 end = pTmp; in SetHilogLineDetails()
323 end = pTmp; in SetHilogLineDetails()
326 while (end != nullptr && *pTmp != ':') { // 结束符 ':' in SetHilogLineDetails()
[all …]
/developtools/hiperf/src/
Doption.cpp47 if (found != g_MainOptions.end()) { in FindMainOption()
61 for (; tmpit != args.end(); tmpit++) { in FindOption()
67 auto it = find(args.begin(), args.end(), optionName); in FindOption()
68 if (it != args.end()) { in FindOption()
69 if (tmpit != args.end() && it > tmpit) { in FindOption()
70 it = args.end(); in FindOption()
148 trackedCommand.insert(trackedCommand.begin(), args.begin(), args.end()); in GetOptionTrackedCommand()
/developtools/profiler/device/plugins/ftrace_plugin/include/
Dftrace_field_parser.h30 auto end = data + size; in ParseIntField() local
32 ReadData(start, end, &retval, format.size); in ParseIntField()
50 auto end = start + retvalSize; in ParseVectorIntField() local
52 ReadData(start, end, &retval, retvalSize); in ParseVectorIntField()
79 static bool ReadData(const uint8_t start[], const uint8_t end[], VoidPtr out, size_t size);
/developtools/hiperf/interfaces/innerkits/native/src/
Dhiperf_client.cpp35 auto it = std::find(args_.begin(), args_.end(), name); in SetOption()
37 if (it == args_.end()) { in SetOption()
43 if (it != args_.end()) { in SetOption()
51 auto it = std::find(args_.begin(), args_.end(), name); in SetOption()
52 if (it != args_.end()) { in SetOption()
65 auto it = std::find(args_.begin(), args_.end(), name); in SetOption()
67 if (it != args_.end()) { in SetOption()
69 if (it != args_.end()) { in SetOption()
83 if (it != args_.end()) { in SetOption()
94 auto it = std::find(args_.begin(), args_.end(), name); in SetOption()
[all …]

12345678910>>...15