Home
last modified time | relevance | path

Searched refs:OverrideFunction (Results 1 – 7 of 7) sorted by relevance

/openbsd-src/gnu/llvm/compiler-rt/lib/interception/
H A Dinterception_win.h28 bool OverrideFunction(uptr old_func, uptr new_func, uptr *orig_old_func = 0);
31 bool OverrideFunction(const char *name, uptr new_func, uptr *orig_old_func = 0);
65 ::__interception::OverrideFunction(#func, \
70 ::__interception::OverrideFunction((::__interception::uptr)func, \
H A Dinterception_win.cpp875 bool OverrideFunction( in OverrideFunction() function
990 bool OverrideFunction( in OverrideFunction() function
997 OverrideFunction(func_addr, new_func, orig_old_func)) { in OverrideFunction()
/openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_win_dll_thunk.cpp35 if (!__interception::OverrideFunction(dll_function, wrapper, 0)) in dllThunkIntercept()
46 if (!__interception::OverrideFunction(dll_function, wrapper, 0)) in dllThunkInterceptWhenPossible()
H A Dsanitizer_win_weak_interception.cpp33 if (real && !__interception::OverrideFunction((uptr)dll_function, real, 0)) in interceptWhenPossible()
/openbsd-src/gnu/llvm/compiler-rt/lib/interception/tests/
H A Dinterception_win_test.cpp468 TEST(Interception, OverrideFunction) { in TEST() argument
469 TestOverrideFunction override = OverrideFunction; in TEST()
544 EXPECT_TRUE(OverrideFunction(identity_address1, in TEST()
547 EXPECT_TRUE(OverrideFunction(identity_address2, in TEST()
578 TestOverrideFunction override = OverrideFunction; in TEST()
694 TestOverrideFunction override = OverrideFunction; in TEST()
/openbsd-src/gnu/llvm/compiler-rt/lib/asan/
H A Dasan_malloc_win.cpp485 if (!__interception::OverrideFunction(fname, new_func)) in TryToOverrideFunction()
517 __interception::OverrideFunction("RtlSizeHeap", (uptr)WRAP(RtlSizeHeap), in ReplaceSystemMalloc()
519 __interception::OverrideFunction("RtlFreeHeap", (uptr)WRAP(RtlFreeHeap), in ReplaceSystemMalloc()
521 __interception::OverrideFunction("RtlReAllocateHeap", in ReplaceSystemMalloc()
524 __interception::OverrideFunction("RtlAllocateHeap", in ReplaceSystemMalloc()
H A Dasan_win.cpp181 if (!::__interception::OverrideFunction("RaiseException", in InitializePlatformInterceptors()
184 CHECK(::__interception::OverrideFunction("RtlRaiseException", in InitializePlatformInterceptors()