lkml.org 
[lkml]   [2002]   [Oct]   [18]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
Subject[RFC] linux-2.5.34_vsyscall_A0 - Test App
Fromjohn stultz <>
Date17 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);
}
\
 
 \ /
  Last update: 2005-03-22 12:30    [from the cache]
©2003-2008