RE: realfeel4 for libpfm-3.0

From: Zhu, Yi <yi.zhu_at_intel.com>
Date: 2004-03-31 15:58:38
Stephane Eranian wrote:
> I looked at your ported version of realfeel4.c. There were three
> problems with it: 
> 
> 	- with the new perfmon interface, a system-wide context
> 	  is not automatically pinned to a CPU. You need an
> 	  explicit call to sched_setaffinity(). The perfmonctl()
> 	  calls, in this case, are only authorized from when the
> 	  calling tasking is running on the CPU that was used when
> 	  PFM_LOAD_CONTEXT was issued. To avoid problems it is always
> 	  best to explicitely call sched_setaffinity() prior to

> PFM_LOAD_CONTEXT. 
> 
> 	- for system-wide context, you currently cannot use
> 	  pfm_self_start()/pfm_self_stop() which are lighweight
> 	  versions of PFM_START/PFM_STOP. I am hoping to remove
this
> restrictions soon. 
> 
> 	- You had two calls to PFM_RESTART in you overflow handler.
> 
> The attached program does work for me.


Thank you very much Stephane and Peter!

I make the realfeel4 work with the modified realfeel4n.c and Peter's tip
to
disable CONFIG_IA64_PAL_IDLE.

Thanks,
-yi
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Wed Mar 31 01:00:52 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:25 EST