Robert Richter wrote:
> On 18.03.09 13:09:41, Murali Vijayasundaram wrote:
>   
>> Hi Stephane,
>>
>> The kernel version is 2.6.28.4. I applied the latest perfmon patch 
>> (perfmon-new-base-090219.tar.gz). I am also using the latest libpfm and 
>> pfmon.
>>
>> When I tried the example program 
>> libpfm-3.8/examples_v2.x/x86/smpl_amd64_ibs, I get errors.
>>
>> $ smpl_amd64_ibs --ibsop ./a.out
>> sycall base 295
>> major version 2
>> minor version 82
>> AMD family=16 model=0x2 stepping=0x3 rev=B, AMD64 (Family 10h RevB, 
>> Barcelona)
>> buffer mapped @0x2af3b1b3f000
>> hdr_cur_offs=128 version=1.0
>> pfm_write_pmcs error errno 22
>>
>> I enabled perfmon debugging and I got the following from dmesg:
>>
>> perfmon: version 2.82
>> perfmon: CPU hotplug support enabled
>> perfmon: added sampling format default
>> perfmon: found family=16 IBSCTL=0x0
>> perfmon: NorthBridge socket-level event access control: enabled
>> perfmon: Failed to initialize extended interrupts for IBS
>>     
>
> This is the problem. There were some code rework here shortly. Please
> reboot with kernel parameter perfmon_debug and grep for perfmon in the
> syslog.
>
>   

I rebooted with perfmon_debug parameter and ran an IBS example program 
in the libpfm-3.8 package.

$ cd libpfm-3.8/examples_v2.x/x86
$ smpl_amd64_ibs --ibsop ls
sycall base 295
major version 2
minor version 82
AMD family=16 model=0x2 stepping=0x3 rev=B, AMD64 (Family 10h RevB, 
Barcelona)
buffer mapped @0x2b40e8b57000
hdr_cur_offs=128 version=1.0
pfm_write_pmcs error errno 22

Here is the output from the syslog:

$ dmesg | grep perfmon
Command line: ro root=/dev/VolGroup00/LogVol00 perfmon_debug
Kernel command line: ro root=/dev/VolGroup00/LogVol00 perfmon_debug
perfmon: debug output enabled
perfmon: version 2.82
perfmon: CPU hotplug support enabled
perfmon: added sampling format default
perfmon: sys_pfm_create_context.499: CPU0 [4205]: req=00007fffc1f53820 
fmt=00000
 0000040d107 fmt_arg=00007fffc1f537e0 size=64
perfmon: found family=16 IBSCTL=0x0
perfmon: pfm_amd64_nb_allocate.421: CPU7 [4207]: max_cpus=8
perfmon: NorthBridge socket-level event access control: enabled
perfmon: pfm_amd64_setup_eilvt.224: CPU7 [4207]: Failed to setup IBS LVT 
offset,
  IBSCTL = 0xffffffff
perfmon: Failed to initialize extended interrupts for IBS
perfmon: Unable to use IBS
perfmon: pfm_amd64_check_registers.488: CPU7 [4207]: has_ibs=0
perfmon: AMD64 PMU installed
perfmon: pfm_pmu_request_module.436: CPU0 [4205]: mod=perfmon_amd64 ret=0
perfmon: __pfm_create_context.180: CPU0 [4205]: alloc ctx 
@0xffff88041a4b8000
perfmon: pfm_pmu_acquire.547: CPU0 [4205]: pmu_acquired=0
perfmon: pfm_arch_reserve_regs.595: CPU0 [4205]: nlost=0 info_flags=0x0
perfmon: pfm_pmu_regdesc_init.176: CPU0 [4205]: intr_pmds=0xf 
cnt_pmds=0xf rw_pm
 ds=0xf
perfmon: pfm_pmu_regdesc_init_all.210: CPU0 [4205]: regs_all.pmcs=0xf

regards,
-murali

> Thanks,
>
> -Robert
>
>   
>> perfmon: Unable to use IBS
>> perfmon: AMD64 PMU installed
>>
>> Do you have any ideas?
>>
>> regards,
>> -murali
>>
>> ------------------------------------------------------------------------------
>> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
>> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
>> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
>> software that enables intelligent coding and step-through debugging.
>> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
>> _______________________________________________
>> perfmon2-devel mailing list
>> perfmon2-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/perfmon2-devel
>>
>>     
>
>   


------------------------------------------------------------------------------
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to