Home
last modified time | relevance | path

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

123

/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_interface.cpp184 findFunctionSleds(int32_t FuncId, in findFunctionSleds() argument
198 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()
290 uint32_t FuncId = 1; in controlPatching() local
336 ++FuncId; in controlPatching()
339 patchSled(Sled, Enable, FuncId); in controlPatching()
357 if (FuncId <= 0 || static_cast<size_t>(FuncId) > InstrMap.Functions) { in mprotectAndPatchFunction()
401 return patchFunction(FuncId, Enable); in mprotectAndPatchFunction()
482 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_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_AArch64.cpp33 inline static bool patchSled(const bool Enable, const uint32_t FuncId, in patchSled() argument
71 *CurAddress = FuncId; in patchSled()
90 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, in patchFunctionEntry() argument
93 return patchSled(Enable, FuncId, Sled, Trampoline); in patchFunctionEntry()
96 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, in patchFunctionExit() argument
98 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionExit()
101 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, in patchFunctionTailExit() argument
103 return patchSled(Enable, FuncId, Sled, __xray_FunctionTailExit); in patchFunctionTailExit()
120 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, in patchCustomEvent() argument
131 bool patchTypedEvent(const bool Enable, const uint32_t FuncId, in patchTypedEvent() argument
H A Dxray_loongarch64.cpp43 static inline bool patchSled(const bool Enable, const uint32_t FuncId, in patchSled() argument
86 uint32_t LoFunctionID = FuncId & 0xfff; in patchSled()
87 uint32_t HiFunctionID = (FuncId >> 12) & 0xfffff; in patchSled()
127 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, in patchFunctionEntry() argument
130 return patchSled(Enable, FuncId, Sled, Trampoline); in patchFunctionEntry()
133 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, in patchFunctionExit() argument
135 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionExit()
138 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, in patchFunctionTailExit() argument
142 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionTailExit()
145 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.h81 bool patchFunctionEntry(bool Enable, uint32_t FuncId, const XRaySledEntry &Sled,
83 bool patchFunctionExit(bool Enable, uint32_t FuncId, const XRaySledEntry &Sled);
84 bool patchFunctionTailExit(bool Enable, uint32_t FuncId,
86 bool patchCustomEvent(bool Enable, uint32_t FuncId, const XRaySledEntry &Sled);
87 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
277 bool patchTypedEvent(const bool Enable, const uint32_t FuncId, in patchTypedEvent() argument
/freebsd-14.2/contrib/llvm-project/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.cpp224 if (Record.FuncId != 0 && G.count(Record.FuncId) == 0) in accountRecord()
225 G[Record.FuncId].SymbolName = FuncIdHelper.SymbolOrNumber(Record.FuncId); in accountRecord()
226 ThreadStack.push_back({Record.FuncId, Record.TSC}); in accountRecord()
233 if (ThreadStack.size() == 0 || ThreadStack.back().FuncId != Record.FuncId) { in accountRecord()
239 return A.FuncId == Record.FuncId; in accountRecord()
246 while (ThreadStack.back().FuncId != Record.FuncId) { in accountRecord()
248 VertexIdentifier TopFuncId = ThreadStack.back().FuncId; in accountRecord()
251 EdgeIdentifier EI(ThreadStack.back().FuncId, TopFuncId); in accountRecord()
261 EdgeIdentifier EI(VI, Record.FuncId); in accountRecord()
265 updateStat(G[Record.FuncId].S, D); in accountRecord()
[all …]
H A Dxray-account.cpp180 ThreadStack.Stack.emplace_back(Record.FuncId, Record.TSC); in accountRecord()
182 ++(*ThreadStack.RecursionDepth)[Record.FuncId]; in accountRecord()
190 if (ThreadStack.Stack.back().first == Record.FuncId) { in accountRecord()
208 return E.first == Record.FuncId; in accountRecord()
316 const auto &FuncId = FT.first; in exportStats() local
318 Results.emplace_back(FuncId, Timings.size(), getStats(Timings)); in exportStats()
330 Row.Function = FuncIdHelper.SymbolOrNumber(FuncId); in exportStats()
331 Row.DebugInfo = FuncIdHelper.FileLineAndColumn(FuncId); in exportStats()
404 OS << llvm::formatv(StatsFormat, FuncId, Count, Row.Min, Row.Median, in exportStatsAsText()
414 OS << FuncId << ',' << Count << ',' << Row.Min << ',' << Row.Median << ',' in exportStatsAsCSV()
[all …]
H A Dxray-extract.cpp64 auto FuncId = Map.getFunctionId(Sled.Function); in exportAsYAML() local
65 if (!FuncId) in exportAsYAML()
68 {*FuncId, Sled.Address, Sled.Function, Sled.Kind, Sled.AlwaysInstrument, in exportAsYAML()
69 ExtractSymbolize ? FH.SymbolOrNumber(*FuncId) : "", Sled.Version}); in exportAsYAML()
/freebsd-14.2/contrib/llvm-project/llvm/lib/MC/
H A DMCCodeView.cpp80 if (FuncId >= Functions.size()) in getCVFunctionInfo()
82 if (Functions[FuncId].isUnallocatedFunctionInfo()) 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()
288 if (LocationFuncId == FuncId) { in getFunctionLineEntries()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCCodeView.h158 bool recordFunctionId(unsigned FuncId);
164 bool recordInlinedCallSiteId(unsigned FuncId, unsigned IAFunc,
169 MCCVFunctionInfo *getCVFunctionInfo(unsigned FuncId);
182 std::vector<MCCVLoc> getFunctionLineEntries(unsigned FuncId);
184 std::pair<size_t, size_t> getLineExtent(unsigned FuncId);
185 std::pair<size_t, size_t> getLineExtentIncludingInlinees(unsigned FuncId);
190 void emitLineTableForFunction(MCObjectStreamer &OS, unsigned FuncId,
/freebsd-14.2/contrib/llvm-project/llvm/lib/XRay/
H A DInstrumentationMap.cpp44 InstrumentationMap::getFunctionAddr(int32_t FuncId) const { in getFunctionAddr()
45 auto I = FunctionAddresses.find(FuncId); in getFunctionAddr()
167 int32_t FuncId = 1; in loadObj() local
208 FunctionAddresses[FuncId] = Entry.Function; in loadObj()
209 FunctionIds[Entry.Function] = FuncId; in loadObj()
212 ++FuncId; in loadObj()
214 FunctionAddresses[FuncId] = Entry.Function; in loadObj()
215 FunctionIds[Entry.Function] = FuncId; in loadObj()
244 FunctionAddresses[Y.FuncId] = Y.Function; in loadYAML()
245 FunctionIds[Y.Function] = Y.FuncId; in loadYAML()
/freebsd-14.2/contrib/llvm-project/compiler-rt/include/xray/
H A Dxray_interface.h106 extern XRayPatchingStatus __xray_patch_function(int32_t FuncId);
110 extern XRayPatchingStatus __xray_unpatch_function(int32_t FuncId);
115 extern uintptr_t __xray_function_address(int32_t FuncId);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DInstrOrderFile.cpp88 void generateCodeSequence(Module &M, Function &F, int FuncId) { in generateCodeSequence()
125 ConstantInt::get(Int32Ty, FuncId)}; in generateCodeSequence()
151 int FuncId = 0; in run() local
155 generateCodeSequence(M, F, FuncId); in run()
156 ++FuncId; in run()

123