Messages in this thread | | | Date | Mon, 15 Jun 1998 01:06:20 -0400 (EDT) | From | "Phil's Kernel Account" <> | Subject | Re: /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
| |