Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!rice!sun-spots-request From: larch!anh@relay.eu.net (Andrew Harker) Newsgroups: comp.sys.sun Subject: Reading Sun 3 timer register within Kernel device driver Keywords: Miscellaneous Message-ID: <3295@brazos.Rice.edu> Date: 17 Nov 89 14:36:09 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 8 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 8, Issue 207, message 12 of 16 I have a problem relating to SUN OS3.5 kernel device drivers. I want to measure the performance of the driver by calling a routine at certain points in the driver which records a timer value in a buffer somewhere. Outside the kernel, the obvious answer is to use gettimeofday(), but this is no good inside the device driver. Is there a way of accessing the SUN's timer register from within the kernel? Is there an easier way?