New release of libpfm for papi-7.0.1?

29 views
Skip to first unread message

William Cohen

unread,
Mar 13, 2023, 10:28:12 PM3/13/23
to perfct...@lists.sourceforge.net, wco...@redhat.com, ptools-...@icl.utk.edu
Hi,

I was taking a look at putting the new papi-7.0.1 into Fedora rawhide, https://bugzilla.redhat.com/show_bug.cgi?id=2177906 . Fedora build a separate version of libpfm rpms rather than using the libpfm source bundled with papi. PAPI-7.0.1 is dependent on the following patch in the libpfm git repo that are not in a released version of libpfm which updates the data struct to match newer kernel.

commit 8c606bc2f2d186c2797d9f013283c9150f594f93
Author: Masahiko, Yamada <yamada....@fujitsu.com>
Date: Tue Sep 20 14:04:31 2022 +0900

update perf_event.h to Linux 5.18

The perf_events interface for directly accessing PMU registers
from userspace for arm64 has been formally implemented in the
kernel v5.18.

Update perf_event.h header used to build perf_event based examples.

Signed-off-by: Masahiko Yamada <yamada....@fujitsu.com>

Would it be possible to have an updated version of libpfm releasedr? The alternative would be to build a version of libpfm with the patch in Fedora to allow papi-7.0.1 to build, but having a libpfm with all recent patches would be cleaner.

Thanks,

-Will

Stephane Eranian

unread,
Mar 15, 2023, 12:25:59 AM3/15/23
to William Cohen, perfct...@lists.sourceforge.net, ptools-...@icl.utk.edu
Hi Will,


I can make a new release but I am not sure I understand why it will solve your problem.
Thanks.
 
Thanks,

-Will

--
You received this message because you are subscribed to the Google Groups "ptools-perfapi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ptools-perfap...@icl.utk.edu.
To view this discussion on the web visit https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/5ee7d693-db6c-3a4d-eb58-5ae8cb08c2b0%40redhat.com.

William Cohen

unread,
Mar 15, 2023, 10:43:00 AM3/15/23
to era...@gmail.com, wco...@redhat.com, perfct...@lists.sourceforge.net, ptools-...@icl.utk.edu
On 3/15/23 00:25, 'Stephane Eranian' via ptools-perfapi wrote:
> Hi Will,
>
>
> On Mon, Mar 13, 2023 at 7:28 PM William Cohen <wco...@redhat.com <mailto:wco...@redhat.com>> wrote:
>
> Hi,
>
> I was taking a look at putting the new papi-7.0.1 into Fedora rawhide, https://bugzilla.redhat.com/show_bug.cgi?id=2177906 <https://bugzilla.redhat.com/show_bug.cgi?id=2177906> .  Fedora build a separate version of libpfm rpms rather than using the libpfm source bundled with papi.  PAPI-7.0.1 is dependent on the following patch in the libpfm git repo that are not in a released version of libpfm which updates the data struct to match newer kernel.
>
> commit 8c606bc2f2d186c2797d9f013283c9150f594f93
> Author: Masahiko, Yamada <yamada....@fujitsu.com <mailto:yamada....@fujitsu.com>>
> Date:   Tue Sep 20 14:04:31 2022 +0900
>
>     update perf_event.h to Linux 5.18
>
>     The perf_events interface for directly accessing PMU registers
>     from userspace for arm64 has been formally implemented in the
>     kernel v5.18.
>
>     Update perf_event.h header used to build perf_event based examples.
>
>     Signed-off-by: Masahiko Yamada <yamada....@fujitsu.com <mailto:yamada....@fujitsu.com>>
>
> Would it be possible to have an updated version of libpfm releasedr?  The alternative would be to build a version of libpfm with the patch in Fedora to allow papi-7.0.1 to build, but having a libpfm with all recent patches would be cleaner.
>
> I can make a new release but I am not sure I understand why it will solve your problem.
> Thanks.

Hi,

I made a patched version of libpfm in Fedora rawhide for papi-7.0.1 to work around the lack of a release of libpfm with commit 8c606bc2f2d186c2797d9f013283c9150f594f93 (*). Having a release of libpfm was to make make it easier to describe the requireents for building papi-7.0.1 with an external libpfm library.

Thanks,

-Will

* libpfm with patch https://koji.fedoraproject.org/koji/buildinfo?buildID=2169815
papi-7.0.1 built with that libpfm, https://koji.fedoraproject.org/koji/buildinfo?buildID=2170338
>  
>
> Thanks,
>
> -Will
>
> --
> You received this message because you are subscribed to the Google Groups "ptools-perfapi" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ptools-perfap...@icl.utk.edu <mailto:ptools-perfapi%2Bunsu...@icl.utk.edu>.
> To view this discussion on the web visit https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/5ee7d693-db6c-3a4d-eb58-5ae8cb08c2b0%40redhat.com <https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/5ee7d693-db6c-3a4d-eb58-5ae8cb08c2b0%40redhat.com>.
>
> --
> You received this message because you are subscribed to the Google Groups "ptools-perfapi" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ptools-perfap...@icl.utk.edu <mailto:ptools-perfap...@icl.utk.edu>.
> To view this discussion on the web visit https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/CAMsRxf%2BLEYLo1ZmQd3i1r3mGhViTpTuEWZ0gbWcyVNTVdhvhnw%40mail.gmail.com <https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/CAMsRxf%2BLEYLo1ZmQd3i1r3mGhViTpTuEWZ0gbWcyVNTVdhvhnw%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Stephane Eranian

unread,
Mar 28, 2023, 8:53:27 PM3/28/23
to William Cohen, perfct...@lists.sourceforge.net, ptools-...@icl.utk.edu
Will,

I pushed libpfm-4.13.0.tar.gz on the website.
Hope it helps.

William Cohen

unread,
Mar 29, 2023, 10:22:41 AM3/29/23
to era...@gmail.com, wco...@redhat.com, perfct...@lists.sourceforge.net, ptools-...@icl.utk.edu
On 3/28/23 20:53, Stephane Eranian wrote:
> Will,
>
> I pushed libpfm-4.13.0.tar.gz on the website.
> Hope it helps.

Hi Stephane,

Thanks so much for libpfm-4.13.0 release. I have updated the fedora rawhide libpfm and papi rpms to make use of it.

libpfm-4.13.0 https://koji.fedoraproject.org/koji/buildinfo?buildID=2177712
papi-7.0.1 https://koji.fedoraproject.org/koji/taskinfo?taskID=99281423

-Will

>
>
> On Wed, Mar 15, 2023 at 7:43 AM William Cohen <wco...@redhat.com <mailto:wco...@redhat.com>> wrote:
>
> On 3/15/23 00:25, 'Stephane Eranian' via ptools-perfapi wrote:
> > Hi Will,
> >
> >
> > On Mon, Mar 13, 2023 at 7:28 PM William Cohen <wco...@redhat.com <mailto:wco...@redhat.com> <mailto:wco...@redhat.com <mailto:wco...@redhat.com>>> wrote:
> >
> >     Hi,
> >
> >     I was taking a look at putting the new papi-7.0.1 into Fedora rawhide, https://bugzilla.redhat.com/show_bug.cgi?id=2177906 <https://bugzilla.redhat.com/show_bug.cgi?id=2177906> <https://bugzilla.redhat.com/show_bug.cgi?id=2177906 <https://bugzilla.redhat.com/show_bug.cgi?id=2177906>> .  Fedora build a separate version of libpfm rpms rather than using the libpfm source bundled with papi.  PAPI-7.0.1 is dependent on the following patch in the libpfm git repo that are not in a released version of libpfm which updates the data struct to match newer kernel.
> >
> >     commit 8c606bc2f2d186c2797d9f013283c9150f594f93
> >     Author: Masahiko, Yamada <yamada....@fujitsu.com <mailto:yamada....@fujitsu.com> <mailto:yamada....@fujitsu.com <mailto:yamada....@fujitsu.com>>>
> >     Date:   Tue Sep 20 14:04:31 2022 +0900
> >
> >         update perf_event.h to Linux 5.18
> >
> >         The perf_events interface for directly accessing PMU registers
> >         from userspace for arm64 has been formally implemented in the
> >         kernel v5.18.
> >
> >         Update perf_event.h header used to build perf_event based examples.
> >
> >         Signed-off-by: Masahiko Yamada <yamada....@fujitsu.com <mailto:yamada....@fujitsu.com> <mailto:yamada....@fujitsu.com <mailto:yamada....@fujitsu.com>>>
> >
> >     Would it be possible to have an updated version of libpfm releasedr?  The alternative would be to build a version of libpfm with the patch in Fedora to allow papi-7.0.1 to build, but having a libpfm with all recent patches would be cleaner.
> >
> > I can make a new release but I am not sure I understand why it will solve your problem.
> > Thanks.
>
> Hi,
>
> I made a patched version of libpfm in Fedora rawhide for papi-7.0.1 to work around the lack of a release of libpfm with commit 8c606bc2f2d186c2797d9f013283c9150f594f93 (*).  Having a release of libpfm was to make make it easier to describe the requireents for building papi-7.0.1 with an external libpfm library.
>
> Thanks,
>
> -Will
>
> * libpfm with patch https://koji.fedoraproject.org/koji/buildinfo?buildID=2169815 <https://koji.fedoraproject.org/koji/buildinfo?buildID=2169815>
>   papi-7.0.1 built with that libpfm, https://koji.fedoraproject.org/koji/buildinfo?buildID=2170338 <https://koji.fedoraproject.org/koji/buildinfo?buildID=2170338>
> >  
> >
> >     Thanks,
> >
> >     -Will
> >
> >     --
> >     You received this message because you are subscribed to the Google Groups "ptools-perfapi" group.
> >     To unsubscribe from this group and stop receiving emails from it, send an email to ptools-perfap...@icl.utk.edu <mailto:ptools-perfapi%2Bunsu...@icl.utk.edu> <mailto:ptools-perfapi%2Bunsu...@icl.utk.edu <mailto:ptools-perfapi%252Buns...@icl.utk.edu>>.
> >     To view this discussion on the web visit https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/5ee7d693-db6c-3a4d-eb58-5ae8cb08c2b0%40redhat.com <https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/5ee7d693-db6c-3a4d-eb58-5ae8cb08c2b0%40redhat.com> <https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/5ee7d693-db6c-3a4d-eb58-5ae8cb08c2b0%40redhat.com <https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/5ee7d693-db6c-3a4d-eb58-5ae8cb08c2b0%40redhat.com>>.
> >
> > --
> > You received this message because you are subscribed to the Google Groups "ptools-perfapi" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to ptools-perfap...@icl.utk.edu <mailto:ptools-perfapi%2Bunsu...@icl.utk.edu> <mailto:ptools-perfap...@icl.utk.edu <mailto:ptools-perfapi%2Bunsu...@icl.utk.edu>>.
> > To view this discussion on the web visit https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/CAMsRxf%2BLEYLo1ZmQd3i1r3mGhViTpTuEWZ0gbWcyVNTVdhvhnw%40mail.gmail.com <https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/CAMsRxf%2BLEYLo1ZmQd3i1r3mGhViTpTuEWZ0gbWcyVNTVdhvhnw%40mail.gmail.com> <https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/CAMsRxf%2BLEYLo1ZmQd3i1r3mGhViTpTuEWZ0gbWcyVNTVdhvhnw%40mail.gmail.com?utm_medium=email&utm_source=footer <https://groups.google.com/a/icl.utk.edu/d/msgid/ptools-perfapi/CAMsRxf%2BLEYLo1ZmQd3i1r3mGhViTpTuEWZ0gbWcyVNTVdhvhnw%40mail.gmail.com?utm_medium=email&utm_source=footer>>.
>

Reply all
Reply to author
Forward
0 new messages