From: John P Williams <jpw@zk3.dec.com>
To: martin@auer.net
Subject: Re: Performance counters on Alpha 21064
Date: 1998/02/17 [thread overview]
Message-ID: <34E9CA06.A648C135@zk3.dec.com> (raw)
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
next reply other threads:[~1998-02-17 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-02-17 5:00 John P Williams [this message]
-- strict thread matches above, loose matches on Subject: below --
1998-02-11 5:00 Performance counters on Alpha 21064 martin
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox