Lines Matching refs:FuncId

152                int32_t FuncId) XRAY_NEVER_INSTRUMENT {  in patchSled()  argument
156 Success = patchFunctionEntry(Enable, FuncId, Sled, __xray_FunctionEntry); in patchSled()
159 Success = patchFunctionExit(Enable, FuncId, Sled); in patchSled()
162 Success = patchFunctionTailExit(Enable, FuncId, Sled); in patchSled()
165 Success = patchFunctionEntry(Enable, FuncId, Sled, __xray_ArgLoggerEntry); in patchSled()
168 Success = patchCustomEvent(Enable, FuncId, Sled); in patchSled()
171 Success = patchTypedEvent(Enable, FuncId, Sled); in patchSled()
182 findFunctionSleds(int32_t FuncId, in findFunctionSleds() argument
188 for (std::size_t I = 0; I < InstrMap.Entries && CurFn <= FuncId; I++) { in findFunctionSleds()
196 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()
238 auto SledRange = InstrMap.SledsIndex ? InstrMap.SledsIndex[FuncId - 1] in patchFunction()
239 : findFunctionSleds(FuncId, InstrMap); in patchFunction()
244 SucceedOnce |= patchSled(*f++, Enable, FuncId); in patchFunction()
250 Report("Failed patching any sled for function '%d'.", FuncId); in patchFunction()
286 uint32_t FuncId = 1; in controlPatching() local
332 ++FuncId; in controlPatching()
335 patchSled(Sled, Enable, FuncId); in controlPatching()
343 XRayPatchingStatus mprotectAndPatchFunction(int32_t FuncId, in mprotectAndPatchFunction() argument
353 if (FuncId <= 0 || static_cast<size_t>(FuncId) > InstrMap.Functions) { in mprotectAndPatchFunction()
354 Report("Invalid function id provided: %d\n", FuncId); in mprotectAndPatchFunction()
368 auto SledRange = InstrMap.SledsIndex ? InstrMap.SledsIndex[FuncId - 1] in mprotectAndPatchFunction()
369 : findFunctionSleds(FuncId, InstrMap); in mprotectAndPatchFunction()
392 return patchFunction(FuncId, Enable); in mprotectAndPatchFunction()
472 XRayPatchingStatus __xray_patch_function(int32_t FuncId) XRAY_NEVER_INSTRUMENT { in __xray_patch_function() argument
473 return mprotectAndPatchFunction(FuncId, true); in __xray_patch_function()
477 __xray_unpatch_function(int32_t FuncId) XRAY_NEVER_INSTRUMENT { in __xray_unpatch_function() argument
478 return mprotectAndPatchFunction(FuncId, false); in __xray_unpatch_function()
496 uintptr_t __xray_function_address(int32_t FuncId) XRAY_NEVER_INSTRUMENT { in __xray_function_address() argument
503 if (FuncId <= 0 || static_cast<size_t>(FuncId) > InstrMap.Functions) in __xray_function_address()
506 ? InstrMap.SledsIndex[FuncId - 1].Begin in __xray_function_address()
507 : findFunctionSleds(FuncId, InstrMap).Begin; in __xray_function_address()