On Thu, Jul 11, 2019 at 7:32 PM Laurent Vivier <laur...@vivier.eu> wrote:
> > Notes: > v4: [lv] timeval64 and timespec64 are { long long , long } > > +STRUCT(timeval64, TYPE_LONGLONG, TYPE_LONG) > + > +STRUCT(timespec64, TYPE_LONGLONG, TYPE_LONG) > + This still doesn't look right, see my earlier comment about padding on big-endian architectures. Note that the in-kernel 'timespec64' is different from the uapi '__kernel_timespec' exported by the kernel. I also still think you may need to convert between SIOCGSTAMP_NEW and SIOCGSTAMP_OLD, e.g. when emulating a 32-bit riscv process (which only use SIOCGSTAMP_NEW) on a kernel that only understands SIOCGSTAMP_OLD. Arnd