Compare commits
No commits in common. "rawhide" and "f42" have entirely different histories.
6 changed files with 105 additions and 1 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/wult-*.tar.gz
|
||||
3
README.md
Normal file
3
README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# wult
|
||||
|
||||
The wult package
|
||||
|
|
@ -1 +0,0 @@
|
|||
Orphaned for 6+ weeks
|
||||
11
exclude-dirs.patch
Normal file
11
exclude-dirs.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- a/setup.py 2024-04-15 17:56:05.560501673 +0300
|
||||
+++ b/setup.py 2024-04-15 17:56:15.710474879 +0300
|
||||
@@ -61,8 +61,6 @@
|
||||
data_files=get_data_files("share/man/man1", "docs/man1") + \
|
||||
get_data_files("share/wult/helpers/wult-freq-helper", "helpers/wult-freq-helper",
|
||||
exclude=_PYTHON_HELPERS) + \
|
||||
- get_data_files("share/wult/drivers", "drivers") + \
|
||||
- get_data_files("share/wult/helpers", "helpers") + \
|
||||
get_data_files("share/wult/defs/wult", "defs/wult"),
|
||||
scripts=_TOOLNAMES + _PYTHON_HELPERS,
|
||||
packages=find_packages(),
|
||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
SHA512 (wult-1.12.26.tar.gz) = a9b22ae62410cd2a46137328abdc206deaebd7ad80b4f21b156a965882c1877af9aef0de5a5467b4d9ad5264bed3941237f7fb3158872ee88f0e879bd369d290
|
||||
89
wult.spec
Normal file
89
wult.spec
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
Name: wult
|
||||
Version: 1.12.26
|
||||
Release: %autorelease
|
||||
Summary: A tool for measuring C-state latency in Linux
|
||||
|
||||
License: BSD-3-Clause AND GPL-2.0-only
|
||||
Url: https://github.com/intel/wult
|
||||
Source0: %url/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
# exclude backup kernel driver and duplications
|
||||
Patch0: exclude-dirs.patch
|
||||
|
||||
# measuring C-state latency for Intel architectures
|
||||
ExclusiveArch: x86_64
|
||||
|
||||
BuildRequires: bpftool
|
||||
BuildRequires: clang
|
||||
BuildRequires: gcc
|
||||
BuildRequires: make
|
||||
BuildRequires: kernel-devel
|
||||
BuildRequires: libbpf-devel
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pytest
|
||||
Requires: pciutils
|
||||
Requires: pepc
|
||||
Requires: python3-%{name} = %{version}-%{release}
|
||||
|
||||
%description
|
||||
The name Wult comes from "Wake Up Latency Tracer". Wult measures C-state
|
||||
latency by scheduling a delayed interrupt at a known time in the future, so it
|
||||
relies on devices allowing for delayed interrupts. Today wult can use LAPIC as
|
||||
the source of delayed interrupts, as well as I210 PCIe Gigabit Ethernet
|
||||
adapter. However, other devices could be supported as well, for example other
|
||||
Intel Ethernet adapters.
|
||||
|
||||
%package -n python3-%{name}
|
||||
Summary: Wult Python library
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n python3-%{name}
|
||||
Wult Python libraries
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-%{version}
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires -r
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%make_build -C helpers/ndl-helper
|
||||
%make_build -C helpers/wult-freq-helper
|
||||
%make_build -C helpers/wult-hrt-helper
|
||||
%make_build -C helpers/wult-tdt-helper
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files wultlibs wulttools
|
||||
|
||||
install -pDm755 helpers/ndl-helper/ndl-helper %{buildroot}%{_bindir}/ndl-helper
|
||||
install -pDm755 helpers/wult-freq-helper/wult-freq-helper %{buildroot}%{_bindir}/wult-freq-helper
|
||||
install -pDm755 helpers/wult-hrt-helper/wult-hrt-helper %{buildroot}%{_bindir}/wult-hrt-helper
|
||||
install -pDm755 helpers/wult-tdt-helper/wult-tdt-helper %{buildroot}%{_bindir}/wult-tdt-helper
|
||||
|
||||
%check
|
||||
%pytest -v
|
||||
|
||||
%files
|
||||
%doc README.md CHANGELOG.md
|
||||
%license LICENSE.md
|
||||
%{_bindir}/exercise-sut
|
||||
%{_bindir}/ndl
|
||||
%{_bindir}/ndl-helper
|
||||
%{_bindir}/pbe
|
||||
%{_bindir}/wult
|
||||
%{_bindir}/wult-freq-helper
|
||||
%{_bindir}/wult-hrt-helper
|
||||
%{_bindir}/wult-tdt-helper
|
||||
%{_datadir}/wult
|
||||
%{_mandir}/man1/exercise-sut*.1.gz
|
||||
%{_mandir}/man1/ndl-*1.gz
|
||||
%{_mandir}/man1/pbe-*1.gz
|
||||
%{_mandir}/man1/wult-*.1.gz
|
||||
|
||||
%files -n python3-%{name} -f %{pyproject_files}
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
Loading…
Add table
Add a link
Reference in a new issue