🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #23437

Re: Win95 performance counter interface?

#23437
From: Andy Glew
Date: Fri, 04 Dec 1998 00:00
17 lines
1909 bytes
> I'd like to see a VxD which could intercept processoer cache misses,
> branch prediction failures etc. ;)
> I think the P II supports grabbing all this extra info but I know no
> more.

The P6 cores all support interrupts on such performance events.

Unfortunately, I know of no public API to access it.

Intel's VTUNE program uses these interrupts to do "event based profiling".
Unfortunately, VTUNE publishes no API that I know of, and its methodology
may not be what you want to use, e.g. if you want to do long term profiling
of a single function, in which case VTUNE is too intrusive.

However, there should be sufficient information in the OS writer's guide to
write your own. The event codes are somewhat obscured, but the numeric
values is displayed by VTUNE.
Technical Details
Message-ID: <747amm$5da$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> <73ppdc$bif$1@winter.news.rcn.net> <742ipp$gm8$6@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: 110292,80c509bc716c6415
X-Google-Attributes: gid110292,public
X-Google-Thread: 114917,80c509bc716c6415
X-Google-Attributes: gid114917,public
From: Andy Glew <glew@cs.wisc.edu>
Subject: Re: Win95 performance counter interface?
Date: 1998/12/04
Message-ID: <747amm$5da$1@winter.news.rcn.net>
X-Deja-AN: 418430467
Content-Transfer-Encoding: 7bit
Approved: <johnfine@erols.com>
References: <72kj98$lpj$1@autumn.news.rcn.net> <73p61n$3tr$1@winter.news.rcn.net> <73ppdc$bif$1@winter.news.rcn.net> <742ipp$gm8$6@winter.news.rcn.net>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Mozilla-Status: 0801
X-Complaints-To: abuse@rcn.com
X-Trace: OJ7Fn8oNT15+h5mDwP91/0jMEkvqzP4hhJz40WAzBkA=
Organization: U Wisc CS (& Intel)
Mime-Version: 1.0
NNTP-Posting-Date: 4 Dec 1998 00:34:30 GMT
Newsgroups: comp.arch,comp.lang.asm.x86,comp.sys.intel,intel.microprocessors.pentium_ii