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 Revert __malloc_initialize_hook symbol poisoning 2016-06-20 11:11:29 +02:00
malloc-internal.h elf: dl-minimal malloc needs to respect fundamental alignment 2016-08-03 16:11:01 +02:00
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 Revert __malloc_initialize_hook symbol poisoning 2016-06-20 11:11:29 +02:00
mcheck.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
mcheck.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
memusage.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
memusage.sh Update copyright dates not handled by scripts/update-copyrights. 2016-01-04 16:26:30 +00:00
memusagestat.c Update copyright dates not handled by scripts/update-copyrights. 2016-01-04 16:26:30 +00:00
morecore.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
mtrace.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
mtrace.pl Update copyright dates not handled by scripts/update-copyrights. 2016-01-04 16:26:30 +00:00
obstack.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
obstack.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
scratch_buffer_grow_preserve.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
scratch_buffer_grow.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
scratch_buffer_set_array_size.c scratch_buffer_set_array_size: Include <limits.h> 2016-04-07 13:46:28 +02:00
set-freeres.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
thread-freeres.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-calloc.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
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 Bump up tst-malloc-thread-fail timeout from 20 to 30s 2016-07-05 17:05:28 -04:00
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 Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-malloc.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-mallocfork2.c test-skeleton.c: Add write_message function 2016-06-23 11:00:36 +02:00
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 Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-mcheck.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-memalign.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-mtrace.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-mtrace.sh Make shebang interpreter directives consistent 2016-01-07 04:03:21 -05:00
tst-obstack.c
tst-posix_memalign.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-pvalloc.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-realloc.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-scratch_buffer.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
tst-trim1.c
tst-valloc.c Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
Versions Add struct scratch_buffer and its internal helper functions 2015-04-07 11:03:43 +02:00