[PATCH][aarch64] Fix hwcap argument passed to ifunc resolvers

Carlos O'Donell carlos@redhat.com
Fri Sep 1 18:55:00 GMT 2017


On 09/01/2017 12:22 PM, Steve Ellcey wrote:
> On Thu, 2017-08-31 at 18:59 -0500, Carlos O'Donell wrote:
> 
>> I'd just use the tunables.
> 
> OK, I think using tunables is reasonable.  I seem to be having some
> trouble with it though, maybe you can tell me if I am doing something
> wrong.
> 
> On a thunderx box I run a program that calls memcpy, which is an ifunc.
> It then calls __memcpy_thunderx the way I think it should.
> 
> Then, in the debugger, I run:
> 
> set environment GLIBC_TUNABLES=glibc.tune.cpu=generic
> 
> I rerun my test program and instead of calling __memcpy_generic (which
> it should) or __memcpy_thunderx (which it did before), it calls
> __memcpy_falkor, which is totally wrong.  Am I setting the variable
> incorrectly?  I don't see any problems with the IS_FALKOR macro so I
> think the problem may be in tunable_is_name unless I am just messing
> up how GLIBC_TUNABLES is supposed to be set.

That looks right, you'll have to debug this to see what's going on.

-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list