Home
last modified time | relevance | path

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

123

/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/xray/
H A Dxray_interface.cc151 int32_t FuncId) XRAY_NEVER_INSTRUMENT { in patchSled() argument
155 Success = patchFunctionEntry(Enable, FuncId, Sled, __xray_FunctionEntry); in patchSled()
158 Success = patchFunctionExit(Enable, FuncId, Sled); in patchSled()
161 Success = patchFunctionTailExit(Enable, FuncId, Sled); in patchSled()
164 Success = patchFunctionEntry(Enable, FuncId, Sled, __xray_ArgLoggerEntry); in patchSled()
167 Success = patchCustomEvent(Enable, FuncId, Sled); in patchSled()
170 Success = patchTypedEvent(Enable, FuncId, Sled); in patchSled()
179 XRayPatchingStatus patchFunction(int32_t FuncId, in patchFunction() argument
203 if (FuncId <= 0 || static_cast<size_t>(FuncId) > InstrMap.Functions) { in patchFunction()
204 Report("Invalid function id provided: %d\n", FuncId); in patchFunction()
[all …]
H A Dxray_powerpc64.cc53 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
77 (0x3c000000ull + (FuncId >> 16)) + in patchFunctionExit()
78 ((0x60000000ull + (FuncId & 0xffff)) << 32); in patchFunctionExit()
88 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, in patchFunctionTailExit() argument
90 return patchFunctionExit(Enable, FuncId, Sled); in patchFunctionTailExit()
96 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, in patchCustomEvent() argument
102 bool patchTypedEvent(const bool Enable, const uint32_t FuncId, in patchTypedEvent() argument
H A Dxray_AArch64.cc35 inline static bool patchSled(const bool Enable, const uint32_t FuncId, in patchSled() argument
74 *CurAddress = FuncId; in patchSled()
93 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, in patchFunctionEntry() argument
96 return patchSled(Enable, FuncId, Sled, Trampoline); in patchFunctionEntry()
99 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, in patchFunctionExit() argument
101 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionExit()
104 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, in patchFunctionTailExit() argument
106 return patchSled(Enable, FuncId, Sled, __xray_FunctionTailExit); in patchFunctionTailExit()
109 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, in patchCustomEvent() argument
115 bool patchTypedEvent(const bool Enable, const uint32_t FuncId, in patchTypedEvent() argument
H A Dxray_arm.cc77 inline static bool patchSled(const bool Enable, const uint32_t FuncId, in patchSled() argument
110 write32bitLoadR0(CurAddress, reinterpret_cast<uint32_t>(FuncId)); in patchSled()
130 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, in patchFunctionEntry() argument
133 return patchSled(Enable, FuncId, Sled, Trampoline); in patchFunctionEntry()
136 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, in patchFunctionExit() argument
138 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionExit()
141 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, in patchFunctionTailExit() argument
143 return patchSled(Enable, FuncId, Sled, __xray_FunctionTailExit); in patchFunctionTailExit()
146 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, in patchCustomEvent() argument
152 bool patchTypedEvent(const bool Enable, const uint32_t FuncId, in patchTypedEvent() argument
H A Dxray_mips.cc53 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_basic_logging.cc49 int32_t FuncId; member
159 void InMemoryRawLog(int32_t FuncId, XRayEntryType Type, in InMemoryRawLog() argument
186 E.FuncId = FuncId; in InMemoryRawLog()
217 if (StackTop.FuncId == FuncId && StackTop.CPU == CPU && in InMemoryRawLog()
243 R.FuncId = FuncId; in InMemoryRawLog()
256 void InMemoryRawLogWithArg(int32_t FuncId, XRayEntryType Type, uint64_t Arg1, in InMemoryRawLogWithArg() argument
278 InMemoryRawLog(FuncId, Type, ReadTSC); in InMemoryRawLogWithArg()
287 R.FuncId = FuncId; in InMemoryRawLogWithArg()
301 void basicLoggingHandleArg0RealTSC(int32_t FuncId, in basicLoggingHandleArg0RealTSC() argument
303 InMemoryRawLog(FuncId, Type, readTSC); in basicLoggingHandleArg0RealTSC()
[all …]
H A Dxray_mips64.cc54 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()
146 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, in patchFunctionEntry() argument
149 return patchSled(Enable, FuncId, Sled, Trampoline); in patchFunctionEntry()
152 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, in patchFunctionExit() argument
154 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionExit()
157 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, in patchFunctionTailExit() argument
161 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionTailExit()
164 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, in patchCustomEvent() argument
[all …]
H A Dxray_fdr_controller.h52 constexpr int32_t mask(int32_t FuncId) const XRAY_NEVER_INSTRUMENT { in mask() argument
53 return FuncId & ((1 << 29) - 1); in mask()
182 bool rewindRecords(int32_t FuncId, uint64_t TSC, in rewindRecords() argument
199 DCHECK_EQ(F.FuncId, FuncId & ~(0x0F << 28)); in rewindRecords()
245 bool functionEnter(int32_t FuncId, uint64_t TSC, in functionEnter() argument
266 mask(FuncId), Delta); in functionEnter()
269 bool functionTailExit(int32_t FuncId, uint64_t TSC, in functionTailExit() argument
284 return rewindRecords(FuncId, TSC, CPU); in functionTailExit()
291 mask(FuncId), Delta); in functionTailExit()
294 bool functionEnterArg(int32_t FuncId, uint64_t TSC, uint16_t CPU, in functionEnterArg() argument
[all …]
H A Dxray_interface_internal.h60 bool patchFunctionEntry(bool Enable, uint32_t FuncId, const XRaySledEntry &Sled,
62 bool patchFunctionExit(bool Enable, uint32_t FuncId, const XRaySledEntry &Sled);
63 bool patchFunctionTailExit(bool Enable, uint32_t FuncId,
65 bool patchCustomEvent(bool Enable, uint32_t FuncId, const XRaySledEntry &Sled);
66 bool patchTypedEvent(bool Enable, uint32_t FuncId, const XRaySledEntry &Sled);
H A Dxray_basic_logging.h32 void basicLoggingHandleArg0RealTSC(int32_t FuncId, XRayEntryType Entry);
33 void basicLoggingHandleArg0EmulateTSC(int32_t FuncId, XRayEntryType Entry);
34 void basicLoggingHandleArg1RealTSC(int32_t FuncId, XRayEntryType Entry,
36 void basicLoggingHandleArg1EmulateTSC(int32_t FuncId, XRayEntryType Entry,
H A Dxray_x86_64.cc130 bool patchFunctionEntry(const bool Enable, const uint32_t FuncId, in patchFunctionEntry() argument
162 *reinterpret_cast<uint32_t *>(Sled.Address + 2) = FuncId; in patchFunctionEntry()
177 bool patchFunctionExit(const bool Enable, const uint32_t FuncId, in patchFunctionExit() argument
207 *reinterpret_cast<uint32_t *>(Sled.Address + 2) = FuncId; in patchFunctionExit()
222 bool patchFunctionTailExit(const bool Enable, const uint32_t FuncId, in patchFunctionTailExit() argument
235 *reinterpret_cast<uint32_t *>(Sled.Address + 2) = FuncId; in patchFunctionTailExit()
250 bool patchCustomEvent(const bool Enable, const uint32_t FuncId, in patchCustomEvent() argument
297 bool patchTypedEvent(const bool Enable, const uint32_t FuncId, in patchTypedEvent() argument
H A Dxray_trampoline_arm.S17 @ In C++ it is void extern "C" __xray_FunctionEntry(uint32_t FuncId) with
18 @ FuncId passed in r0 register.
47 @ In C++ it is extern "C" void __xray_FunctionExit(uint32_t FuncId) with
48 @ FuncId passed in r0 register.
78 @ In C++ it is void extern "C" __xray_FunctionTailExit(uint32_t FuncId)
79 @ with FuncId passed in r0 register.
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-xray/
H A Dxray-converter.cpp85 Trace.Records.push_back({R.RecordType, R.CPU, R.Type, R.FuncId, in exportAsYAML()
86 Symbolize ? FuncIdHelper.SymbolOrNumber(R.FuncId) in exportAsYAML()
87 : llvm::to_string(R.FuncId), in exportAsYAML()
142 Writer.write(R.FuncId); in exportAsRAWv1()
188 if (node_iter->FuncId == FnId) in findSiblings()
197 if (node_iter->FuncId == FnId) in findSiblings()
208 StackTrieNode *Parent, int32_t FuncId, uint32_t TId, in findOrCreateStackNode() argument
214 auto match = find_if(ParentCallees, [FuncId](StackTrieNode *ParentCallee) { in findOrCreateStackNode()
215 return FuncId == ParentCallee->FuncId; in findOrCreateStackNode()
221 findSiblings(Parent, FuncId, TId, StackRootsByThreadId); in findOrCreateStackNode()
[all …]
H A Dfunc-id-helper.cpp20 std::string FuncIdConversionHelper::SymbolOrNumber(int32_t FuncId) const { in SymbolOrNumber()
21 auto CacheIt = CachedNames.find(FuncId); in SymbolOrNumber()
26 auto It = FunctionAddresses.find(FuncId); in SymbolOrNumber()
28 F << "#" << FuncId; in SymbolOrNumber()
49 CachedNames[FuncId] = S; in SymbolOrNumber()
53 std::string FuncIdConversionHelper::FileLineAndColumn(int32_t FuncId) const { in FileLineAndColumn()
54 auto It = FunctionAddresses.find(FuncId); in FileLineAndColumn()
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
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 == 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()
[all …]
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-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 [&](const FunctionAttr &A) { return A.FuncId == Record.FuncId; }); in accountRecord()
243 while (ThreadStack.back().FuncId != Record.FuncId) { in accountRecord()
245 VertexIdentifier TopFuncId = ThreadStack.back().FuncId; in accountRecord()
248 EdgeIdentifier EI(ThreadStack.back().FuncId, TopFuncId); in accountRecord()
257 VertexIdentifier VI = ThreadStack.empty() ? 0 : ThreadStack.back().FuncId; in accountRecord()
258 EdgeIdentifier EI(VI, Record.FuncId); in accountRecord()
[all …]
H A Dxray-account.cpp178 ThreadStack.Stack.emplace_back(Record.FuncId, Record.TSC); in accountRecord()
180 ++(*ThreadStack.RecursionDepth)[Record.FuncId]; in accountRecord()
188 if (ThreadStack.Stack.back().first == Record.FuncId) { in accountRecord()
206 return E.first == Record.FuncId; in accountRecord()
314 const auto &FuncId = FT.first; in exportStats() local
316 Results.emplace_back(FuncId, Timings.size(), getStats(Timings)); in exportStats()
328 Row.Function = FuncIdHelper.SymbolOrNumber(FuncId); in exportStats()
329 Row.DebugInfo = FuncIdHelper.FileLineAndColumn(FuncId); in exportStats()
401 exportStats(Header, [&](int32_t FuncId, size_t Count, const ResultRow &Row) { in exportStatsAsText() argument
402 OS << llvm::formatv(StatsFormat, FuncId, Count, Row.Min, Row.Median, in exportStatsAsText()
[all …]
H A Dxray-extract.cpp63 auto FuncId = Map.getFunctionId(Sled.Function); in exportAsYAML() local
64 if (!FuncId) in exportAsYAML()
67 {*FuncId, Sled.Address, Sled.Function, Sled.Kind, Sled.AlwaysInstrument, in exportAsYAML()
68 ExtractSymbolize ? FH.SymbolOrNumber(*FuncId) : "", Sled.Version}); in exportAsYAML()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/MC/
H A DMCCodeView.cpp78 MCCVFunctionInfo *CodeViewContext::getCVFunctionInfo(unsigned FuncId) { in getCVFunctionInfo() argument
79 if (FuncId >= Functions.size()) in getCVFunctionInfo()
81 if (Functions[FuncId].isUnallocatedFunctionInfo()) in getCVFunctionInfo()
83 return &Functions[FuncId]; in getCVFunctionInfo()
86 bool CodeViewContext::recordFunctionId(unsigned FuncId) { in recordFunctionId() argument
87 if (FuncId >= Functions.size()) in recordFunctionId()
88 Functions.resize(FuncId + 1); in recordFunctionId()
91 if (!Functions[FuncId].isUnallocatedFunctionInfo()) in recordFunctionId()
95 Functions[FuncId].ParentFuncIdPlusOne = MCCVFunctionInfo::FunctionSentinel; in recordFunctionId()
99 bool CodeViewContext::recordInlinedCallSiteId(unsigned FuncId, unsigned IAFunc, in recordInlinedCallSiteId() argument
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/xray/tests/unit/
H A Dfdr_controller_test.cc33 using ::llvm::xray::testing::FuncId;
76 AllOf(FuncId(1), RecordType(llvm::xray::RecordTypes::ENTER)), in TEST_F()
77 AllOf(FuncId(1), RecordType(llvm::xray::RecordTypes::EXIT))))); in TEST_F()
100 AllOf(FuncId(FId), RecordType(llvm::xray::RecordTypes::ENTER)), in TEST_F()
101 AllOf(FuncId(FId), RecordType(llvm::xray::RecordTypes::EXIT)), in TEST_F()
102 AllOf(FuncId(FId), RecordType(llvm::xray::RecordTypes::ENTER_ARG)), in TEST_F()
103 AllOf(FuncId(FId), RecordType(llvm::xray::RecordTypes::TAIL_EXIT))))); in TEST_F()
136 AllOf(FuncId(1), RecordType(llvm::xray::RecordTypes::ENTER_ARG), in TEST_F()
138 AllOf(FuncId(1), RecordType(llvm::xray::RecordTypes::EXIT))))); in TEST_F()
160 AllOf(FuncId(1), RecordType(llvm::xray::RecordTypes::ENTER), in TEST_F()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
168 int32_t FuncId = 1; in loadObj() local
209 FunctionAddresses[FuncId] = Entry.Function; in loadObj()
210 FunctionIds[Entry.Function] = FuncId; in loadObj()
213 ++FuncId; in loadObj()
215 FunctionAddresses[FuncId] = Entry.Function; in loadObj()
216 FunctionIds[Entry.Function] = FuncId; in loadObj()
245 FunctionAddresses[Y.FuncId] = Y.Function; in loadYAML()
246 FunctionIds[Y.Function] = Y.FuncId; in loadYAML()
H A DProfile.cpp83 int32_t FuncId; in readPath() local
85 FuncId = Extractor.getSigned(&Offset, 4); in readPath()
91 Path.push_back(FuncId); in readPath()
92 } while (FuncId != 0); in readPath()
321 Profile::FuncID FuncId; member
345 TSD.push_back({E.TSC, E.FuncId}); in profileFromTrace()
360 std::mem_fn(&StackEntry::FuncId)); in profileFromTrace()
369 if (Top.FuncId == E.FuncId) in profileFromTrace()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/MC/
H A DMCCodeView.h148 bool recordFunctionId(unsigned FuncId);
154 bool recordInlinedCallSiteId(unsigned FuncId, unsigned IAFunc,
159 MCCVFunctionInfo *getCVFunctionInfo(unsigned FuncId);
172 std::vector<MCCVLoc> getFunctionLineEntries(unsigned FuncId);
174 std::pair<size_t, size_t> getLineExtent(unsigned FuncId);
179 void emitLineTableForFunction(MCObjectStreamer &OS, unsigned FuncId,
/netbsd-src/sys/external/bsd/compiler_rt/dist/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);

123