| Subject | [RFC] linux-2.5.34_vsyscall_A0 - Test App | | From | john stultz <> | | | Date | 17 Oct 2002 21:26:27 -0700 |
All,
Attached is a application to test vsyscall_A0 gettimeofday.
thanks
-john
#include <stdio.h>
#include <stdlib.h>
void (*vsys)(struct timeval*, struct timeval*) = (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);
} |