Hi,

Probably not the correct terminology, but it may help if you view pfmon as a 
"tool". You can, in fact, write your own tools (look under examples).
But as a tool writer, it would help if you have some APIs to help you access 
the 
hardware monitors. libpfm and perfmon (kernel) can provide this interface 
(along 
with a host of added features !)

Both PAPI and pfmon "tools" use this interface (based on the platform), but the 
PAPI tools can also use other interfaces (e.g., driver interface perfctr on 
some 
PPC models). If you look at the configure statement below, you'll see that he's 
configuring the "tool" to use perfmon and libpfm.
Have a look at the Makefiles under PAPI, and you'll see that other combinations 
are possible based on the platform on which you want to run monitoring.

 > It seems he uses PAPI. If you guess/know the reason, can you please tell me 
 > it?

The reason behind his choice may be that PAPI supports a few features/platforms 
that pfmon currently doesn't support. Old PPCs and Multiple event sets for 
sampling are things that come to mind.
Other tradeoffs are involved - you can look up the interface specification for 
further details (at
http://www.hpl.hp.com/techreports/2004/HPL-2004-200R1.html

Regards,
Pradeep


Satoshi Isono wrote:
> Dear Pradeep,
> 
> Thank you for reply. I found the below article on PAPI ML.
> 
> http://lists.cs.utk.edu/pipermail/ptools-perfapi/2009-May/002895.html
> 
>> I have installed 2.6.28 vanilla and the latest perfmon2 patches
>> against it.(with libpfm)
>>
>> I'm building papi with:
>>
>> ./configure \
>>         --prefix=/usr \
>>         --with-bitmode=64 \
>>         --with-perfmon=3.8 \
>>         --with-pfm-incdir=/usr/include \
>>         --with-pfm-libdir=%{_libdir} ;
>>
>> and libpfm is installed in : /usr/lib64/libpfm.so.3.8.0
> 
> It seems he uses PAPI. If you guess/know the reason, can you please tell me 
> it?
> 
> Regards,
> Satoshi Isono
> 
> -----Original Message-----
> From: Pradeep Rao [mailto:pradeep....@isit.or.jp] 
> Sent: Friday, June 05, 2009 12:41 PM
> To: Satoshi Isono
> Cc: perfmon-ML
> Subject: Re: [perfmon2] Precondition before installing
> 
> Hi,
> 
> You do not need PAPI.
> You can do the following to get the pfmon tools setup on your platform:
> * Patch your kernel with perfmon-new-base-xxx and compile kernel with perfmon 
> enabled.
> * build/install libpfm
> * build/install pfmon tools
> 
> Regards,
> Pradeep
> 
> 
> 
> Satoshi Isono wrote:
>> Thanks for your advice.
>>
>> More concern. If I want to use pfmon tools, should I install PAPI and 
>> PAPI patch into kernel source?
>>
>>  
>>
>> Sorry, I don’t understand completely needed packages about pfmon.
>>
>> Could you advice or give me some opinions?
>>
>>  
>>
>> Regards,
>>
>> Satoshi Isono
>>
>>  
>>
>> *From:* stephane eranian [mailto:eran...@googlemail.com]
>> *Sent:* Friday, June 05, 2009 1:24 AM
>> *To:* Satoshi Isono
>> *Cc:* perfmon2-devel@lists.sourceforge.net
>> *Subject:* Re: [perfmon2] Precondition before installing
>>
>>  
>>
>> Hi,
>>
>> On Thu, Jun 4, 2009 at 11:28 AM, Satoshi Isono <is...@cray.com 
>> <mailto:is...@cray.com>> wrote:
>>
>> Dear all,
>>
>> I try to install perfmon2 into kernel 2.6.18-53.1.6.el5-PAPI. My aim is
>> to collect L3 cache events on Barcelona (QC AMD Opteron 8356). I show
>> /proc/cpuinfo as below.
>>
>>   processor       : 15
>>   vendor_id       : AuthenticAMD
>>   cpu family      : 16
>>   model           : 2
>>   model name      : Quad-Core AMD Opteron(tm) Processor 8356
>>   stepping        : 3
>>   cpu MHz         : 2300.096
>>   cache size      : 512 KB
>>   ...
>>
>> Or do I have to use latest kernel combination?
>>
>>   (3)
>>   * Kernel source 2.6.28-1
>>   pfmon-3.8.tar.gz
>>   libpfm-3.8.tar.gz
>>   perfmon-new-base-090219.tar.gz
>>
>>  
>>
>> That configuration will work. I don't think the others will. If you have
>>
>> a choice, I would not even bother and I would use the latest.
>>
>>  
>>
>>
>> ------------------------------------------------------------------------
>>
>> ------------------------------------------------------------------------------
>> OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
>> looking to deploy the next generation of Solaris that includes the latest 
>> innovations from Sun and the OpenSource community. Download a copy and 
>> enjoy capabilities such as Networking, Storage and Virtualization. 
>> Go to: http://p.sf.net/sfu/opensolaris-get
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> perfmon2-devel mailing list
>> perfmon2-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to