Stephane Eranian wrote:
On Wed, Oct 25, 2006 at 11:56:34AM -0400, William Cohen wrote:

I am looking through the libpfm code and notice that PFMLIB_MAX_PMCS has increased from 256 (libpfm-3.0) to 512 (libpfm-3.2). Is there a specific case where the 256 wasn't large enough? Or is this assuming future perfmon hardware will need the additional space?



Yes, this is justified by the fact that the kernel interface currently
supports up to 320 registers. So 256 was too small to cover for it.
I decided to double it to be okay for a while. We could reduce it
to 320 as well.


So none of the processors are currently use more than 256 registers? I am working on backporting the montecito support to the earlier version of libpfm and pfmon in RHEL4. I would like to avoid changing the data structures used by the shared libraries if possible.

Other changes noticed in data structures during the backport were:

-pfmlib_input_param_t include pfp_unavail_pmcs field
-unit_masks and num_mask in pfmlib_event_t struct

-Will
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/

Reply via email to