Compare commits

..

No commits in common. "c8" and "c9-beta" have entirely different histories.
c8 ... c9-beta

3 changed files with 78 additions and 34 deletions

1
.libpfm.metadata Normal file
View File

@ -0,0 +1 @@
bcb52090f02bc7bcb5ac066494cd55bbd5084e65 SOURCES/libpfm-4.13.0.tar.gz

View File

@ -1,20 +1,8 @@
commit 874feacbbe97fe567d3d8b1582d881d1b424dd5e commit 75d8bb06f6ea0d7a8edf8e080c7ea6d434d598ff
Author: William Cohen <wcohen@redhat.com> Author: William Cohen <wcohen@redhat.com>
Date: Fri Apr 14 16:07:07 2023 -0400 Date: Fri Apr 14 16:07:07 2023 -0400
Make sure that p is set to a known value before using. Make sure that p is set to a known value before using.
Need to ensure that p was initialized at the start of function
gen_tracepoint_table otherwise on some architectures such as s390x
will get the following error when compiling with -Werror:
make[1]: Entering directory '/root/rpmbuild/BUILD/libpfm-4.13.0/lib'
cc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=z14 -mtune=z15 -fasynchronous-unwind-tables -fstack-clash-protection -g -Wall -Werror -Wextra -Wno-unused-parameter -I. -I/root/rpmbuild/BUILD/libpfm-4.13.0/lib/../include -DCONFIG_PFMLIB_DEBUG -DCONFIG_PFMLIB_OS_LINUX -D_REENTRANT -I. -fvisibility=hidden -DCONFIG_PFMLIB_ARCH_S390X -I. -c pfmlib_perf_event_pmu.c
pfmlib_perf_event_pmu.c: In function 'gen_tracepoint_table':
pfmlib_perf_event_pmu.c:434:35: error: 'p' may be used uninitialized in this function [-Werror=maybe-uninitialized]
434 | p->modmsk = 0;
| ~~~~~~~~~~^~~
cc1: all warnings being treated as errors
diff --git a/lib/pfmlib_perf_event_pmu.c b/lib/pfmlib_perf_event_pmu.c diff --git a/lib/pfmlib_perf_event_pmu.c b/lib/pfmlib_perf_event_pmu.c
index 637c5b1..8f7d7d1 100644 index 637c5b1..8f7d7d1 100644

View File

@ -1,9 +1,11 @@
# Default to no static libraries
%{!?with_static: %global with_static 1}
%bcond_without python %bcond_without python
%if %{with python} %if %{with python}
%define python_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print (get_python_lib(1))") %define python_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print (get_python_lib(1))")
%define python_prefix %(python3 -c "import sys; print (sys.prefix)") %define python_prefix %(python3 -c "import sys; print (sys.prefix)")
%{?filter_setup: %{?filter_setup:
%filter_provides_in %{python_sitearch}/perfmon/.*\.so$ %filter_provides_in %{python3_sitearch}/perfmon/.*\.so$
%filter_setup %filter_setup
} }
%endif %endif
@ -14,7 +16,6 @@ Release: 4%{?dist}
Summary: Library to encode performance events for use by perf tool Summary: Library to encode performance events for use by perf tool
Group: System Environment/Libraries
License: MIT License: MIT
URL: http://perfmon2.sourceforge.net/ URL: http://perfmon2.sourceforge.net/
Source0: http://sourceforge.net/projects/perfmon2/files/libpfm4/%{name}-%{version}.tar.gz Source0: http://sourceforge.net/projects/perfmon2/files/libpfm4/%{name}-%{version}.tar.gz
@ -22,6 +23,8 @@ Patch2: libpfm-python3-setup.patch
Patch3: libpfm-initp.patch Patch3: libpfm-initp.patch
Patch4: libpfm-zen4.patch Patch4: libpfm-zen4.patch
BuildRequires: make
BuildRequires: gcc
%if %{with python} %if %{with python}
BuildRequires: python3 BuildRequires: python3
BuildRequires: python3-devel BuildRequires: python3-devel
@ -37,21 +40,21 @@ for the perf_events interface available in upstream Linux kernels since v2.6.31.
%package devel %package devel
Summary: Development library to encode performance events for perf_events based tools Summary: Development library to encode performance events for perf_events based tools
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel %description devel
Development library and header files to create performance monitoring Development library and header files to create performance monitoring
applications for the perf_events interface. applications for the perf_events interface.
%if %{with_static}
%package static %package static
Summary: Static library to encode performance events for perf_events based tools Summary: Static library to encode performance events for perf_events based tools
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
%description static %description static
Static version of the libpfm library for performance monitoring Static version of the libpfm library for performance monitoring
applications for the perf_events interface. applications for the perf_events interface.
%endif
%if %{with python} %if %{with python}
%package -n python3-libpfm %package -n python3-libpfm
@ -61,7 +64,6 @@ Provides: %{name}-python = %{version}-%{release}
Provides: %{name}-python%{?_isa} = %{version}-%{release} Provides: %{name}-python%{?_isa} = %{version}-%{release}
Obsoletes: %{name}-python < %{version}-%{release} Obsoletes: %{name}-python < %{version}-%{release}
Summary: Python bindings for libpfm and perf_event_open system call Summary: Python bindings for libpfm and perf_event_open system call
Group: Development/Languages
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
%description -n python3-libpfm %description -n python3-libpfm
@ -80,7 +82,7 @@ Python bindings for libpfm4 and perf_event_open system call.
%else %else
%global python_config CONFIG_PFMLIB_NOPYTHON=y %global python_config CONFIG_PFMLIB_NOPYTHON=y
%endif %endif
make %{python_config} %{?_smp_mflags} \ %make_build %{python_config} \
OPTIM="%{optflags}" LDFLAGS="%{build_ldflags}" OPTIM="%{optflags}" LDFLAGS="%{build_ldflags}"
@ -100,8 +102,11 @@ make \
LDCONFIG=/bin/true \ LDCONFIG=/bin/true \
install install
%post -p /sbin/ldconfig %if !%{with_static}
%postun -p /sbin/ldconfig rm $RPM_BUILD_ROOT%{_libdir}/lib*.a
%endif
%ldconfig_scriptlets
%files %files
%doc README %doc README
@ -112,12 +117,14 @@ make \
%{_mandir}/man3/* %{_mandir}/man3/*
%{_libdir}/lib*.so %{_libdir}/lib*.so
%if %{with_static}
%files static %files static
%{_libdir}/lib*.a %{_libdir}/lib*.a
%endif
%if %{with python} %if %{with python}
%files -n python3-libpfm %files -n python3-libpfm
%{python_sitearch}/* %{python3_sitearch}/*
%endif %endif
%changelog %changelog
@ -125,22 +132,70 @@ make \
- Identify AMD Bergamo processors. - Identify AMD Bergamo processors.
* Wed May 3 2023 William cohen <wcohen@redhat.com> - 4.13.0-3 * Wed May 3 2023 William cohen <wcohen@redhat.com> - 4.13.0-3
- Rebuild for rhbz #2161146. - Rebuild for rhbz #2186927.
* Fri Apr 14 2023 William Cohen <wcohen@redhat.com> - 4.13.0-1 * Wed May 3 2023 William cohen <wcohen@redhat.com> - 4.13.0-2
- Rebase to libpfm-4.13.0 (RHBZ #2185653) - Rebuild for rhbz #2186927.
* Sun May 8 2022 William Cohen <wcohen@redhat.com> - 4.10.1-5 * Fri Apr 14 2023 William cohen <wcohen@redhat.com> - 4.13.0-1
- Add AMD Zen 2/3 support (RHBZ #2067218) - Rebase to libpf-4.13.0 (rhbz #2185652)
* Thu May 20 2021 William Cohen <wcohen@redhat.com> - 4.10.1-4 * Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 4.11.0-6
- Add Fujitsu A64FX support (RHBZ #1908126) - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Wed May 27 2020 William Cohen <wcohen@redhat.com> - 4.10.1-3
- Add Marvell TunderX2 UNC support. (RHBZ #1726070)
* Tue Oct 15 2019 William Cohen <wcohen@redhat.com> - 4.10.1-2 * Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 4.11.0-5
- Add IBM zseries support. (RHBZ #1731019) - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.11.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Sat Jan 23 2021 William Cohen <wcohen@redhat.com> - 4.11.0-3
- Reenable generation of static libraries for time being.
* Fri Jan 22 2021 William Cohen <wcohen@redhat.com> - 4.11.0-2
- By default disable generation of static libraries
* Tue Sep 08 2020 William Cohen <wcohen@redhat.com> - 4.11.0-1
- Rebase on libpfm-4.11.0.
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.10.1-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 4.10.1-12
- Use make macros
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 4.10.1-11
- Rebuilt for Python 3.9
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.10.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 4.10.1-9
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 4.10.1-8
- Rebuilt for Python 3.8
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.10.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.10.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Tue Jul 17 2018 Miro Hrončok <mhroncok@redhat.com> - 4.10.1-5
- Update Python macros to new packaging standards
(See https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package)
* Sun Jul 15 2018 William Cohen <wcohen@redhat.com> - 4.10.1-4
- Add gcc Buildrequires.
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.10.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 4.10.1-2
- Rebuilt for Python 3.7
* Fri Jun 15 2018 William Cohen <wcohen@redhat.com> - 4.10.1-1 * Fri Jun 15 2018 William Cohen <wcohen@redhat.com> - 4.10.1-1
- Rebase on libpfm-4.10.1. - Rebase on libpfm-4.10.1.