[PATCH v3 2/2] perf bench: Add support for 32-bit systems with 64-bit time_t

Arnd Bergmann arnd at arndb.de
Wed Sep 22 04:26:16 PDT 2021


On Wed, Sep 22, 2021 at 1:06 AM André Almeida <andrealmeid at collabora.com> wrote:
> Às 05:08 de 21/09/21, Arnd Bergmann escreveu:
> > I would love to see the wrapper that Alistair wrote as part of some kernel
> > uapi header provided to user space. futex is used by tons of applications,
> > and we never had a library abstraction for it, so everyone has to do these
> > by hand, and they all get them slightly wrong in different ways.
>
> Why we don't have a futex() wrapper at glibc as we do have for others
> syscalls?

I think mainly because there was no agreement on what the calling
conventions should be:

The raw syscall is awkward because of the argument overloading that cannot
easily be expressed in standard C in a typesafe way. Having a per-operation
interface would avoid that problem but requires specifying what that
particular interface has to be, and there is no standard to fall back on for
this syscall.

       Arnd



More information about the linux-riscv mailing list