glibc/malloc
Siddhesh Poyarekar 9dd409a5f4 Initialize tunable list with the GLIBC_TUNABLES environment variable
Read tunables values from the users using the GLIBC_TUNABLES
environment variable.  The value of this variable is a colon-separated
list of name=value pairs.  So a typical string would look like this:

GLIBC_TUNABLES=glibc.malloc.mmap_threshold=2048:glibc.malloc.trim_threshold=1024

	* config.make.in (have-loop-to-function): Define.
	* elf/Makefile (CFLAGS-dl-tunables.c): Add
	-fno-tree-loop-distribute-patterns.
	* elf/dl-tunables.c: Include libc-internals.h.
	(GLIBC_TUNABLES): New macro.
	(tunables_strdup): New function.
	(parse_tunables): New function.
	(min_strlen): New function.
	(__tunables_init): Use the new functions and macro.
	(disable_tunable): Disable tunable from GLIBC_TUNABLES.
	* malloc/tst-malloc-usable-tunables.c: New test case.
	* malloc/tst-malloc-usable-static-tunables.c: New test case.
	* malloc/Makefile (tests, tests-static): Add tests.
2016-12-31 23:49:24 +05:30
..
arena.c Add framework for tunables 2016-12-31 23:49:24 +05:30
Depend
hooks.c malloc: Use accessors for chunk metadata access 2016-10-28 16:45:45 +02:00
Makefile Initialize tunable list with the GLIBC_TUNABLES environment variable 2016-12-31 23:49:24 +05:30
malloc-hooks.h
malloc-internal.h
malloc.c malloc: Update comments about chunk layout 2016-10-28 22:36:58 +02:00
malloc.h malloc: Remove malloc_get_state, malloc_set_state [BZ #19473] 2016-10-26 13:28:28 +02:00
mallocbug.c
mcheck-init.c
mcheck.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
mcheck.h
memusage.c
memusage.sh
memusagestat.c
morecore.c
mtrace.c
mtrace.pl
obstack.c
obstack.h
scratch_buffer_grow_preserve.c
scratch_buffer_grow.c
scratch_buffer_set_array_size.c
set-freeres.c
thread-freeres.c
tst-calloc.c
tst-interpose-aux-nothread.c malloc: Simplify static malloc interposition [BZ #20432] 2016-08-26 23:20:41 +02:00
tst-interpose-aux-thread.c malloc: Simplify static malloc interposition [BZ #20432] 2016-08-26 23:20:41 +02:00
tst-interpose-aux.c malloc: Simplify static malloc interposition [BZ #20432] 2016-08-26 23:20:41 +02:00
tst-interpose-aux.h malloc: Simplify static malloc interposition [BZ #20432] 2016-08-26 23:20:41 +02:00
tst-interpose-nothread.c malloc: Simplify static malloc interposition [BZ #20432] 2016-08-26 23:20:41 +02:00
tst-interpose-skeleton.c malloc: Simplify static malloc interposition [BZ #20432] 2016-08-26 23:20:41 +02:00
tst-interpose-static-nothread.c malloc: Simplify static malloc interposition [BZ #20432] 2016-08-26 23:20:41 +02:00
tst-interpose-static-thread.c malloc: Simplify static malloc interposition [BZ #20432] 2016-08-26 23:20:41 +02:00
tst-interpose-thread.c malloc: Simplify static malloc interposition [BZ #20432] 2016-08-26 23:20:41 +02:00
tst-malloc-backtrace.c support: Introduce new subdirectory for test infrastructure 2016-12-09 08:18:27 +01:00
tst-malloc-fork-deadlock.c support: Introduce new subdirectory for test infrastructure 2016-12-09 08:18:27 +01:00
tst-malloc-thread-exit.c support: Introduce new subdirectory for test infrastructure 2016-12-09 08:18:27 +01:00
tst-malloc-thread-fail.c
tst-malloc-usable-static-tunables.c Initialize tunable list with the GLIBC_TUNABLES environment variable 2016-12-31 23:49:24 +05:30
tst-malloc-usable-static.c Add framework for tunables 2016-12-31 23:49:24 +05:30
tst-malloc-usable-tunables.c Initialize tunable list with the GLIBC_TUNABLES environment variable 2016-12-31 23:49:24 +05:30
tst-malloc-usable.c
tst-malloc.c
tst-mallocfork2.c
tst-mallocfork.c
tst-mallocstate.c malloc: Remove malloc_get_state, malloc_set_state [BZ #19473] 2016-10-26 13:28:28 +02:00
tst-mallopt.c
tst-mcheck.c
tst-memalign.c
tst-mtrace.c
tst-mtrace.sh
tst-obstack.c
tst-posix_memalign.c
tst-pvalloc.c
tst-realloc.c
tst-scratch_buffer.c
tst-trim1.c
tst-valloc.c
Versions