Separate allocator wrapping logic from Bionic.
Checked dissembly to ensure LTO removes the call to wrap_*.
Bug: 160399441
Change-Id: I50a2d74d0a4e32e915230d6153af1708dae5367e
diff --git a/Android.bp b/Android.bp
index 18258df..eace06e 100644
--- a/Android.bp
+++ b/Android.bp
@@ -238,6 +238,7 @@
":perfetto_include_perfetto_ext_base_base",
":perfetto_src_base_base",
":perfetto_src_profiling_memory_malloc_hooks",
+ ":perfetto_src_profiling_memory_wrap_allocators",
],
shared_libs: [
"heapprofd_client_api",
@@ -6453,6 +6454,14 @@
],
}
+// GN: //src/profiling/memory:wrap_allocators
+filegroup {
+ name: "perfetto_src_profiling_memory_wrap_allocators",
+ srcs: [
+ "src/profiling/memory/wrap_allocators.cc",
+ ],
+}
+
// GN: //src/profiling/perf:common_types
filegroup {
name: "perfetto_src_profiling_perf_common_types",