Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_interface.cpp154 int32_t FuncId) XRAY_NEVER_INSTRUMENT { in patchSled() argument
158 Success = patchFunctionEntry(Enable, FuncId, Sled, __xray_FunctionEntry); in patchSled()
161 Success = patchFunctionExit(Enable, FuncId, Sled); in patchSled()
164 Success = patchFunctionTailExit(Enable, FuncId, Sled); in patchSled()
167 Success = patchFunctionEntry(Enable, FuncId, Sled, __xray_ArgLoggerEntry); in patchSled()
170 Success = patchCustomEvent(Enable, FuncId, Sled); in patchSled()
173 Success = patchTypedEvent(Enable, FuncId, Sled); in patchSled()
184 findFunctionSleds(int32_t FuncId, in findFunctionSleds() argument
190 for (std::size_t I = 0; I < InstrMap.Entries && CurFn <= FuncId; I++) { in findFunctionSleds()
198 if (CurFn == FuncId) { in findFunctionSleds()
[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()
255 void InMemoryRawLogWithArg(int32_t FuncId, XRayEntryType Type, uint64_t Arg1, in InMemoryRawLogWithArg() argument
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()
[all …]
H A Dxray_fdr_controller.h51 constexpr int32_t mask(int32_t FuncId) const XRAY_NEVER_INSTRUMENT { in mask() argument
52 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()
293 bool functionEnterArg(int32_t FuncId, uint64_t TSC, uint16_t CPU, in functionEnterArg() 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/contrib/llvm-project/llvm/tools/llvm-xray/
H A Dxray-converter.cpp94 Trace.Records.push_back({R.RecordType, R.CPU, R.Type, R.FuncId, in exportAsYAML()
95 Symbolize ? FuncIdHelper.SymbolOrNumber(R.FuncId) in exportAsYAML()
96 : llvm::to_string(R.FuncId), in exportAsYAML()
151 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
223 auto match = find_if(ParentCallees, [FuncId](StackTrieNode *ParentCallee) { in findOrCreateStackNode()
224 return FuncId == ParentCallee->FuncId; in findOrCreateStackNode()
247 writeTraceViewerRecord(uint16_t Version,raw_ostream & OS,int32_t FuncId,uint32_t TId,uint32_t PId,bool Symbolize,const FuncIdConversionHelper & FuncIdHelper,double EventTimestampUs,const StackTrieNode & StackCursor,StringRef FunctionPhenotype) writeTraceViewerRecord() argument
[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.cpp118 "{FuncId: \"{0}\", ThreadId: \"{1}\", RecordType: \"{2}\"}", in format()
119 Converter->SymbolOrNumber(Item.FuncId), Item.TId, in format()
332 StackTrieNode *createTrieNode(uint32_t ThreadId, int32_t FuncId, in createTrieNode() argument
334 NodeStore.push_front(StackTrieNode{FuncId, Parent, {}, {{}, {}}}); in createTrieNode()
342 StackTrieNode *findRootNode(uint32_t ThreadId, int32_t FuncId) { in findRootNode() argument
345 [&](StackTrieNode *N) { return N->FuncId == FuncId; }); in findRootNode()
378 auto *Root = findRootNode(R.TId, R.FuncId); in accountRecord()
379 TS.emplace_back(Root ? Root : createTrieNode(R.TId, R.FuncId, nullptr), in accountRecord()
386 [&](StackTrieNode *N) { return N->FuncId in accountRecord()
462 auto FuncId = FN.SymbolOrNumber(F->FuncId); printStack() local
[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()
260 VertexIdentifier VI = ThreadStack.empty() ? 0 : ThreadStack.back().FuncId; in accountRecord()
261 EdgeIdentifier EI(VI, Record.FuncId); 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()
403 exportStats(Header, [&](int32_t FuncId, size_t Count, const ResultRow &Row) { in exportStatsAsText() argument
404 OS << llvm::formatv(StatsFormat, FuncId, Count, Row.Min, Row.Median, in exportStatsAsText()
[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/contrib/llvm-project/llvm/lib/MC/
H A DMCCodeView.cpp76 MCCVFunctionInfo *CodeViewContext::getCVFunctionInfo(unsigned FuncId) { in getCVFunctionInfo() argument
77 if (FuncId >= Functions.size()) in getCVFunctionInfo()
79 if (Functions[FuncId].isUnallocatedFunctionInfo()) in getCVFunctionInfo()
81 return &Functions[FuncId]; in getCVFunctionInfo()
84 bool CodeViewContext::recordFunctionId(unsigned FuncId) { in recordFunctionId() argument
85 if (FuncId >= Functions.size()) in recordFunctionId()
86 Functions.resize(FuncId + 1); in recordFunctionId()
89 if (!Functions[FuncId].isUnallocatedFunctionInfo()) in recordFunctionId()
93 Functions[FuncId].ParentFuncIdPlusOne = MCCVFunctionInfo::FunctionSentinel; in recordFunctionId()
97 bool CodeViewContext::recordInlinedCallSiteId(unsigned FuncId, unsigned IAFunc, in recordInlinedCallSiteId() argument
[all …]
/freebsd/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/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/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/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