• Home
  • Raw
  • Download

Lines Matching refs:InstrMap

180                   const XRaySledMap &InstrMap) XRAY_NEVER_INSTRUMENT {  in findFunctionSleds()  argument
185 for (std::size_t I = 0; I < InstrMap.Entries && CurFn <= FuncId; I++) { in findFunctionSleds()
186 const auto &Sled = InstrMap.Sleds[I]; in findFunctionSleds()
217 XRaySledMap InstrMap; in patchFunction() local
220 InstrMap = XRayInstrMap; in patchFunction()
224 if (InstrMap.Functions == 0) in patchFunction()
229 if (FuncId <= 0 || static_cast<size_t>(FuncId) > InstrMap.Functions) { in patchFunction()
235 auto SledRange = InstrMap.SledsIndex ? InstrMap.SledsIndex[FuncId - 1] in patchFunction()
236 : findFunctionSleds(FuncId, InstrMap); in patchFunction()
275 XRaySledMap InstrMap; in controlPatching() local
278 InstrMap = XRayInstrMap; in controlPatching()
280 if (InstrMap.Entries == 0) in controlPatching()
294 auto *MinSled = &InstrMap.Sleds[0]; in controlPatching()
295 auto *MaxSled = &InstrMap.Sleds[InstrMap.Entries - 1]; in controlPatching()
296 for (std::size_t I = 0; I < InstrMap.Entries; I++) { in controlPatching()
297 const auto &Sled = InstrMap.Sleds[I]; in controlPatching()
323 for (std::size_t I = 0; I < InstrMap.Entries; ++I) { in controlPatching()
324 auto &Sled = InstrMap.Sleds[I]; in controlPatching()
342 XRaySledMap InstrMap; in mprotectAndPatchFunction() local
345 InstrMap = XRayInstrMap; in mprotectAndPatchFunction()
350 if (FuncId <= 0 || static_cast<size_t>(FuncId) > InstrMap.Functions) { in mprotectAndPatchFunction()
365 auto SledRange = InstrMap.SledsIndex ? InstrMap.SledsIndex[FuncId - 1] in mprotectAndPatchFunction()
366 : findFunctionSleds(FuncId, InstrMap); in mprotectAndPatchFunction()
494 XRaySledMap InstrMap; in __xray_function_address() local
497 InstrMap = XRayInstrMap; in __xray_function_address()
500 if (FuncId <= 0 || static_cast<size_t>(FuncId) > InstrMap.Functions) in __xray_function_address()
502 const XRaySledEntry *Sled = InstrMap.SledsIndex in __xray_function_address()
503 ? InstrMap.SledsIndex[FuncId - 1].Begin in __xray_function_address()
504 : findFunctionSleds(FuncId, InstrMap).Begin; in __xray_function_address()