Mark, Dan,

Changes from v2.8 to v2.81 do not affect the user level API. The
changes were located
in the kernel to perfmon sampling modules. You can safely assume PAPI
will work correctly
with v2.81.

The reason I did this is to have a trace of where the API between
kernel and sampling modules
changed.


On Mon, Sep 22, 2008 at 4:08 PM, Dan Terpstra <[EMAIL PROTECTED]> wrote:
> Mark -
> Thanks for testing this.
> I suspect what you're seeing is a version incompatibility between libpfm
> 2.81 and perfmon 2.8. Stephane identified this a while ago.
> This isn't a problem with PAPI per se, but as you point out, it does affect
> your ability to upgrade PAPI without repatching the kernel.
> This is one of the significant inconveniences of not having gotten this
> stuff into the kernel yet. I'm not sure if there's an easy way around this
> without giving it some thought. Suggestions from the community welcomed.
> - dan
>
>> -----Original Message-----
>> From: Mark W. Krentel [mailto:[EMAIL PROTECTED]
>> Sent: Sunday, September 21, 2008 4:55 PM
>> To: Dan Terpstra
>> Cc: [EMAIL PROTECTED]
>> Subject: Re: [Ptools-perfapi] PAPI 3.6.2
>>
>> I see the following regression related to configuring PAPI on systems
>> with perfmon 2.8 and 2.81 between PAPI 3.6.1 and 3.6.2. I'll call it
>> 3.6.2, but of course, I mean PAPI from CVS head as of this morning,
>> Sept 21.
>>
>> On one system (yosemite) with the latest perfmon 080729, version 2.81,
>> PAPI 3.6.2 correctly auto-detects perfmon 2.81 and my tests succeed.
>>
>> But on another system (nigel), with one earlier revision of perfmon
>> 080429, version 2.8, PAPI 3.6.2 seems to identify it as 2.8 at
>> configure time. This is Linux 2.6.25 with perfmon 080429.
>>
>> $ dmesg | grep -i perf
>> perfmon: version 2.8
>> perfmon: CPU hotplug support enabled
>> perfmon: found family=15 VAL=0x0
>> perfmon: AMD64 PMU detected, 4 PMCs, 4 PMDs, 4 counters (47 bits)
>> perfmon: AMD64 PMU installed
>> perfmon: added sampling format default
>>
>> ./configure
>> ...
>> checking for /dev/perfctr... no
>> checking for /sys/kernel/perfmon/version... yes
>> checking for perfmon version... 2.8
>> checking for building tests static... no
>> checking for which libraries to build... shared static
>> checking for perfctr version... none
>> checking for Makefile to use... linux-perfmon2
>>
>> But then papi_avail fails:
>>
>> $ ./papi_avail
>> PAPI Error: Version mismatch of libpfm: compiled 2.81 vs. installed 2.8
>> .
>> avail.c FAILED
>> Line # 109
>> Error in PAPI_library_init: PAPI_ESBSTR
>>
>> Furthermore, configure --with-perfmon=2.8 or --with-perfmon=2.81 also
>> fail in the same way. And, I'm unable to find some configure args
>> that will make PAPI 3.6.2 work with perfmon 080429.
>>
>> I've seen this happen frequently with PAPI, where in order to upgrade
>> to the latest PAPI, I'm forced to upgrade the kernel first. That may
>> or may not be feasible on some systems.
>>
>> PAPI 3.6.1 correctly detects perfmon 2.8 and papi_avail succeeds.
>>
>> --Mark
>>
>>
>>
>> Dan Terpstra wrote:
>> >
>> > Hi all -
>> >
>> > We're getting ready to release PAPI 3.6.2 with support for POWER6 /
>> > AIX and a handful of bug fixes. If you're an active developer of PAPI
>> > substrates, I'd appreciate it if you could check out the code from cvs
>> > over the next several days and give it a spin, in order to make sure
>> > we don't have any open issues with your platforms. Let me know if any
>> > glaring or unexpected issues come up.
>> >
>> > Thanks in advance,
>> >
>> > - dan terpstra
>> >
>> > For the PAPI team
>> >
>> > ------------------------------------------------------------------------
>> >
>> > _______________________________________________
>> > Ptools-perfapi mailing list
>> > [EMAIL PROTECTED]
>> > http://lists.cs.utk.edu/listinfo/ptools-perfapi
>> >
>
>
> -------------------------------------------------------------------------
> 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
>

-------------------------------------------------------------------------
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

Reply via email to