This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCHv2 2/2] Initialize tunable list with the GLIBC_TUNABLES environment variable



On 01/16/2016 12:56 PM, Siddhesh Poyarekar wrote:
> 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:

Tested on ppc64le.

While this does work as expected with trivial inputs, it does
have some quirks:

I.e this will set the desired tunable:
GLIBC_TUNABLES="glibc.pthread.elision_enable=1"
GLIBC_TUNABLES="glibc.pthread.elision_enable=1:"
GLIBC_TUNABLES="foo=:glibc.pthread.elision_enable=1"

But the following does not:
GLIBC_TUNABLES=":glibc.pthread.elision_enable=1"
GLIBC_TUNABLES="foo:glibc.pthread.elision_enable=1"
GLIBC_TUNABLES="val=foo:bar:glibc.pthread.elision_enable=1"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]