🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #23441

Re: Win95 performance counter interface?

#23441
From: Jerry Coffin
Date: Mon, 30 Nov 1998 00:00
35 lines
2654 bytes
In article <73ro0u$j8t$1@winter.news.rcn.net>, 
SpamYourselFtwest@agora.rdrop.kom says...

[ ... ] 

> That's funny; rdtsc is not in any instruction set listing for the K5,
> K6, MediaGX, MII, or WinChip I've ever seen, including ones from AMD,
> Cyrix, and IDT.  If they're too lazy to complete their manuals within a
> year of shipping a part, that's not my fault.  Even close-mouthed Intel
> manages that.  ;-)

You're mistaking lack of proof of existence for proof of lack of 
existence -- your statement was NOT that you didn't know whether it 
existed, but that it did NOT exist.

Testing on actual chips proves that your statement was false.
 
> I would also argue that ring 0 read model specific register and read
> performance counter instructions are not compatible, as rdtsc is a ring
> 3 instruction.  

If that were the case, you'd be correct.  However, RDTSC (using 
exactly the same binary as on an Intel chip) works perfectly well in 
ring 3 on an AMD chip, for one that I've tested with.

> Likewise, I don't think the "undocumented" ways of
> sneaking into the performance registers really count either---it's not
> like you can bit test and know they'll work, as you can with rdtsc (at
> least on an Intel part).  I, for one, have better things to do with my
> time than guessing what instructions an x86 processor supports.

Read my lips if necessary: NO undocumented instructions.  Binaries 
written for an Intel chip using RDTSC work perfectly well on other 
chips as well.  I have personally verified that it works on AMD K6 and 
K6-2 chips. (among several others...)
Technical Details
Message-ID: <73ubtk$6tf$1@winter.news.rcn.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <72kj98$lpj$1@autumn.news.rcn.net> <73p61n$3tr$1@winter.news.rcn.net> <73pf0i$op$1@winter.news.rcn.net> <73q7r3$c63$4@winter.news.rcn.net> <73ro0u$j8t$1@winter.news.rcn.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102b75,80c509bc716c6415
X-Google-Attributes: gid102b75,public
X-Google-Thread: f9d87,80c509bc716c6415
X-Google-Attributes: gidf9d87,public
X-Google-Thread: 114917,80c509bc716c6415
X-Google-Attributes: gid114917,public
X-Google-Thread: 110292,80c509bc716c6415
X-Google-Attributes: gid110292,public
From: jcoffin@taeus.com (Jerry Coffin)
Subject: Re: Win95 performance counter interface?
Date: 1998/11/30
Message-ID: <73ubtk$6tf$1@winter.news.rcn.net>
X-Deja-AN: 417106319
Approved: <johnfine@erols.com>
References: <72kj98$lpj$1@autumn.news.rcn.net> <73p61n$3tr$1@winter.news.rcn.net> <73pf0i$op$1@winter.news.rcn.net> <73q7r3$c63$4@winter.news.rcn.net> <73ro0u$j8t$1@winter.news.rcn.net>
X-Mozilla-Status: 0801
X-Complaints-To: abuse@rcn.com
X-Trace: eGAGSirB2YvvBXEdajgmE5gTwIv1ZaKYR31eqsQGxts=
Organization: TAEUS
NNTP-Posting-Date: 30 Nov 1998 15:00:04 GMT
Newsgroups: comp.arch,comp.lang.asm.x86,comp.sys.intel,intel.microprocessors.pentium_ii