Lines Matching full:funcid
150 int32_t FuncId) XRAY_NEVER_INSTRUMENT { in patchSled() argument
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()
179 findFunctionSleds(int32_t FuncId, in findFunctionSleds() argument
185 for (std::size_t I = 0; I < InstrMap.Entries && CurFn <= FuncId; I++) { in findFunctionSleds()
193 if (CurFn == FuncId) { in findFunctionSleds()
205 XRayPatchingStatus patchFunction(int32_t FuncId, in patchFunction() argument
227 // FuncId must be a positive number, less than the number of functions in patchFunction()
229 if (FuncId <= 0 || static_cast<size_t>(FuncId) > InstrMap.Functions) { in patchFunction()
230 Report("Invalid function id provided: %d\n", FuncId); in patchFunction()
235 auto SledRange = InstrMap.SledsIndex ? InstrMap.SledsIndex[FuncId - 1] in patchFunction()
236 : findFunctionSleds(FuncId, InstrMap); in patchFunction()
241 SucceedOnce |= patchSled(*f++, Enable, FuncId); in patchFunction()
247 Report("Failed patching any sled for function '%d'.", FuncId); in patchFunction()
283 uint32_t FuncId = 1; in controlPatching() local
329 ++FuncId; in controlPatching()
332 patchSled(Sled, Enable, FuncId); in controlPatching()
340 XRayPatchingStatus mprotectAndPatchFunction(int32_t FuncId, in mprotectAndPatchFunction() argument
348 // FuncId must be a positive number, less than the number of functions in mprotectAndPatchFunction()
350 if (FuncId <= 0 || static_cast<size_t>(FuncId) > InstrMap.Functions) { in mprotectAndPatchFunction()
351 Report("Invalid function id provided: %d\n", FuncId); in mprotectAndPatchFunction()
365 auto SledRange = InstrMap.SledsIndex ? InstrMap.SledsIndex[FuncId - 1] in mprotectAndPatchFunction()
366 : findFunctionSleds(FuncId, InstrMap); in mprotectAndPatchFunction()
389 return patchFunction(FuncId, Enable); in mprotectAndPatchFunction()
469 XRayPatchingStatus __xray_patch_function(int32_t FuncId) XRAY_NEVER_INSTRUMENT { in __xray_patch_function() argument
470 return mprotectAndPatchFunction(FuncId, true); in __xray_patch_function()
474 __xray_unpatch_function(int32_t FuncId) XRAY_NEVER_INSTRUMENT { in __xray_unpatch_function() argument
475 return mprotectAndPatchFunction(FuncId, false); in __xray_unpatch_function()
493 uintptr_t __xray_function_address(int32_t FuncId) XRAY_NEVER_INSTRUMENT { in __xray_function_address() argument
500 if (FuncId <= 0 || static_cast<size_t>(FuncId) > InstrMap.Functions) in __xray_function_address()
503 ? InstrMap.SledsIndex[FuncId - 1].Begin in __xray_function_address()
504 : findFunctionSleds(FuncId, InstrMap).Begin; in __xray_function_address()