Lines Matching refs:FuncId
154 int32_t FuncId) XRAY_NEVER_INSTRUMENT { in patchSled() argument
158 Success = patchFunctionEntry(Enable, FuncId, Sled, __xray_FunctionEntry); in patchSled()
161 Success = patchFunctionExit(Enable, FuncId, Sled); in patchSled()
164 Success = patchFunctionTailExit(Enable, FuncId, Sled); in patchSled()
167 Success = patchFunctionEntry(Enable, FuncId, Sled, __xray_ArgLoggerEntry); in patchSled()
170 Success = patchCustomEvent(Enable, FuncId, Sled); in patchSled()
173 Success = patchTypedEvent(Enable, FuncId, Sled); in patchSled()
184 findFunctionSleds(int32_t FuncId, in findFunctionSleds() argument
190 for (std::size_t I = 0; I < InstrMap.Entries && CurFn <= FuncId; I++) { in findFunctionSleds()
198 if (CurFn == FuncId) { in findFunctionSleds()
208 XRayPatchingStatus patchFunction(int32_t FuncId, in patchFunction() argument
232 if (FuncId <= 0 || static_cast<size_t>(FuncId) > InstrMap.Functions) { in patchFunction()
233 Report("Invalid function id provided: %d\n", FuncId); 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()
248 SucceedOnce |= patchSled(f[i], Enable, FuncId); in patchFunction()
254 Report("Failed patching any sled for function '%d'.", FuncId); in patchFunction()
290 uint32_t FuncId = 1; in controlPatching() local
336 ++FuncId; in controlPatching()
339 patchSled(Sled, Enable, FuncId); in controlPatching()
347 XRayPatchingStatus mprotectAndPatchFunction(int32_t FuncId, in mprotectAndPatchFunction() argument
357 if (FuncId <= 0 || static_cast<size_t>(FuncId) > InstrMap.Functions) { in mprotectAndPatchFunction()
358 Report("Invalid function id provided: %d\n", FuncId); 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()
401 return patchFunction(FuncId, Enable); in mprotectAndPatchFunction()
481 XRayPatchingStatus __xray_patch_function(int32_t FuncId) XRAY_NEVER_INSTRUMENT { in __xray_patch_function() argument
482 return mprotectAndPatchFunction(FuncId, true); in __xray_patch_function()
486 __xray_unpatch_function(int32_t FuncId) XRAY_NEVER_INSTRUMENT { in __xray_unpatch_function() argument
487 return mprotectAndPatchFunction(FuncId, false); in __xray_unpatch_function()
505 uintptr_t __xray_function_address(int32_t FuncId) XRAY_NEVER_INSTRUMENT { in __xray_function_address() argument
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()