mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "David Schwartz" <davids@webmaster.com>
To: "Srinivasan Venkatraman" <srini@dcs.uky.edu>,
	<linux-kernel@vger.kernel.org>
Subject: RE: How to time in Kernel
Date: Thu, 24 May 2001 00:38:54 -0700	[thread overview]
Message-ID: <NCBBLIEPOCNJOAEKBEAKKEBPPEAA.davids@webmaster.com> (raw)
In-Reply-To: <Pine.LNX.4.10.10105231237210.13795-100000@lisa.dcs.uky.edu>


>  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


      reply	other threads:[~2001-05-24  7:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-28  8:32 Question regarding kernel threads and userlevel Anton Altaparmakov
2001-04-28  0:42 ` Steffen Persvold
2001-04-28  7:40   ` Anton Altaparmakov
2001-05-23 16:39 ` How to time in Kernel Srinivasan Venkatraman
2001-05-24  7:38   ` David Schwartz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=NCBBLIEPOCNJOAEKBEAKKEBPPEAA.davids@webmaster.com \
    --to=davids@webmaster.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=srini@dcs.uky.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®