Raul, After seeing Stephane's reply, I can verify on ppc970mp, (I've been switching between perfmon3 and perfmon2) that perfmon2 works with examples_v2.x. If you run into any other issues on ppc970* let me know. Thanks, --chris
stephane eranian wrote: > Raul, > > If your system is running perfmon2, then you can only run the examples > in examples_v2.x. If it runs perfmon3, then run the examples in examples. > You can figure out which version you are running in > /sys/kernel/perfmon/version. > > > On Mon, Dec 8, 2008 at 10:53 PM, Flores, Raul <[EMAIL PROTECTED]> wrote: > >> "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 >>>> >>>> >>>> >>> >> ------------------------------------------------------------------------------ >> 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 >> >> >> ------------------------------------------------------------------------------ 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