Article View: comp.arch
Article #23443Re: Win95 performance counter interface?
From: Todd West
Date: Sun, 29 Nov 1998 00:00
Date: Sun, 29 Nov 1998 00:00
27 lines
2331 bytes
2331 bytes
Paul Hsieh <qed@pobox.com> wrote: >That's not correct. All modern x86 CPUs have a functioning/compatible >RDTSC instruction. 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. ;-) 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. 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. FWIW, I've also had invalid opcode faults on rdtsc on an early K6, though I suppose it could have been yet another bad AMD part, like the non-overclocked 486 I had which fried itself after a piddly 18 months of uptime. Todd -- Anti-spam boggling in effect. Edit reply-to address before sending mail.
Technical Details
Message-ID:
<73ro0u$j8t$1@winter.news.rcn.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9d87,80c509bc716c6415 X-Google-Attributes: gidf9d87,public X-Google-Thread: 110292,80c509bc716c6415 X-Google-Attributes: gid110292,public X-Google-Thread: 102b75,80c509bc716c6415 X-Google-Attributes: gid102b75,public X-Google-Thread: 114917,80c509bc716c6415 X-Google-Attributes: gid114917,public From: SpamYourselFtwest@agora.rdrop.kom (Todd West) Subject: Re: Win95 performance counter interface? Date: 1998/11/29 Message-ID: <73ro0u$j8t$1@winter.news.rcn.net> X-Deja-AN: 416778401 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> X-Complaints-To: abuse@rcn.com X-Trace: LhuLvSwsJFhqwanPW/SOtuJRAOzTeXbu2tt5x9ryZuE= Organization: RainDrop Laboratories/Agora(sm), Portland, Oregon Reply-To: SpamYourselFtwest@agora.rdrop.kom (Todd West) NNTP-Posting-Date: 29 Nov 1998 15:08:14 GMT Newsgroups: comp.arch,comp.lang.asm.x86,comp.sys.intel,intel.microprocessors.pentium_ii