[lkml]   [2001]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRE: How to time in Kernel

> I am trying to time a portion of code inside the kernel. How do I do it?
> Can I use do_gettimeofday ? or do_getitimer ? Any leads will be
> appreciated.

If this is for personal debugging use only and you have a Pentium or better
x86 processor, I recommend reading the TSC directly. 'msr.h' (in the
asm-i386 include directory) include 'rdtsc' and friends.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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