[llvm-branch-commits] [compiler-rt] 98f4702 - Print allocations
Vitaly Buka via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Sep 12 10:47:52 PDT 2024
Author: Vitaly Buka
Date: 2024-09-12T10:46:37-07:00
New Revision: 98f470287a4671173197fd1cd3c8141d2282144a
URL: https://github.com/llvm/llvm-project/commit/98f470287a4671173197fd1cd3c8141d2282144a
DIFF: https://github.com/llvm/llvm-project/commit/98f470287a4671173197fd1cd3c8141d2282144a.diff
LOG: Print allocations
Added:
Modified:
compiler-rt/lib/msan/msan_allocator.cpp
compiler-rt/test/sanitizer_common/TestCases/Linux/getgrouplist.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/msan/msan_allocator.cpp b/compiler-rt/lib/msan/msan_allocator.cpp
index d7d4967c949859..946fa25b2abd7a 100644
--- a/compiler-rt/lib/msan/msan_allocator.cpp
+++ b/compiler-rt/lib/msan/msan_allocator.cpp
@@ -232,6 +232,7 @@ static void *MsanAllocate(BufferedStackTrace *stack, uptr size, uptr alignment,
}
UnpoisonParam(2);
RunMallocHooks(allocated, size);
+ Printf("%p %zu\n", allocated, size);
return allocated;
}
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/getgrouplist.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/getgrouplist.cpp
index dfe5fd05fa6627..884d0f2a5e1e10 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/getgrouplist.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/getgrouplist.cpp
@@ -1,6 +1,7 @@
// RUN: %clangxx -O0 -g %s -o %t && %run %env_tool_opts=verbosity=2 %t
#include <stdlib.h>
+#include <stdio.h>
#include <unistd.h>
#include <grp.h>
More information about the llvm-branch-commits
mailing list