[compiler-rt] [compiler-rt] madvise interception (PR #76562)

David CARLIER via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 2 13:33:34 PST 2024


================
@@ -7498,10 +7498,19 @@ INTERCEPTOR(int, mprotect, void *addr, SIZE_T sz, int prot) {
   MprotectMallocZones(addr, prot);
   return REAL(mprotect)(addr, sz, prot);
 }
-#define INIT_MMAP                                                              \
-  COMMON_INTERCEPT_FUNCTION(mmap);                                             \
-  COMMON_INTERCEPT_FUNCTION(munmap);                                           \
-  COMMON_INTERCEPT_FUNCTION(mprotect);
+
+INTERCEPTOR(int, madvise, uptr addr, SIZE_T sz, int advice) {
----------------
devnexen wrote:

true..

https://github.com/llvm/llvm-project/pull/76562


More information about the llvm-commits mailing list