[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
get kernel time && data type
I need to keep track of the time when a page is
swapped in (out), with a presicion of about
milliseconds or microseconds. I would like to know a
way to get the time when that happens and what data
type would be good for this and be reasonable easy to
do some arithmetic operations with it.
I've been using so far jiffies (unsigned long) but
it seems the time presicion is not very good because i
always get the same time. I also tried to read the
time stamp counter (to an unsigned long long )with the
line
__asm__ volatile(".byte 0x0f,0x31" : "=A" (x));
but have been having trouble with the compilation.
What other options do I have or am I on the right
track?
alejandro
_________________________________________________________
Do You Yahoo!?
Obtenga su dirección de correo-e gratis @yahoo.com
en http://correo.espanol.yahoo.com
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.surriel.com/kernelnewbies.shtml