Lines Matching refs:Sled
149 bool patchSled(const XRaySledEntry &Sled, bool Enable, in patchSled() argument
152 switch (Sled.Kind) { in patchSled()
154 Success = patchFunctionEntry(Enable, FuncId, Sled, __xray_FunctionEntry); in patchSled()
157 Success = patchFunctionExit(Enable, FuncId, Sled); in patchSled()
160 Success = patchFunctionTailExit(Enable, FuncId, Sled); in patchSled()
163 Success = patchFunctionEntry(Enable, FuncId, Sled, __xray_ArgLoggerEntry); in patchSled()
166 Success = patchCustomEvent(Enable, FuncId, Sled); in patchSled()
169 Success = patchTypedEvent(Enable, FuncId, Sled); in patchSled()
172 Report("Unsupported sled kind '%d' @%04x\n", Sled.Address, int(Sled.Kind)); in patchSled()
186 const auto &Sled = InstrMap.Sleds[I]; in findFunctionSleds() local
187 const auto Function = Sled.function(); in findFunctionSleds()
195 Index.Begin = &Sled; in findFunctionSleds()
196 Index.End = &Sled; in findFunctionSleds()
297 const auto &Sled = InstrMap.Sleds[I]; in controlPatching() local
298 if (Sled.address() < MinSled->address()) in controlPatching()
299 MinSled = &Sled; in controlPatching()
300 if (Sled.address() > MaxSled->address()) in controlPatching()
301 MaxSled = &Sled; in controlPatching()
324 auto &Sled = InstrMap.Sleds[I]; in controlPatching() local
325 auto F = Sled.function(); in controlPatching()
332 patchSled(Sled, Enable, FuncId); in controlPatching()
502 const XRaySledEntry *Sled = InstrMap.SledsIndex in __xray_function_address() local
505 return Sled->function() in __xray_function_address()