SHA256
1
0
forked from pool/rtla

Accepting request 980624 from home:wagi

I want to maintain rtla in Factory and would like to use benchmark as devel/feeder project.

OBS-URL: https://build.opensuse.org/request/show/980624
OBS-URL: https://build.opensuse.org/package/show/benchmark/rtla?expand=0&rev=1
This commit is contained in:
David Sterba 2022-06-03 13:55:05 +00:00 committed by Git OBS Bridge
commit fb9ec1e3e6
4 changed files with 94 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

4
rtla.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Fri Feb 11 17:07:20 UTC 2022 - Daniel Wagner <daniel.wagner@suse.com>
- Initial packaging of rtla.

66
rtla.spec Normal file
View File

@ -0,0 +1,66 @@
#
# spec file for package rtla
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define version %(rpm -q --qf '%%{VERSION}' kernel-source)
Name: rtla
Version: %{version}
Release: 0
Summary: Real-Time Linux Analysis tools
License: GPL-2.0-only
URL: https://www.kernel.org/
BuildRequires: libtracefs-devel >= 1.3
BuildRequires: libtraceevent-devel >= 1.5
BuildRequires: procps-devel
BuildRequires: kernel-source >= 5.17
BuildRequires: python3-docutils
%description
The rtla is a meta-tool that includes a set of commands that
aims to analyze the real-time properties of Linux. But, instead of
testing Linux as a black box, rtla leverages kernel tracing
capabilities to provide precise information about the properties
and root causes of unexpected results.
%prep
(cd %{_prefix}/src/linux ; tar -cf - COPYING CREDITS README tools include scripts Kbuild Makefile arch/*/{include,lib,Makefile} lib Documentation/tools/rtla) | tar -xf -
%build
cd tools/tracing/rtla
make %{?_smp_mflags}
%install
cd tools/tracing/rtla
make install DESTDIR=%{buildroot}
# Fixup symlinks as they are pointing to DESTDIR instead prefix
rm %{buildroot}%{_bindir}/osnoise
rm %{buildroot}%{_bindir}/timerlat
ln -sf %{_bindir}/rtla %{buildroot}%{_bindir}/osnoise
ln -sf %{_bindir}/rtla %{buildroot}%{_bindir}/timerlat
%files
%license COPYING
%doc CREDITS README
%{_mandir}/man1/rtla*.1*%{?ext_man}
%{_bindir}/rtla
%{_bindir}/osnoise
%{_bindir}/timerlat
%changelog