Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 1997 23:42:43 -0700 (MST)
From:      Charles Mott <cmott@srv.net>
To:        Alex <garbanzo@hooked.net>
Cc:        Mike Smith <mike@smith.net.au>, hackers@hub.freebsd.org
Subject:   Re: gettimeofday() overhead 
Message-ID:  <Pine.BSF.3.96.971104233602.942A-100000@darkstar.home>
In-Reply-To: <Pine.BSF.3.96.971104174022.3158D-100000@zippy.dyn.ml.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 4 Nov 1997, Alex wrote:
> On Tue, 4 Nov 1997, Mike Smith wrote:
> 
> > Unfortunately, this requires access to /dev/kmem, and thus your process 
> > must be running as root.  IMHO this isn't really an acceptable tradeoff 
> > unless the application already requires it.
> 
> Naw, just setgid kmem.
>  
> > OTOH, if +/- 1 second is good enough, a once-a-second timer and a local 
> > call to gettimeofday() would be a simple and straightforward technique, 
> > as was also suggested.
> 
> Probably right, but more accuracy within reason can't hurt.
> 

At this point, accessing the kernel time variable from user space is
mainly a point of interest (this is the hackers group, right?).  I can
read up on how to access /dev/kmem, but how is the kernel symbol table
accessed?

  -- Charles Mott





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971104233602.942A-100000>