This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: RFC: Automatically test IFUNC implementations
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jeff Law <law at redhat dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Mon, 24 Sep 2012 06:30:20 -0700
- Subject: Re: RFC: Automatically test IFUNC implementations
- References: <20120923220531.GA9021@gmail.com><50605AA2.1040509@redhat.com>
On Mon, Sep 24, 2012 at 6:05 AM, Jeff Law <law@redhat.com> wrote:
> On 09/23/2012 04:05 PM, H.J. Lu wrote:
>>
>> Hi,
>>
>> http://sourceware.org/bugzilla/show_bug.cgi?id=14602
>>
>> shows that we need to test all IFUNC implementations as much as we can.
>> I created hjl/ifunc/test branch to automatically test IFUNC
>> implementations. Its goals are
>>
>> 1. Provide an infrastructure to tests all implementations supported
>> on build machine automatically.
>> 2. No changes to IFUNC selectors.
>> 3. Test the new IFUNC implementation by adding it to the list of
>> IFUNC functions.
>>
>> Change IFUNC selector is not the goal of this branch. Any comments?
>
> This is something I had discussed with our internal QE team a while back and
> it would be a big step forward.
>
My branch builds another libc.so. The difference is
[hjl@gnu-tools-1 build-x86_64-linux]$ diff -up libc.map libc_ifunc.map
--- libc.map 2012-09-23 15:23:44.196066030 -0700
+++ libc_ifunc.map 2012-09-23 15:23:44.267066799 -0700
@@ -903,4 +903,5 @@ GLIBC_PRIVATE {
_nss_files_parse_grent; _nss_files_parse_pwent; _nss_files_parse_spent;
errno;
h_errno; __resp;
+ __libc_func;
} GLIBC_2.17;
[hjl@gnu-tools-1 build-x86_64-linux]$
The ifunc tests are linked against this libc.so, using __libc_func, which takes
the name of function to be tested and returns a list of available IFUNC
implementations on build machine. It builds the special libc.so and runs ifunc
tests only if mulit-arch is enabled.
--
H.J.