Hi guys,
I got a code snipplet from my friend on measuring cpu clock cycles, but
I have no idea what it actually does. I grep through the asm header
files and came up with different parameters, so I hope someone
knowledgeable on assembly can help explain to me what the asm code does.
The platform is i686.
unsigned long long in rdtsc(void)
{
unsigned long long int x;
__asm__ volatile (".byte 0x0f, 0x31" : "=A" (x));
return x;
}
Thanks in advance!
jon.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/