commit fb9ec1e3e6c7231f5067753d5ae5003482bcc358ce0961035b3ae7d5198a88d2 Author: David Sterba Date: Fri Jun 3 13:55:05 2022 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/rtla.changes b/rtla.changes new file mode 100644 index 0000000..68cc928 --- /dev/null +++ b/rtla.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Feb 11 17:07:20 UTC 2022 - Daniel Wagner + +- Initial packaging of rtla. diff --git a/rtla.spec b/rtla.spec new file mode 100644 index 0000000..a20a1c4 --- /dev/null +++ b/rtla.spec @@ -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