[RFC] linux-2.5.34_vsyscall_A0 - Test App

john stultz (johnstul@us.ibm.com)
17 Oct 2002 21:26:27 -0700


--=-TTzN78fr2Wu1BLKnV04W
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

All,
Attached is a application to test vsyscall_A0 gettimeofday.

thanks
-john

--=-TTzN78fr2Wu1BLKnV04W
Content-Disposition: attachment; filename=vsyscall-test.c
Content-Transfer-Encoding: quoted-printable
Content-Type: text/x-c; name=vsyscall-test.c; charset=ISO-8859-1

#include <stdio.h>
#include <stdlib.h>

void (*vsys)(struct timeval*, struct timeval*) =3D (void*)0xffffe000UL;
void main()
{
struct timeval tv;
gettimeofday(&tv,NULL);
printf("time: %lu %lu\n", tv.tv_sec,tv.tv_usec);
(*vsys)(&tv,NULL);
printf("vtime: %lu %lu\n", tv.tv_sec,tv.tv_usec);
=09
}

--=-TTzN78fr2Wu1BLKnV04W--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/