pmdabcc and pmdabpf: support arm and powerpc, resolve compilation issues of some bcc PMDA modules

* pmdabcc: resolve compilation issues of some bcc PMDA modules on aarch64, ppc64le and s390x
* pmdabpf: support arm and powerpc architectures

Resolves: rhbz#2024982
Resolves: rhzb#2024980
This commit is contained in:
Andreas Gerstmayr 2021-12-14 13:39:17 +01:00
parent af3b85f31e
commit 51663f5738
3 changed files with 333302 additions and 3 deletions

View File

@ -1,6 +1,6 @@
Name: pcp
Version: 5.3.5
Release: 3%{?dist}
Release: 4%{?dist}
Summary: System-level performance monitoring and performance management
License: GPLv2+ and LGPLv2+ and CC-BY
URL: https://pcp.io
@ -13,6 +13,8 @@ Patch1: redhat-bugzilla-2029301.patch
Patch2: redhat-bugzilla-2030121.patch
Patch3: redhat-bugzilla-2027753.patch
Patch4: redhat-bugzilla-2030140.patch
Patch5: redhat-bugzilla-2024982.patch
Patch6: redhat-bugzilla-2024980.patch
%if 0%{?fedora} >= 26 || 0%{?rhel} > 7
%global __python2 python2
@ -96,9 +98,9 @@ Patch4: redhat-bugzilla-2030140.patch
%global disable_bcc 1
%endif
# support for pmdabpf, check bpf.spec for supported architectures of bpf
# support for pmdabpf, check bcc.spec for supported architectures of libbpf-tools
%if 0%{?fedora} >= 33 || 0%{?rhel} > 8
%ifarch x86_64 %{power64} aarch64 s390x
%ifarch x86_64 ppc64 ppc64le aarch64
%global disable_bpf 0
%else
%global disable_bpf 1
@ -2286,6 +2288,8 @@ updated policy package.
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%build
# the buildsubdir macro gets defined in %setup and is apparently only available in the next step (i.e. the %build step)
@ -3376,6 +3380,12 @@ PCP_LOG_DIR=%{_logsdir}
%files zeroconf -f pcp-zeroconf-files.rpm
%changelog
* Wed Dec 15 2021 Nathan Scott <nathans@redhat.com> - 5.3.5-4
- pmdabcc: resolve compilation issues of some bcc PMDA modules on
aarch64, ppc64le and s390x (BZ 2024982)
- pmdabpf: support arm and powerpc architectures (BZ 2024980)
- TODO
* Thu Dec 09 2021 Nathan Scott <nathans@redhat.com> - 5.3.5-3
- Resolve failure in the Nvidia metrics agent (BZ 2030123)
- PMDA indom cache loading performance improvements (BZ 2030122)

331856
redhat-bugzilla-2024980.patch Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff