From: "Russ Cox" <rsc@plan9.bell-labs.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] odd clock behaviour
Date: Thu, 13 Mar 2003 10:40:48 -0500 [thread overview]
Message-ID: <6de7d5cf62523657c831677f93c52ad1@plan9.bell-labs.com> (raw)
In-Reply-To: <536e347f7c2fe951277441d936cfa9bc@vitanuova.com>
It could still be funny power-saving clock changing.
The next time it happens try running this:
#define RDTSC BYTE $0x0F; BYTE $0x31
TEXT rdtsc(SB), $0 /* time stamp counter: cycles since power up */
MOVL .ret+0(FP), CX
RDTSC
MOVL AX, 0(CX)
MOVL DX, 4(CX)
RET
#include <u.h>
#include <libc.h>
extern uvlong rdtsc(void);
void
main(void)
{
print("%llud\n", rdtsc());
}
and see if the cycle counter is flying away.
next prev parent reply other threads:[~2003-03-13 15:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-13 14:25 rog
2003-03-13 14:30 ` Fco.J.Ballesteros
2003-03-13 15:40 ` Russ Cox [this message]
2003-03-13 16:22 ` Sam
2003-03-13 16:26 ` David Presotto
2003-03-13 17:06 ` Russ Cox
2003-03-13 17:50 ` Fco.J.Ballesteros
2003-03-13 18:39 ` Dan Cross
2003-03-13 18:40 ` Dan Cross
2003-03-13 14:43 rog
2003-03-13 18:06 rog
2003-03-13 18:43 David Presotto
2003-03-13 18:58 rog
2003-03-13 19:15 ` David Presotto
2003-03-13 19:25 ` Russ Cox
2003-03-20 18:07 rog
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=6de7d5cf62523657c831677f93c52ad1@plan9.bell-labs.com \
--to=rsc@plan9.bell-labs.com \
--cc=9fans@cse.psu.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;
as well as URLs for NNTP newsgroup(s).