Accessing the PPC performance counters
Accessing the PPC performance counters
- Subject: Accessing the PPC performance counters
- From: Paul Ripke <email@hidden>
- Date: Fri, 1 Nov 2002 09:38:20 +1100
As part of an Honours thesis, I extended the Mach processor_info APIs
to allow pretty much full access to the PPC performance counter
registers, including on SMP systems. I also made use of the performance
monitor interrupt to maintain a set of per-cpu software updated 64-bit
counters, wrote a set of Mach/BSD command line tools for access and
control, and a Cocoa app which graphs deltas of the 64-bit counters.
I'm now releasing the code to the wider public. The guts of the code is
a kernel patch, which I've successfully applied (with minor
modifications) to xnu from Mac OS X 10.0.* all the way through to Mac
OS X 10.2.1 (with the proviso that I haven't tested an SMP system since
around 10.1.3).
It's all available at my home web site
<
http://stix.homeunix.net:8080/>. There's no compiled kernels there, if
anyone is really interested, I'd be able to put up a Mac OS X 10.2.1
(xnu 344.2) kernel.
Enjoy.
--
Paul Ripke
Unix/OpenVMS/DBA
101 reasons why you can't find your Sysadmin:
67: It's 9AM and they're not working that late.
-- Koos van den Hout
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.