Compare commits

...

No commits in common. "imports/c8-beta/perftest-4.2-2.el8" and "c8" have entirely different histories.

4 changed files with 75 additions and 43 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/perftest-4.2-0.8.g0e24e67.tar.gz
SOURCES/perftest-23.07.0-0.27.g117a291.tar.gz

View File

@ -1 +0,0 @@
398cb7cff2dfcf1d1e67a44c9bd4b98df9983e30 SOURCES/perftest-4.2-0.8.g0e24e67.tar.gz

View File

@ -1,13 +0,0 @@
Index: perftest-4.2/configure.ac
===================================================================
--- perftest-4.2.orig/configure.ac
+++ perftest-4.2/configure.ac
@@ -310,7 +310,7 @@ if [test $HAVE_EXP_OOO_ATTR = yes]; then
AC_DEFINE([HAVE_EXP_OOO_ATTR], [1], [Have Experimental Out of order data placement support])
fi
-CFLAGS="-g -Wall -D_GNU_SOURCE -O3 $CFLAGS"
+CFLAGS+=" -g -Wall -D_GNU_SOURCE -O3 $CFLAGS"
LIBS=$LIBS" -lpthread"
AC_SUBST([LIBUMAD])
AC_SUBST([LIBMATH])

View File

@ -1,20 +1,23 @@
Name: perftest
Summary: IB Performance Tests
Version: 4.2
%define minor_release 0.8
%define git_hash g0e24e67
Release: 2%{?dist}
License: GPLv2 or BSD
Group: Productivity/Networking/Diagnostic
Source0: https://github.com/linux-rdma/perftest/releases/download/V%{version}-%{minor_release}/perftest-%{version}-%{minor_release}.%{git_hash}.tar.gz
Name: perftest
Summary: IB Performance Tests
# Upstream uses a dash in the version. Not valid in the Version field, so we use a dot instead.
# Issue "Please avoid dashes in version":
# https://github.com/linux-rdma/perftest/issues/18
%global upstream_ver 23.07.0-0.27
Version: %{lua: print((string.gsub(rpm.expand("%{upstream_ver}"),"-",".")))}
Release: 1%{?dist}
License: GPLv2 or BSD
Source: https://github.com/linux-rdma/perftest/releases/download/23.07.0-0.27/perftest-23.07.0-0.27.g117a291.tar.gz
Source1: ib_atomic_bw.1
Patch1: perftest-4.2-cflags.patch
Url: http://www.openfabrics.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libibverbs-devel > 1.1.4, librdmacm-devel > 1.0.14
BuildRequires: libibumad-devel > 1.3.6
BuildRequires: autoconf, automake, libtool
Obsoletes: openib-perftest < 1.3
Url: https://github.com/linux-rdma/perftest
BuildRequires: make
BuildRequires: gcc
BuildRequires: libibverbs-devel >= 1.2.0
BuildRequires: librdmacm-devel >= 1.0.21
BuildRequires: libibumad-devel >= 1.3.10.2
BuildRequires: pciutils-devel
Obsoletes: openib-perftest < 1.3
%description
Perftest is a collection of simple test programs designed to utilize
@ -23,20 +26,18 @@ connections. It does not work on normal TCP/IP networks, only on
RDMA networks.
%prep
%setup -q
%patch1 -p1
autoreconf --force --install
# The directory in the tarball has only the part before the dash.
%global tarball_ver %{lua: _,_,v=string.find(rpm.expand("%{upstream_ver}"),"([^-]+)"); print(v)}
%setup -q -n %{name}-%{tarball_ver}
find src -type f -iname '*.[ch]' -exec chmod a-x '{}' ';'
%build
%configure
make V=1 %{?_smp_mflags}
%make_build
%install
rm -rf %{buildroot}
for file in ib_{atomic,read,send,write}_{lat,bw}; do
install -D -m 0755 $file %{buildroot}%{_bindir}/$file
done
for file in raw_ethernet_{lat,bw}; do
for file in ib_{atomic,read,send,write}_{lat,bw} raw_ethernet_{lat,bw}; do
install -D -m 0755 $file %{buildroot}%{_bindir}/$file
done
mkdir -p %{buildroot}%{_mandir}/man1/
@ -48,12 +49,57 @@ done
popd
%files
%defattr(-, root, root)
%doc README COPYING
%{_bindir}/*
%doc README
%{_mandir}/man1/*
%license COPYING
%_bindir/*
%changelog
* Thu Oct 26 2023 Kamal Heib <kheib@redhat.com> - 23.07.0.0.27-1
- Update to upstream release 23.07.0.0.27
- Resolves: RHEL-1270
* Tue Jul 18 2023 Kamal Heib <kheib@redhat.com> - 23.04.0.0.23-2
- Add missing Intel Parameters
- Resolves: rhbz#2211464
* Mon Jun 05 2023 Kamal Heib <kheib@redhat.com> - 23.04.0.0.23-1
- Update to upstream release 23.04.0.0.23
- Add gating tests
- Resolves: rhbz#2212517
* Wed Feb 08 2023 Michal Schmidt <mschmidt@redhat.com> - 4.5.0.20-4
- Rebase to upstream version 4.5-0.20
- Resolves: rhbz#2168109
* Wed Nov 10 2021 Honggang Li <honli@redhat.com> - 4.5-12
- Rebase to upstream release perftest-4.5-0.12
- Resolves: rhbz#2020062
* Thu May 13 2021 Honggang Li <honli@redhat.com> - 4.5-1
- Rebase to upstream release perftest-4.5-0.2
- Resolves: rhbz#1960074
* Sat Jan 30 2021 Honggang Li <honli@redhat.com> - 4.4-8
- Check PCIe relaxed ordering compliant
- Resolves: rhbz#1902855
* Thu Nov 05 2020 Honggang Li <honli@redhat.com> - 4.4-7
- Rebase to upstream release perftest-4.4-0.32
- Resolves: bz1888570
* Fri Jul 24 2020 Honggang Li <honli@redhat.com> - 4.4-3
- Fix segment fault with large QP numbers
- Resolves: rhbz#1859358
* Mon May 25 2020 Honggang Li <honli@redhat.com> - 4.4-2
- Update to upstream 4.4-0.29.g817ec38 tarball
- Resolves: rhbz#1832709
* Wed Apr 15 2020 Honggang Li <honli@redhat.com> - 4.4-1
- Update to upstream 4.4-0.23.g89e176a tarball
- Resolves: rhbz#1817830
* Mon Jul 23 2018 Jarod Wilson <jarod@redhat.com> - 4.2-2
- Update to upstream 4.2-0.8.g0e24e67 tarball