From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,bc68ae895c6c314,start X-Google-Attributes: gid1164f8,public From: John P Williams Subject: Re: Performance counters on Alpha 21064 Date: 1998/02/17 Message-ID: <34E9CA06.A648C135@zk3.dec.com>#1/1 X-Deja-AN: 326061177 Content-Transfer-Encoding: 7bit To: martin@auer.net Content-Type: text/plain; charset=us-ascii Organization: CTG Mime-Version: 1.0 Newsgroups: comp.sys.dec Martin Auer wrote: > a few questions regarding the performance counters on the Alpha > processor: > > 1. What is the easiest way to read the counters? Do I have to use the > pfm device? > Yes, use the pfm device, but do it by running the uprofile(1) command rather than writing a tool to talk to the device through ioctl(), unless you need different capabilities. In any case you need to configure the pfm device into your kernel, by including the line "pseudo-device pfm" in the config file. > 2. Where can I find documentation regarding the PCs? > See the pfm(7) man-page for a description of each one. It describes each of the statistics that can be profiled on the 21064 chip. Typing "uprofile" without arguments tells you the command line's name for the statistics. > 3. Does anyone know of an example source code using the PCs? I don't know of one. Another way you can use the Alpha performance counters is to use the Continuous Profiling Infrastructure. This is a research project in progress at DIGITAL's Systems Research Center. It lets you profile an entire system. The toolset is currently available for download from the SRC web site, under a zero-cost license: http://www.research.digital.com/SRC/dcpi/ The Continuous Profiling Infrastructure is also available for Windows/NT from the same site. Let me know if you have questions. John P Williams