Home
last modified time | relevance | path

Searched refs:FuncId (Results 1 – 25 of 127) sorted by relevance

123456

/llvm-project-15.0.7/compiler-rt/lib/xray/
H A Dxray_interface.cpp182 findFunctionSleds(int32_t FuncId, in findFunctionSleds() argument
196 if (CurFn == FuncId) { in findFunctionSleds()
208 XRayPatchingStatus patchFunction(int32_t FuncId, in patchFunction() argument
232 if (FuncId <= 0 || static_cast<size_t>(FuncId) > InstrMap.Functions) { in patchFunction()
286 uint32_t FuncId = 1; in controlPatching() local
332 ++FuncId; in controlPatching()
335 patchSled(Sled, Enable, FuncId); in controlPatching()
353 if (FuncId <= 0 || static_cast<size_t>(FuncId) > InstrMap.Functions) { in mprotectAndPatchFunction()
392 return patchFunction(FuncId, Enable); in mprotectAndPatchFunction()
473 return mprotectAndPatchFunction(FuncId, true); in __xray_patch_function()
[all …]
H A Dxray_powerpc64.cpp52 bool patchFunctionEntry(const bool Enable, uint32_t FuncId, in patchFunctionEntry() argument
60 (0x3c000000ull + (FuncId >> 16)) + in patchFunctionEntry()
61 ((0x60000000ull + (FuncId & 0xffff)) << 32); in patchFunctionEntry()
71 bool patchFunctionExit(const bool Enable, uint32_t FuncId, in patchFunctionExit() argument
78 (0x3c000000ull + (FuncId >> 16)) + in patchFunctionExit()
79 ((0x60000000ull + (FuncId & 0xffff)) << 32); in patchFunctionExit()
89 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, in patchFunctionTailExit() argument
91 return patchFunctionExit(Enable, FuncId, Sled); in patchFunctionTailExit()
97 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, in patchCustomEvent() argument
103 bool patchTypedEvent(const bool Enable, const uint32_t FuncId, in patchTypedEvent() argument
H A Dxray_AArch64.cpp34 inline static bool patchSled(const bool Enable, const uint32_t FuncId, in patchSled() argument
73 *CurAddress = FuncId; in patchSled()
92 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, in patchFunctionEntry() argument
95 return patchSled(Enable, FuncId, Sled, Trampoline); in patchFunctionEntry()
98 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, in patchFunctionExit() argument
100 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionExit()
103 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, in patchFunctionTailExit() argument
105 return patchSled(Enable, FuncId, Sled, __xray_FunctionTailExit); in patchFunctionTailExit()
108 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, in patchCustomEvent() argument
114 bool patchTypedEvent(const bool Enable, const uint32_t FuncId, in patchTypedEvent() argument
H A Dxray_hexagon.cpp87 inline static bool patchSled(const bool Enable, const uint32_t FuncId, in patchSled() argument
119 *CurAddress = encodeExtendedTransferImmediate(FuncId, RN_R7); in patchSled()
129 WriteInstFlushCache(FirstAddress, uint32_t(encodeConstantExtender(FuncId))); in patchSled()
136 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, in patchFunctionEntry() argument
139 return patchSled(Enable, FuncId, Sled, Trampoline); in patchFunctionEntry()
142 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, in patchFunctionExit() argument
144 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionExit()
147 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, in patchFunctionTailExit() argument
149 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionTailExit()
152 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, in patchCustomEvent() argument
[all …]
H A Dxray_arm.cpp76 inline static bool patchSled(const bool Enable, const uint32_t FuncId, in patchSled() argument
109 write32bitLoadR0(CurAddress, reinterpret_cast<uint32_t>(FuncId)); in patchSled()
129 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, in patchFunctionEntry() argument
132 return patchSled(Enable, FuncId, Sled, Trampoline); in patchFunctionEntry()
135 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, in patchFunctionExit() argument
137 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionExit()
140 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, in patchFunctionTailExit() argument
142 return patchSled(Enable, FuncId, Sled, __xray_FunctionTailExit); in patchFunctionTailExit()
145 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, in patchCustomEvent() argument
151 bool patchTypedEvent(const bool Enable, const uint32_t FuncId, in patchTypedEvent() argument
H A Dxray_mips.cpp52 inline static bool patchSled(const bool Enable, const uint32_t FuncId, in patchSled() argument
102 uint32_t LoFunctionID = FuncId & 0xffff; in patchSled()
103 uint32_t HiFunctionID = (FuncId >> 16) & 0xffff; in patchSled()
137 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, in patchFunctionEntry() argument
140 return patchSled(Enable, FuncId, Sled, Trampoline); in patchFunctionEntry()
143 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, in patchFunctionExit() argument
145 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionExit()
148 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, in patchFunctionTailExit() argument
152 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionTailExit()
155 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, in patchCustomEvent() argument
[all …]
H A Dxray_mips64.cpp53 inline static bool patchSled(const bool Enable, const uint32_t FuncId, in patchSled() argument
102 uint32_t LoFunctionID = FuncId & 0xffff; in patchSled()
103 uint32_t HiFunctionID = (FuncId >> 16) & 0xffff; in patchSled()
145 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, in patchFunctionEntry() argument
148 return patchSled(Enable, FuncId, Sled, Trampoline); in patchFunctionEntry()
151 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, in patchFunctionExit() argument
153 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionExit()
156 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, in patchFunctionTailExit() argument
160 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionTailExit()
163 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, in patchCustomEvent() argument
[all …]
H A Dxray_basic_logging.cpp48 int32_t FuncId; member
158 void InMemoryRawLog(int32_t FuncId, XRayEntryType Type, in InMemoryRawLog() argument
185 E.FuncId = FuncId; in InMemoryRawLog()
216 if (StackTop.FuncId == FuncId && StackTop.CPU == CPU && in InMemoryRawLog()
242 R.FuncId = FuncId; in InMemoryRawLog()
277 InMemoryRawLog(FuncId, Type, ReadTSC); in InMemoryRawLogWithArg()
286 R.FuncId = FuncId; in InMemoryRawLogWithArg()
300 void basicLoggingHandleArg0RealTSC(int32_t FuncId, in basicLoggingHandleArg0RealTSC() argument
302 InMemoryRawLog(FuncId, Type, readTSC); in basicLoggingHandleArg0RealTSC()
321 InMemoryRawLogWithArg(FuncId, Type, Arg1, readTSC); in basicLoggingHandleArg1RealTSC()
[all …]
H A Dxray_fdr_controller.h52 return FuncId & ((1 << 29) - 1); in mask()
181 bool rewindRecords(int32_t FuncId, uint64_t TSC, in rewindRecords() argument
198 DCHECK_EQ(F.FuncId, FuncId & ~(0x0F << 28)); in rewindRecords()
244 bool functionEnter(int32_t FuncId, uint64_t TSC, in functionEnter() argument
265 mask(FuncId), Delta); in functionEnter()
268 bool functionTailExit(int32_t FuncId, uint64_t TSC, in functionTailExit() argument
283 return rewindRecords(FuncId, TSC, CPU); in functionTailExit()
290 mask(FuncId), Delta); in functionTailExit()
307 mask(FuncId), Delta, Arg); in functionEnterArg()
310 bool functionExit(int32_t FuncId, uint64_t TSC, in functionExit() argument
[all …]
H A Dxray_interface_internal.h83 bool patchFunctionEntry(bool Enable, uint32_t FuncId, const XRaySledEntry &Sled,
85 bool patchFunctionExit(bool Enable, uint32_t FuncId, const XRaySledEntry &Sled);
86 bool patchFunctionTailExit(bool Enable, uint32_t FuncId,
88 bool patchCustomEvent(bool Enable, uint32_t FuncId, const XRaySledEntry &Sled);
89 bool patchTypedEvent(bool Enable, uint32_t FuncId, const XRaySledEntry &Sled);
H A Dxray_basic_logging.h31 void basicLoggingHandleArg0RealTSC(int32_t FuncId, XRayEntryType Entry);
32 void basicLoggingHandleArg0EmulateTSC(int32_t FuncId, XRayEntryType Entry);
33 void basicLoggingHandleArg1RealTSC(int32_t FuncId, XRayEntryType Entry,
35 void basicLoggingHandleArg1EmulateTSC(int32_t FuncId, XRayEntryType Entry,
H A Dxray_x86_64.cpp123 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, in patchFunctionEntry() argument
157 *reinterpret_cast<uint32_t *>(Address + 2) = FuncId; in patchFunctionEntry()
172 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, in patchFunctionExit() argument
204 *reinterpret_cast<uint32_t *>(Address + 2) = FuncId; in patchFunctionExit()
219 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, in patchFunctionTailExit() argument
234 *reinterpret_cast<uint32_t *>(Address + 2) = FuncId; in patchFunctionTailExit()
249 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, in patchCustomEvent() argument
298 bool patchTypedEvent(const bool Enable, const uint32_t FuncId, in patchTypedEvent() argument
/llvm-project-15.0.7/bolt/lib/Passes/
H A DCallGraph.cpp99 for (NodeId FuncId = 0; FuncId < numNodes(); ++FuncId) { in normalizeArcWeights() local
100 const Node &Func = getNode(FuncId); in normalizeArcWeights()
102 ArcIterator Arc = findArc(Caller, FuncId); in normalizeArcWeights()
113 for (NodeId FuncId = 0; FuncId < numNodes(); ++FuncId) { in adjustArcWeights() local
114 const Node &Func = getNode(FuncId); in adjustArcWeights()
117 ArcIterator Arc = findArc(Caller, FuncId); in adjustArcWeights()
121 setSamples(FuncId, InWeight); in adjustArcWeights()
H A DReorderFunctions.cpp124 for (const NodeId FuncId : Cluster.targets()) { in reorder() local
125 Cg.nodeIdToFunc(FuncId)->setIndex(Index++); in reorder()
126 FuncAddr[FuncId] = TotalSize; in reorder()
127 TotalSize += Cg.size(FuncId); in reorder()
172 for (NodeId FuncId : Cluster.targets()) { in reorder() local
173 if (Cg.samples(FuncId) > 0) { in reorder()
178 << Cg.size(FuncId) << ")\n"; in reorder()
182 for (NodeId Dst : Cg.successors(FuncId)) { in reorder()
183 if (FuncId == Dst) // ignore recursive calls in stats in reorder()
185 const Arc &Arc = *Cg.findArc(FuncId, Dst); in reorder()
[all …]
H A DBinaryFunctionCallGraph.cpp56 const NodeId FuncId = Worklist.top(); in buildTraversalOrder() local
59 if (NodeStatus[FuncId] == VISITED) in buildTraversalOrder()
62 if (NodeStatus[FuncId] == VISITING) { in buildTraversalOrder()
63 TopologicalOrder.push_back(Funcs[FuncId]); in buildTraversalOrder()
64 NodeStatus[FuncId] = VISITED; in buildTraversalOrder()
68 assert(NodeStatus[FuncId] == NEW); in buildTraversalOrder()
69 NodeStatus[FuncId] = VISITING; in buildTraversalOrder()
70 Worklist.push(FuncId); in buildTraversalOrder()
71 for (const NodeId Callee : successors(FuncId)) { in buildTraversalOrder()
/llvm-project-15.0.7/llvm/tools/llvm-xray/
H A Dxray-converter.cpp151 Writer.write(R.FuncId); in exportAsRAWv1()
197 if (node_iter->FuncId == FnId) in findSiblings()
206 if (node_iter->FuncId == FnId) in findSiblings()
217 StackTrieNode *Parent, int32_t FuncId, uint32_t TId, in findOrCreateStackNode() argument
224 return FuncId == ParentCallee->FuncId; in findOrCreateStackNode()
230 findSiblings(Parent, FuncId, TId, StackRootsByThreadId); in findOrCreateStackNode()
258 (Symbolize ? FuncIdHelper.SymbolOrNumber(FuncId) in writeTraceViewerRecord()
259 : llvm::to_string(FuncId)), in writeTraceViewerRecord()
266 (Symbolize ? FuncIdHelper.SymbolOrNumber(FuncId) in writeTraceViewerRecord()
267 : llvm::to_string(FuncId)), in writeTraceViewerRecord()
[all …]
H A Dfunc-id-helper.cpp21 std::string FuncIdConversionHelper::SymbolOrNumber(int32_t FuncId) const { in SymbolOrNumber()
22 auto CacheIt = CachedNames.find(FuncId); in SymbolOrNumber()
27 auto It = FunctionAddresses.find(FuncId); in SymbolOrNumber()
29 F << "#" << FuncId; in SymbolOrNumber()
50 CachedNames[FuncId] = S; in SymbolOrNumber()
54 std::string FuncIdConversionHelper::FileLineAndColumn(int32_t FuncId) const { in FileLineAndColumn()
55 auto It = FunctionAddresses.find(FuncId); in FileLineAndColumn()
H A Dtrie-node.h32 int32_t FuncId; member
56 assert(Left.FuncId == Right.FuncId); in mergeTrieNodes()
58 Left.FuncId, NewParent, {}, MergeFn(Left.ExtraData, Right.ExtraData)}); in mergeTrieNodes()
65 LeftCalleesByFuncId[Callee->FuncId] = Callee; in mergeTrieNodes()
73 auto iter = LeftCalleesByFuncId.find(Callee->FuncId); in mergeTrieNodes()
H A Dxray-stacks.cpp119 Converter->SymbolOrNumber(Item.FuncId), Item.TId, in format()
332 StackTrieNode *createTrieNode(uint32_t ThreadId, int32_t FuncId, in createTrieNode() argument
345 [&](StackTrieNode *N) { return N->FuncId == FuncId; }); in findRootNode()
378 auto *Root = findRootNode(R.TId, R.FuncId); in accountRecord()
386 [&](StackTrieNode *N) { return N->FuncId == R.FuncId; }); in accountRecord()
390 auto N = createTrieNode(R.TId, R.FuncId, Top.first); in accountRecord()
419 return E.first->FuncId == R.FuncId; in accountRecord()
462 auto FuncId = FN.SymbolOrNumber(F->FuncId); in printStack() local
464 FuncId.size() > 60 ? FuncId.substr(0, 57) + "..." : FuncId, in printStack()
471 auto LeafFuncId = FN.SymbolOrNumber(Leaf->FuncId); in printStack()
[all …]
H A Dxray-graph.cpp222 if (Record.FuncId != 0 && G.count(Record.FuncId) == 0) in accountRecord()
223 G[Record.FuncId].SymbolName = FuncIdHelper.SymbolOrNumber(Record.FuncId); in accountRecord()
224 ThreadStack.push_back({Record.FuncId, Record.TSC}); in accountRecord()
231 if (ThreadStack.size() == 0 || ThreadStack.back().FuncId != Record.FuncId) { in accountRecord()
237 return A.FuncId == Record.FuncId; in accountRecord()
244 while (ThreadStack.back().FuncId != Record.FuncId) { in accountRecord()
246 VertexIdentifier TopFuncId = ThreadStack.back().FuncId; in accountRecord()
249 EdgeIdentifier EI(ThreadStack.back().FuncId, TopFuncId); in accountRecord()
259 EdgeIdentifier EI(VI, Record.FuncId); in accountRecord()
263 updateStat(G[Record.FuncId].S, D); in accountRecord()
[all …]
/llvm-project-15.0.7/llvm/lib/MC/
H A DMCCodeView.cpp80 if (FuncId >= Functions.size()) in getCVFunctionInfo()
84 return &Functions[FuncId]; in getCVFunctionInfo()
88 if (FuncId >= Functions.size()) in recordFunctionId()
89 Functions.resize(FuncId + 1); in recordFunctionId()
103 if (FuncId >= Functions.size()) in recordInlinedCallSiteId()
104 Functions.resize(FuncId + 1); in recordInlinedCallSiteId()
116 MCCVFunctionInfo *Info = &Functions[FuncId]; in recordInlinedCallSiteId()
125 Info->InlinedAtMap[FuncId] = InlinedAt; in recordInlinedCallSiteId()
278 auto I = MCCVLineStartStop.find(FuncId); in getFunctionLineEntries()
284 if (LocationFuncId == FuncId) { in getFunctionLineEntries()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/xray/tests/unit/
H A Dfdr_controller_test.cpp32 using ::llvm::xray::testing::FuncId;
75 AllOf(FuncId(1), RecordType(llvm::xray::RecordTypes::ENTER)), in TEST_F()
76 AllOf(FuncId(1), RecordType(llvm::xray::RecordTypes::EXIT))))); in TEST_F()
99 AllOf(FuncId(FId), RecordType(llvm::xray::RecordTypes::ENTER)), in TEST_F()
100 AllOf(FuncId(FId), RecordType(llvm::xray::RecordTypes::EXIT)), in TEST_F()
159 AllOf(FuncId(1), RecordType(llvm::xray::RecordTypes::ENTER), in TEST_F()
161 AllOf(FuncId(1), RecordType(llvm::xray::RecordTypes::EXIT), in TEST_F()
183 AllOf(FuncId(1), RecordType(llvm::xray::RecordTypes::ENTER), in TEST_F()
185 AllOf(FuncId(1), RecordType(llvm::xray::RecordTypes::EXIT), in TEST_F()
288 AllOf(FuncId(1), RecordType(llvm::xray::RecordTypes::ENTER)), in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-readobj/COFF/
H A Dcodeview-merging.test33 OBJ1: FuncId (0x100D) {
39 OBJ1-NEXT: FuncId (0x100E) {
45 OBJ1-NOT: FuncId
47 OBJ2: FuncId (0x100D) {
54 OBJ2: FuncId (0x1069) {
60 OBJ2-NOT: FuncId
100 CHECK: FuncId (0x1002) {
106 CHECK-NEXT: FuncId (0x1003) {
112 CHECK-NOT: FuncId
/llvm-project-15.0.7/llvm/lib/XRay/
H A DInstrumentationMap.cpp44 Optional<uint64_t> InstrumentationMap::getFunctionAddr(int32_t FuncId) const { in getFunctionAddr()
45 auto I = FunctionAddresses.find(FuncId); in getFunctionAddr()
166 int32_t FuncId = 1; in loadObj() local
207 FunctionAddresses[FuncId] = Entry.Function; in loadObj()
208 FunctionIds[Entry.Function] = FuncId; in loadObj()
211 ++FuncId; in loadObj()
213 FunctionAddresses[FuncId] = Entry.Function; in loadObj()
214 FunctionIds[Entry.Function] = FuncId; in loadObj()
243 FunctionAddresses[Y.FuncId] = Y.Function; in loadYAML()
244 FunctionIds[Y.Function] = Y.FuncId; in loadYAML()
/llvm-project-15.0.7/llvm/include/llvm/MC/
H A DMCCodeView.h155 bool recordFunctionId(unsigned FuncId);
161 bool recordInlinedCallSiteId(unsigned FuncId, unsigned IAFunc,
166 MCCVFunctionInfo *getCVFunctionInfo(unsigned FuncId);
179 std::vector<MCCVLoc> getFunctionLineEntries(unsigned FuncId);
181 std::pair<size_t, size_t> getLineExtent(unsigned FuncId);
186 void emitLineTableForFunction(MCObjectStreamer &OS, unsigned FuncId,

123456