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

> 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.

DS

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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