"cannot create session Bad address" seems to be the common error message
from programs run under the examples directory.

Attached file with output from several example programs; first output
from examples_v2 dir and then same command from examples dir.

Hope this helps, and let me know if you need any more data - not a
problem.


Raul

-----Original Message-----
From: Chris J Arges [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 08, 2008 12:55 PM
To: Flores, Raul
Cc: perfmon2-devel@lists.sourceforge.net
Subject: Re: [perfmon2] permon2; libpfm; iMac G5 iSight (PPC970FX)

Raul,
Can you copy some of the output of the errors you get running programs 
in the examples directory as well as any other problematic programs? Any

details would be appreciated.

--chris

Flores, Raul wrote:
> Very good suggestion; Thanks
>
> Pulled libpfm (HEAD) and I now get PM_CYC counts.
>
> Fyi: the examples directory programs do not seem to work; have to run
> self under the examples_v2.x directory
>
>
> Thanks again Chris
>
> ps
>
> Appreciate all the work done here. Great job.
>
>
>
> -----Original Message-----
> From: Chris J Arges [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, December 04, 2008 2:43 PM
> To: Flores, Raul
> Cc: perfmon2-devel@lists.sourceforge.net
> Subject: Re: [perfmon2] permon2; libpfm; iMac G5 iSight (PPC970FX)
>
> Raul,
>
> I have a ppc970fx machine here, that I have tested these patches on,
and
>
> I can replicate your bug running syst_smp. However, I get counts for 
> PM_CYC when running libpfm/examples/self. I will look into this when I

> get a chance. Responses below.
>
> --chris
>
> Flores, Raul wrote:
>   
>> I have built the 2.6.28-rc4 Linux kernel on an iMac G5 iSight 
>> (g5_defconfig) and installed libpfm3.6. I grabbed the kernel source 
>> from git tree around Nov 21. I have to sneaker-net the git source
over
>>     
>
>   
>> to my platform (no network) so not sure of any updates.
>>
>> When I run the syst_smp program found in libpfm-3.6/libpfms, I get
the
>>     
>
>   
>> following results:
>>
>> imacG5 libpfms # ./syst_smp
>>
>> cpu_t=16 thread=44 session_t=96
>>
>> ncpus=1 npmds=2
>>
>> 1-way session
>>
>> monitoring for 10s on all CPUs
>>
>> CPU0 PMD2 0 PM_CYC
>>
>> CPU0 PMD4 38779676 PM_INST_CMPL
>>
>>     
> I can replicate this on my machine:
>
> ./syst_smp
> cpu_t=24 thread=80 session_t=112
> event counter = 2
> group = 0
> event counter = 4
> group = 0
> ncpus=2 npmds=4
> 2-way session
> monitoring for 10s on all CPUs
> CPU0 PMD2 0 PM_CYC
> CPU0 PMD4 35079310731 PM_INST_CMPL
> CPU1 PMD2 0 PM_CYC
> CPU1 PMD4 35064659555 PM_INST_CMPL
>
>   
>> Also tried the "self" program under examples, and with both programs,

>> I get PM_CYC count displayed as 0 which doesn't seem right.
>>
>>     
> This is different, when I run libpfm/examples/self I get the following

> output on my machine:
>
> $ ./self
> sycall base 319
> PMD2 21862697856 PM_CYC
> PMD4 21860903581 PM_INST_CMPL
>
>   
>> Any ideas why? Am I missing something? Are there patches I should
>>     
> apply?
>   
> Perhaps try grabbing the latest CVS head of libpfm, and testing with
> that.
>   
>> Any help would be appreciated.
>>
>>     
> Sure thing, I'd be glad to help.
>   
>> Raul
>>
>>
>>
>>
>> Here is some data on the system I have configured:
>>
>> Linux imacG5 2.6.28-rc4 #39 SMP Wed Dec 3 17:49:11 CST 2008 ppc64 
>> PPC970FX, altivec supported PowerMac12,1 GNU/Linux
>>
>> Gnu C 4.1.2
>>
>> Gnu make 3.81
>>
>> binutils 2.18
>>
>> util-linux 2.13.1.1
>>
>> mount 2.13.1.1
>>
>> module-init-tools 3.4
>>
>> e2fsprogs 1.40.4
>>
>> PPP 2.4.4
>>
>> Linux C Library 2.6.1
>>
>> Dynamic linker (ldd) 2.6.1
>>
>> Procps 3.2.7
>>
>> Net-tools 1.60
>>
>> Kbd 1.13
>>
>> Sh-utils 6.10
>>
>> udev 124
>>
>> Modules Loaded perfmon_power4
>>
>> snd_aoa_codec_onyx
>>
>> snd_aoa_fabric_layout
>>
>> snd_aoa
>>
>> pmac_zilog
>>
>> serial_core
>>
>> snd_aoa_i2sbus
>>
>> snd_aoa_soundbus
>>
>> snd_pcm
>>
>> snd_page_alloc
>>
>> snd_timer
>>
>> snd
>>
>> soundcore
>>
>> uninorth_agp
>>
>> agpgart
>>
>>
>>     
>
------------------------------------------------------------------------
>   
>>     
>
------------------------------------------------------------------------
> -
>   
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>     
> challenge
>   
>> Build the coolest Linux based applications with Moblin SDK & win
great
>>     
> prizes
>   
>> Grand prize is a trip for two to an Open Source event anywhere in the
>>     
> world
>   
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>
>>     
>
------------------------------------------------------------------------
>   
>> _______________________________________________
>> perfmon2-devel mailing list
>> perfmon2-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/perfmon2-devel
>>   
>>     
>
>   

[EMAIL PROTECTED] ~/workspace/libpfm/examples_v2.x $ ./showreginfo 
model  : POWER4
-------------------------------------------------------------------------------------
name   |   default  value   |   reserved  mask   | hw address or index | 
description
-------+--------------------+--------------------+---------------------+-------------
pmc0   | 0x0000000080000000 | 0x0000000000000000 | 0x31b               | MMCR0
pmc1   | 0x0000000000000000 | 0x0000000000000000 | 0x31e               | MMCR1
pmc2   | 0x0000000000000000 | 0x0000000000000000 | 0x312               | MMCRA
-------+--------------------+--------------------+---------------------+-------------
pmd0   | 0x0000000000000000 | 0x0000000000000000 | 0x10c               | TB
pmd1   | 0x0000000000000000 | 0x0000000000000000 | 0x313               | PMC1
pmd2   | 0x0000000000000000 | 0x0000000000000000 | 0x314               | PMC2
pmd3   | 0x0000000000000000 | 0x0000000000000000 | 0x315               | PMC3
pmd4   | 0x0000000000000000 | 0x0000000000000000 | 0x316               | PMC4
pmd5   | 0x0000000000000000 | 0x0000000000000000 | 0x317               | PMC5
pmd6   | 0x0000000000000000 | 0x0000000000000000 | 0x318               | PMC6
pmd7   | 0x0000000000000000 | 0x0000000000000000 | 0x319               | PMC7
pmd8   | 0x0000000000000000 | 0x0000000000000000 | 0x31a               | PMC8
-------------------------------------------------------------------------------------
3 PMC registers, 9 PMD registers
[EMAIL PROTECTED] ~/workspace/libpfm/examples_v2.x $ ../examples/showreginfo 
model  : POWER4
-------------------------------------------------------------------------------------
name   |   default  value   |   reserved  mask   | hw address or index | 
description
-------+--------------------+--------------------+---------------------+-------------
pmc0   | 0x0000000080000000 | 0x0000000000000000 | 0x31b               | MMCR0
pmc1   | 0x0000000000000000 | 0x0000000000000000 | 0x31e               | MMCR1
pmc2   | 0x0000000000000000 | 0x0000000000000000 | 0x312               | MMCRA
-------+--------------------+--------------------+---------------------+-------------
pmd0   | 0x0000000000000000 | 0x0000000000000000 | 0x10c               | TB
pmd1   | 0x0000000000000000 | 0x0000000000000000 | 0x313               | PMC1
pmd2   | 0x0000000000000000 | 0x0000000000000000 | 0x314               | PMC2
pmd3   | 0x0000000000000000 | 0x0000000000000000 | 0x315               | PMC3
pmd4   | 0x0000000000000000 | 0x0000000000000000 | 0x316               | PMC4
pmd5   | 0x0000000000000000 | 0x0000000000000000 | 0x317               | PMC5
pmd6   | 0x0000000000000000 | 0x0000000000000000 | 0x318               | PMC6
pmd7   | 0x0000000000000000 | 0x0000000000000000 | 0x319               | PMC7
pmd8   | 0x0000000000000000 | 0x0000000000000000 | 0x31a               | PMC8
-------------------------------------------------------------------------------------
3 PMC registers, 9 PMD registers

[EMAIL PROTECTED] ~/workspace/libpfm/examples_v2.x $ ./whichpmu 
PMU model detected by pfmlib: PPC970
number of implemented PMD registers : 8
implemented PMD registers           : [ 0 1 2 3 4 5 6 7 ]
number of available PMD registers   : 8
available PMD registers             : [ 0 1 2 3 4 5 6 7 ]
number of implemented PMC registers : 3
implemented PMC registers           : [ 0 1 2 ]
number of available PMC registers   : 3
available PMC registers             : [ 0 1 2 ]
number of counters                  : 8
implemented counters                : [ 0 1 2 3 4 5 6 7 ]
number of available counters        : 8
available counters                  : [ 0 1 2 3 4 5 6 7 ]
hardware counter width              : 64
number of events supported          : 215
[EMAIL PROTECTED] ~/workspace/libpfm/examples_v2.x $ ../examples/whichpmu 
Segmentation fault

[EMAIL PROTECTED] ~/workspace/libpfm/examples_v2.x $ ./task_smpl_user sleep 3
measuring at plm=0x8
programming 3 PMCS and 2 PMDS
entry 0 PID:7704 TID: 7704 CPU:0 LAST_VAL: 100000 IIP:0xf7fd790c
PMD4  = 722199
task terminated
1 samples collected in 1 buffer overflows
real 0h00m02.992s user 0h00m00.000s sys 0h00m00.000s
[EMAIL PROTECTED] ~/workspace/libpfm/examples_v2.x $ ../examples/task_smpl_user 
sleep 3
measuring at plm=0x8
programming 3 PMCS and 2 PMDS
cannot create session Bad address

[EMAIL PROTECTED] ~/workspace/libpfm/examples_v2.x $ ./notify_self
sycall base 319
major version 2
minor version 82
Notification 1: 999976584 PM_INST_CMPL ip=0x10000d74
Notification 2: 999976758 PM_INST_CMPL ip=0x10000d74
Notification 3: 999975338 PM_INST_CMPL ip=0x10000d74
[EMAIL PROTECTED] ~/workspace/libpfm/examples_v2.x $ ../examples/notify_self
sycall base 319
major version 2
minor version 82
cannot create session Bad address

[EMAIL PROTECTED] ~/workspace/libpfm/examples_v2.x $ ./notify_self2 
sycall base 319
major version 2
minor version 82
Notification 1: 999976083 PM_INST_CMPL
Notification 2: 999977545 PM_INST_CMPL
Notification 3: 999978776 PM_INST_CMPL
Notification 4: 999978330 PM_INST_CMPL
Notification 5: 999978664 PM_INST_CMPL
Notification 6: 999975975 PM_INST_CMPL
Notification 7: 999977440 PM_INST_CMPL
Notification 8: 999977273 PM_INST_CMPL
Notification 9: 999977110 PM_INST_CMPL
Notification 10: 999978112 PM_INST_CMPL
Notification 11: 999978984 PM_INST_CMPL
Notification 12: 999979304 PM_INST_CMPL
Notification 13: 999975934 PM_INST_CMPL
Notification 14: 999977741 PM_INST_CMPL
Notification 15: 999978261 PM_INST_CMPL
Notification 16: 999976271 PM_INST_CMPL
Notification 17: 999976336 PM_INST_CMPL
Notification 18: 999976804 PM_INST_CMPL
Notification 19: 999978630 PM_INST_CMPL
Notification 20: 999975238 PM_INST_CMPL
[EMAIL PROTECTED] ~/workspace/libpfm/examples_v2.x $ ../examples/notify_self2 
sycall base 319
major version 2
minor version 82
cannot create session Bad address

[EMAIL PROTECTED] ~/workspace/libpfm/examples_v2.x $ ./self
sycall base 319
major version 2
minor version 82
una=0xfffffff8
PMD2            10363100283 PM_CYC
PMD4            10362916230 PM_INST_CMPL
[EMAIL PROTECTED] ~/workspace/libpfm/examples_v2.x $ ../examples/self
sycall base 319
major version 2
minor version 82
cannot create session Bad address
[EMAIL PROTECTED] ~/workspace/libpfm/examples_v2.x $ 

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to