[PATCH v4 2/8] printrusage: Correctly use the long types from the rusage struct

Alistair Francis alistair23 at gmail.com
Tue Mar 10 18:00:51 UTC 2020


On Mon, Mar 9, 2020 at 6:38 PM Dmitry V. Levin <ldv at altlinux.org> wrote:
>
> On Mon, Mar 09, 2020 at 05:42:58PM -0700, Alistair Francis wrote:
> > The kernel's rusage struct uses the kernel's __kernel_old_timeval which
> > means that even for 32-bit archs with 64-bit time_t (like RV32) the time
> > values are 32-bit.
> >
> > We can fix this by making sure we don't use libc's rusage struct and
> > instead use our own with the kernel's old timeval.
> >
> > Signed-off-by: Alistair Francis <alistair.francis at wdc.com>
> > ---
> >  tests/getrusage.c | 5 +++--
> >  1 file changed, 3 insertions(+), 2 deletions(-)
>
> Could you change the prefix in the first line of this commit message
> to "tests:", please, to avoid confusion with printrusage.c?

Fixed.

Alistair

>
>
> --
> ldv


More information about the Strace-devel mailing list