Home
last modified time | relevance | path

Searched refs:Sled (Results 1 – 11 of 11) sorted by relevance

/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/xray/
H A Dxray_x86_64.cc131 const XRaySledEntry &Sled, in patchFunctionEntry() argument
155 (static_cast<int64_t>(Sled.Address) + 11); in patchFunctionEntry()
158 Trampoline, reinterpret_cast<void *>(Sled.Address)); in patchFunctionEntry()
162 *reinterpret_cast<uint32_t *>(Sled.Address + 2) = FuncId; in patchFunctionEntry()
163 *reinterpret_cast<uint8_t *>(Sled.Address + 6) = CallOpCode; in patchFunctionEntry()
164 *reinterpret_cast<uint32_t *>(Sled.Address + 7) = TrampolineOffset; in patchFunctionEntry()
166 reinterpret_cast<std::atomic<uint16_t> *>(Sled.Address), MovR10Seq, in patchFunctionEntry()
170 reinterpret_cast<std::atomic<uint16_t> *>(Sled.Address), Jmp9Seq, in patchFunctionEntry()
178 const XRaySledEntry &Sled) XRAY_NEVER_INSTRUMENT { in patchFunctionExit() argument
200 (static_cast<int64_t>(Sled.Address) + 11); in patchFunctionExit()
[all …]
H A Dxray_mips64.cc55 const XRaySledEntry &Sled, in patchSled() argument
104 *reinterpret_cast<uint32_t *>(Sled.Address + 8) = encodeInstruction( in patchSled()
106 *reinterpret_cast<uint32_t *>(Sled.Address + 12) = encodeInstruction( in patchSled()
108 *reinterpret_cast<uint32_t *>(Sled.Address + 16) = encodeInstruction( in patchSled()
110 *reinterpret_cast<uint32_t *>(Sled.Address + 20) = in patchSled()
113 *reinterpret_cast<uint32_t *>(Sled.Address + 24) = encodeSpecialInstruction( in patchSled()
115 *reinterpret_cast<uint32_t *>(Sled.Address + 28) = encodeInstruction( in patchSled()
117 *reinterpret_cast<uint32_t *>(Sled.Address + 32) = encodeSpecialInstruction( in patchSled()
119 *reinterpret_cast<uint32_t *>(Sled.Address + 36) = encodeInstruction( in patchSled()
121 *reinterpret_cast<uint32_t *>(Sled.Address + 40) = encodeInstruction( in patchSled()
[all …]
H A Dxray_mips.cc54 const XRaySledEntry &Sled, in patchSled() argument
104 *reinterpret_cast<uint32_t *>(Sled.Address + 8) = encodeInstruction( in patchSled()
106 *reinterpret_cast<uint32_t *>(Sled.Address + 12) = encodeInstruction( in patchSled()
108 *reinterpret_cast<uint32_t *>(Sled.Address + 16) = encodeInstruction( in patchSled()
110 *reinterpret_cast<uint32_t *>(Sled.Address + 20) = encodeInstruction( in patchSled()
112 *reinterpret_cast<uint32_t *>(Sled.Address + 24) = encodeInstruction( in patchSled()
114 *reinterpret_cast<uint32_t *>(Sled.Address + 28) = encodeSpecialInstruction( in patchSled()
116 *reinterpret_cast<uint32_t *>(Sled.Address + 32) = encodeInstruction( in patchSled()
118 *reinterpret_cast<uint32_t *>(Sled.Address + 36) = encodeInstruction( in patchSled()
120 *reinterpret_cast<uint32_t *>(Sled.Address + 40) = encodeInstruction( in patchSled()
[all …]
H A Dxray_powerpc64.cc54 const XRaySledEntry &Sled, in patchFunctionEntry() argument
59 *reinterpret_cast<uint64_t *>(Sled.Address) = in patchFunctionEntry()
64 *reinterpret_cast<uint32_t *>(Sled.Address) = in patchFunctionEntry()
67 clearCache(reinterpret_cast<void *>(Sled.Address), 8); in patchFunctionEntry()
72 const XRaySledEntry &Sled) XRAY_NEVER_INSTRUMENT { in patchFunctionExit() argument
76 *reinterpret_cast<uint64_t *>(Sled.Address) = in patchFunctionExit()
81 *reinterpret_cast<uint32_t *>(Sled.Address) = in patchFunctionExit()
82 *(reinterpret_cast<uint32_t *>(Sled.Address) + JumpOverInstNum); in patchFunctionExit()
84 clearCache(reinterpret_cast<void *>(Sled.Address), 8); in patchFunctionExit()
89 const XRaySledEntry &Sled) XRAY_NEVER_INSTRUMENT { in patchFunctionTailExit() argument
[all …]
H A Dxray_AArch64.cc36 const XRaySledEntry &Sled, in patchSled() argument
65 uint32_t *FirstAddress = reinterpret_cast<uint32_t *>(Sled.Address); in patchSled()
94 const XRaySledEntry &Sled, in patchFunctionEntry() argument
96 return patchSled(Enable, FuncId, Sled, Trampoline); in patchFunctionEntry()
100 const XRaySledEntry &Sled) XRAY_NEVER_INSTRUMENT { in patchFunctionExit() argument
101 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionExit()
105 const XRaySledEntry &Sled) XRAY_NEVER_INSTRUMENT { in patchFunctionTailExit() argument
106 return patchSled(Enable, FuncId, Sled, __xray_FunctionTailExit); in patchFunctionTailExit()
110 const XRaySledEntry &Sled) in patchCustomEvent() argument
116 const XRaySledEntry &Sled) XRAY_NEVER_INSTRUMENT { in patchTypedEvent() argument
H A Dxray_arm.cc78 const XRaySledEntry &Sled, in patchSled() argument
106 uint32_t *FirstAddress = reinterpret_cast<uint32_t *>(Sled.Address); in patchSled()
131 const XRaySledEntry &Sled, in patchFunctionEntry() argument
133 return patchSled(Enable, FuncId, Sled, Trampoline); in patchFunctionEntry()
137 const XRaySledEntry &Sled) XRAY_NEVER_INSTRUMENT { in patchFunctionExit() argument
138 return patchSled(Enable, FuncId, Sled, __xray_FunctionExit); in patchFunctionExit()
142 const XRaySledEntry &Sled) XRAY_NEVER_INSTRUMENT { in patchFunctionTailExit() argument
143 return patchSled(Enable, FuncId, Sled, __xray_FunctionTailExit); in patchFunctionTailExit()
147 const XRaySledEntry &Sled) in patchCustomEvent() argument
153 const XRaySledEntry &Sled) XRAY_NEVER_INSTRUMENT { in patchTypedEvent() argument
H A Dxray_interface.cc150 bool patchSled(const XRaySledEntry &Sled, bool Enable, in patchSled() argument
153 switch (Sled.Kind) { in patchSled()
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()
173 Report("Unsupported sled kind '%d' @%04x\n", Sled.Address, int(Sled.Kind)); in patchSled()
271 const auto &Sled = InstrMap.Sleds[I]; in controlPatching() local
[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);
64 const XRaySledEntry &Sled);
65 bool patchCustomEvent(bool Enable, uint32_t FuncId, const XRaySledEntry &Sled);
66 bool patchTypedEvent(bool Enable, uint32_t FuncId, const XRaySledEntry &Sled);
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-xray/
H A Dxray-extract.cpp62 for (const auto &Sled : Sleds) { in exportAsYAML() local
63 auto FuncId = Map.getFunctionId(Sled.Function); 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/include/llvm/CodeGen/
H A DAsmPrinter.h303 const MCSymbol *Sled; member
317 void recordSled(MCSymbol *Sled, const MachineInstr &MI, SledKind Kind,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp3490 for (const auto &Sled : Sleds) { in emitXRayTable() local
3494 MCBinaryExpr::createSub(MCSymbolRefExpr::create(Sled.Sled, Ctx), in emitXRayTable()
3505 Sled.emit(WordSizeBytes, OutStreamer.get()); in emitXRayTable()
3524 void AsmPrinter::recordSled(MCSymbol *Sled, const MachineInstr &MI, in recordSled() argument
3533 Sleds.emplace_back(XRayFunctionEntry{Sled, CurrentFnSym, Kind, in recordSled()