Lines Matching refs:InstrMap
185 const XRaySledMap &InstrMap) XRAY_NEVER_INSTRUMENT { in findFunctionSleds() argument
190 for (std::size_t I = 0; I < InstrMap.Entries && CurFn <= FuncId; I++) { in findFunctionSleds()
191 const auto &Sled = InstrMap.Sleds[I]; in findFunctionSleds()
220 XRaySledMap InstrMap; in patchFunction() local
223 InstrMap = XRayInstrMap; in patchFunction()
227 if (InstrMap.Functions == 0) in patchFunction()
232 if (FuncId <= 0 || static_cast<size_t>(FuncId) > InstrMap.Functions) { in patchFunction()
239 if (InstrMap.SledsIndex) { in patchFunction()
240 SledRange = {InstrMap.SledsIndex[FuncId - 1].fromPCRelative(), in patchFunction()
241 InstrMap.SledsIndex[FuncId - 1].Size}; in patchFunction()
243 SledRange = findFunctionSleds(FuncId, InstrMap); in patchFunction()
282 XRaySledMap InstrMap; in controlPatching() local
285 InstrMap = XRayInstrMap; in controlPatching()
287 if (InstrMap.Entries == 0) in controlPatching()
301 auto *MinSled = &InstrMap.Sleds[0]; in controlPatching()
302 auto *MaxSled = &InstrMap.Sleds[InstrMap.Entries - 1]; in controlPatching()
303 for (std::size_t I = 0; I < InstrMap.Entries; I++) { in controlPatching()
304 const auto &Sled = InstrMap.Sleds[I]; in controlPatching()
330 for (std::size_t I = 0; I < InstrMap.Entries; ++I) { in controlPatching()
331 auto &Sled = InstrMap.Sleds[I]; in controlPatching()
349 XRaySledMap InstrMap; in mprotectAndPatchFunction() local
352 InstrMap = XRayInstrMap; in mprotectAndPatchFunction()
357 if (FuncId <= 0 || static_cast<size_t>(FuncId) > InstrMap.Functions) { in mprotectAndPatchFunction()
373 if (InstrMap.SledsIndex) { in mprotectAndPatchFunction()
374 SledRange = {InstrMap.SledsIndex[FuncId - 1].fromPCRelative(), in mprotectAndPatchFunction()
375 InstrMap.SledsIndex[FuncId - 1].Size}; in mprotectAndPatchFunction()
377 SledRange = findFunctionSleds(FuncId, InstrMap); in mprotectAndPatchFunction()
506 XRaySledMap InstrMap; in __xray_function_address() local
509 InstrMap = XRayInstrMap; in __xray_function_address()
512 if (FuncId <= 0 || static_cast<size_t>(FuncId) > InstrMap.Functions) in __xray_function_address()
515 InstrMap.SledsIndex ? InstrMap.SledsIndex[FuncId - 1].fromPCRelative() in __xray_function_address()
516 : findFunctionSleds(FuncId, InstrMap).Begin; in __xray_function_address()