Allow to set scudo allocation buffer size
This is used for fullmte builds, which are optimized for bug detection. Bug: 309446692 Change-Id: I004635ebb7e1161e63012935271851c806cb8574
This commit is contained in:
parent
c7c6605c35
commit
0f64c8e23e
2 changed files with 7 additions and 0 deletions
|
@ -72,6 +72,11 @@ ifneq ($(filter hwaddress,$(SANITIZE_TARGET)),)
|
|||
endif
|
||||
endif
|
||||
|
||||
EXPORT_GLOBAL_SCUDO_ALLOCATION_RING_BUFFER_SIZE :=
|
||||
ifneq ($(PRODUCT_SCUDO_ALLOCATION_RING_BUFFER_SIZE),)
|
||||
EXPORT_GLOBAL_SCUDO_ALLOCATION_RING_BUFFER_SIZE := export SCUDO_ALLOCATION_RING_BUFFER_SIZE $(PRODUCT_SCUDO_ALLOCATION_RING_BUFFER_SIZE)
|
||||
endif
|
||||
|
||||
EXPORT_GLOBAL_GCOV_OPTIONS :=
|
||||
ifeq ($(NATIVE_COVERAGE),true)
|
||||
EXPORT_GLOBAL_GCOV_OPTIONS := export GCOV_PREFIX /data/misc/trace
|
||||
|
@ -216,6 +221,7 @@ $(LOCAL_BUILT_MODULE): $(LOCAL_PATH)/init.environ.rc.in
|
|||
$(hide) sed -i -e 's?%EXPORT_GLOBAL_GCOV_OPTIONS%?$(EXPORT_GLOBAL_GCOV_OPTIONS)?g' $@
|
||||
$(hide) sed -i -e 's?%EXPORT_GLOBAL_CLANG_COVERAGE_OPTIONS%?$(EXPORT_GLOBAL_CLANG_COVERAGE_OPTIONS)?g' $@
|
||||
$(hide) sed -i -e 's?%EXPORT_GLOBAL_HWASAN_OPTIONS%?$(EXPORT_GLOBAL_HWASAN_OPTIONS)?g' $@
|
||||
$(hide) sed -i -e 's?%EXPORT_GLOBAL_SCUDO_ALLOCATION_RING_BUFFER_SIZE%?$(EXPORT_GLOBAL_SCUDO_ALLOCATION_RING_BUFFER_SIZE)?g' $@
|
||||
|
||||
# Append PLATFORM_VNDK_VERSION to base name.
|
||||
define append_vndk_version
|
||||
|
|
|
@ -14,3 +14,4 @@ on early-init
|
|||
%EXPORT_GLOBAL_GCOV_OPTIONS%
|
||||
%EXPORT_GLOBAL_CLANG_COVERAGE_OPTIONS%
|
||||
%EXPORT_GLOBAL_HWASAN_OPTIONS%
|
||||
%EXPORT_GLOBAL_SCUDO_ALLOCATION_RING_BUFFER_SIZE%
|
||||
|
|
Loading…
Reference in a new issue