This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: What do IFUNC resolvers need to be useful?
- From: jose dot marchesi at oracle dot com (Jose E. Marchesi)
- To: "Carlos O'Donell" <carlos at redhat dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 22 Mar 2016 08:13:04 -0700
- Subject: Re: What do IFUNC resolvers need to be useful?
- Authentication-results: sourceware.org; auth=none
- References: <56D9BAE0 dot 3000102 at redhat dot com> <20160304182334 dot GA16499 at aurel32 dot net>
> Should IFUNC resolver get passed in a pointer to the
> environment?
I think that it would be a great improvement.
One can imagine to use that on the libc for example to temporarily
disable the optimized functions. That can be useful for debugging,
but also in our testsuite to test the various versions of a
function.
+1
Sometimes old code breaks with new optimized routines, such as
multithread issues in routines using block-initialize instructions in
sparc. In these situations it would be very useful to disable certain
versions of the routines.
Also, it would allow users to easily benchmark the performance of the
routines applications/platforms and choose the best implementation for
them.