Programs That Use Hardware Counters

See Also

If you collect hardware counter overflow profiling data on a program that makes direct use of the hardware counter library, libcpc.so(3), the use of the hardware counters by the Collector library takes precedence over their use by the program. Functions from the hardware counter library are interposed on. Calls to the hardware counter functions by the program are then intercepted by the Collector library and return the value -1, and set errno to indicate a "busy signal". To collect a hardware counter experiment, the program should be able to handle this value without failing.

In one case, hardware counter overflow profiling fails on a program that uses libcpc.so. If you attach dbx to a process without preloading the collector library, libcollector.so, and enable performance data collection, the resulting hardware counter experiment is likely to contain erroneous data.

See also
Collecting Performance Data on a Running Process
Hardware Counter Data

Can't find what you are looking for? Submit your comments at http://www.sun.com/hwdocs/feedback.
Legal Notices