lkml.org 
[lkml]   [1998]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: /dev/tsc and timekeeping
On Sun, 14 Jun 1998, Colin Plumb wrote:

#Included here is a small patch to add an interesting interrupt-latency
#measuring hack to the kernel. It's not ready for prime time, but might
#be fun to play with.

Here? *looks around* I don't see a patch. ;P

#It's for x86 processors with a timestamp counter, and simply captures
#the the TSC on every clock interrupt and puts it in a circular buffer.
#Readers can read arbitrary amounts from it. Hopefully I implemented
#poll() correctly. The data you read starts from the moment you open()
#the device.

Thank you THANK YOU *THANK YOU!* I was actually intending to do something
similar when I had the time. /proc/tsc, which is nothing more than a
timestamp counter. cat /proc/tsc produces the plaintext timestamp. This is
an excellent debugging tool for processors that exhibit strange TSC
behaviour, and will probably help a lot when I get around to fixing stuff
again.

-Phil R. Jaenke (kernel@nls.net / prj@nls.net)
TheGuyInCharge(tm), Ketyra Designs - We get paid to break stuff :)
Linux pkrea.ketyra.INT 2.0.33 #15 Sat Apr 18 00:40:21 EDT 1998 i586
Linux eiterra.nls.net 2.1.98 #15 Fri May 1 18:21:00 EDT 1998 i586
- Linus says for 'brave people only.' I say 'keep a backup.' - :)
! I reserve the right to bill spammers for my time and disk space !


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.027 / U:0.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site