V2 [PATCH] Add a C wrapper for prctl [BZ #25896]
Adhemerval Zanella
adhemerval.zanella@linaro.org
Thu Apr 30 17:24:09 GMT 2020
On 30/04/2020 13:51, Florian Weimer wrote:
> * H. J. Lu via Libc-alpha:
>
>> On Thu, Apr 30, 2020 at 9:06 AM Adhemerval Zanella via Libc-alpha
>> <libc-alpha@sourceware.org> wrote:
>>>
>>>
>>>
>>> On 30/04/2020 10:03, H.J. Lu via Libc-alpha wrote:
>>>
>>>> Here is the updated patch. I added the assembly version for x86. Other
>>>> arches can do
>>>>
>>>> #include <sysdeps/unix/sysv/linux/x86/prctl.S>
>>>
>>> Do we really an assembly optimization for this? I hardly think this
>>> a hotstop symbol.
>>
>> I have no strong opinion on this.
>
> Me neither.
>
I would prefer to push for an assembly optimization for symbol that
performance is paramount and usually might appear as a hotspot.
My understanding is usually prctl is used scarcely and I think
it would be better to use the C generic.
More information about the Libc-alpha
mailing list