代码拉取完成,页面将自动刷新
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Summary: Programs that test various rt-features
Name: rt-tests
# These will be setup by the "make rpm" logic
# Version: 1.0
# BuildRequires: numactl-devel
# Numa argument to make: NUMA=1
#
Version: 1.5
Release: 9%{?dist}
License: GPLv2
Group: Development/Tools
URL: git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git
Source0: https://www.kernel.org/pub/linux/utils/rt-tests/%{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Obsoletes: cyclictest signaltest pi_tests
ExclusiveArch: x86_64
BuildRequires: numactl-devel python
Requires: bash python bc
# Patches
Patch1: rt-tests-Makefile-do-not-use-python3-for-rhel7.8.patch
Patch2: rt-tests-hwlatdetect-use-python-instead-of-python3-f.patch
Patch3: rt-tests-Set-affinity-before-applying-numa.patch
Patch4: rt-tests-cyclictest.8-Remove-invalid-tracing-options.patch
Patch5: rt-tests-cyclictest-Make-tracemark-work-correctly-ag.patch
Patch6: rt-tests-cyclictest-Don-t-allow-OPT_SYSTEM-with-OPT_.patch
Patch7: pmqtest-Increase-buffer-to-avoid-overflow.patch
Patch8: sigwaittest-Increase-buffer-to-avoid-overflow.patch
Patch9: svsematest-Increase-buffer-to-avoid-overflow.patch
Patch10: deadline_test-Increase-buffer-to-avoid-overflow.patch
Patch11: rt-tests-cyclictest-Fix-warning-cpu-may-be-used-unin.patch
Patch12: rt-tests-cyclictest-Assume-libnuma-version-2-by-default.patch
%description
rt-tests is a set of programs that test and measure various components of
real-time kernel behavior. This package measures timer, signal, and hardware
latency. It also tests the functioning of priority-inheritance mutexes.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%build
make NUMA=1 HAVE_PARSE_CPUSTRING_ALL=1
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{python_sitelib}
make DESTDIR=$RPM_BUILD_ROOT prefix=/usr install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{python_sitelib}/hwlatdetect.py*
%caps(cap_sys_rawio+ep) /usr/bin/cyclictest
/usr/bin/pi_stress
/usr/bin/signaltest
/usr/bin/hwlatdetect
/usr/bin/rt-migrate-test
/usr/bin/pip_stress
/usr/bin/ptsematest
/usr/bin/sigwaittest
/usr/bin/svsematest
/usr/bin/pmqtest
/usr/bin/hackbench
/usr/bin/cyclicdeadline
/usr/bin/deadline_test
/usr/bin/determine_maximum_mpps.sh
/usr/bin/get_cpuinfo_mhz.sh
/usr/bin/queuelat
/usr/bin/ssdd
%doc
/usr/share/man/man8/cyclictest.8.gz
/usr/share/man/man8/hackbench.8.gz
/usr/share/man/man8/hwlatdetect.8.gz
/usr/share/man/man8/pi_stress.8.gz
/usr/share/man/man8/pmqtest.8.gz
/usr/share/man/man8/ptsematest.8.gz
/usr/share/man/man8/rt-migrate-test.8.gz
/usr/share/man/man8/signaltest.8.gz
/usr/share/man/man8/sigwaittest.8.gz
/usr/share/man/man8/svsematest.8.gz
/usr/share/man/man8/deadline_test.8.gz
/usr/share/man/man8/pip_stress.8.gz
/usr/share/man/man8/queuelat.8.gz
/usr/share/man/man8/ssdd.8.gz
%changelog
* Thur Feb 23 2023 liyulei <liyulei@kylinos.cn> - 1.5-9
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。