diff --git a/README.en.md b/README.en.md index 7268e1df23fb87d06ee042e6efcb06817169e222..414b1f62a521f958013b0411823a0867159200aa 100644 --- a/README.en.md +++ b/README.en.md @@ -1,36 +1,3 @@ # rteval -#### Description The rteval script is a utility for measuring various aspects of realtime behavior on a system under load. - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md index 68742c28f2227b2d7981675b777302ce5ddd5eea..b7c6671305e07dc92370864e14761e699ef7b553 100644 --- a/README.md +++ b/README.md @@ -1,37 +1,3 @@ # rteval -#### 介绍 -The rteval script is a utility for measuring various aspects of realtime behavior on a system under load. - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) +rteval脚本是一个实用程序,用于测量负载下系统的实时行为的各个方面。 diff --git a/rteval-2.14.tar.bz2 b/rteval-2.14.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..9bea3351fdae2e17cf464a2ff03f9967435b1ec1 Binary files /dev/null and b/rteval-2.14.tar.bz2 differ diff --git a/rteval.spec b/rteval.spec new file mode 100644 index 0000000000000000000000000000000000000000..24e27bb7b50851f5aef4e4724b3b1027b0039a61 --- /dev/null +++ b/rteval.spec @@ -0,0 +1,98 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_ver: %define python_ver %(%{__python} -c "import sys ; print sys.version[:3]")} + +Name: rteval +Version: 2.14 +Release: 1%{?dist} +Summary: Utility to evaluate system suitability for RT Linux + +Group: Development/Tools +License: GPLv2 +URL: http://git.kernel.org/?p=linux/kernel/git/clrkwllms/rteval.git +Source0: rteval-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: python +Requires: python +Requires: python-schedutils python-ethtool python-lxml +Requires: rt-tests >= 0.97 +Requires: rteval-loads >= 1.4 +Requires: rteval-common => %{version}-%{release} +Requires: trace-cmd +Requires: sysstat +Requires: bzip2 +Requires: kernel-headers +BuildArch: noarch +Obsoletes: rteval <= 1.7 +Requires: numactl + +%description +The rteval script is a utility for measuring various aspects of +realtime behavior on a system under load. The script unpacks the +kernel source, and then goes into a loop, running hackbench and +compiling a kernel tree. During that loop the cyclictest program +is run to measure event response time. After the run time completes, +a statistical analysis of the event response times is done and printed +to the screen. + + +%package common +Summary: Common rteval files +BuildArch: noarch + +%description common +Common files used by rteval, rteval-xmlrpc and rteval-parser + +%prep +%setup -q + +# version sanity check (make sure specfile and rteval.py match) +cp rteval/version.py rtevalversion.py +srcver=$(%{__python} -c "from rtevalversion import RTEVAL_VERSION; print RTEVAL_VERSION") +rm -rf rtevalversion.py +if [ $srcver != %{version} ]; then + printf "\n***\n*** rteval spec file version do not match the rteval/rteval.py version\n***\n\n" + exit -1 +fi + +%build +%{__python} setup.py build + +%install +%{__python} setup.py install --root=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files common +%doc COPYING +%dir %{_datadir}/%{name} +%{python_sitelib}/rteval/rtevalclient.py* +%{python_sitelib}/rteval/rtevalConfig.py* +%{python_sitelib}/rteval/rtevalXMLRPC.py* +%{python_sitelib}/rteval/version.py* +%{python_sitelib}/rteval/Log.py* +%{python_sitelib}/rteval/misc.py* +%{python_sitelib}/rteval/systopology.py* + +%files +%defattr(-,root,root,-) +%if "%{python_ver}" >= "2.5" +%{python_sitelib}/*.egg-info +%endif + +%doc COPYING README doc/rteval.txt +%{_mandir}/man8/rteval.8.gz +%config(noreplace) %{_sysconfdir}/rteval.conf +%{_datadir}/%{name}/rteval_*.xsl +%{python_sitelib}/rteval/__init__.py* +%{python_sitelib}/rteval/rtevalMailer.py* +%{python_sitelib}/rteval/rtevalReport.py* +%{python_sitelib}/rteval/xmlout.py* +%{python_sitelib}/rteval/modules +%{python_sitelib}/rteval/sysinfo +/usr/bin/rteval + +%changelog +* Thur Feb 23 2023 zhangyu - 2.14-1 +- Package init diff --git a/rteval.yaml b/rteval.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0c4728bef6dc4f0522ba1b8c5f8ca07aea345ed4 --- /dev/null +++ b/rteval.yaml @@ -0,0 +1,7 @@ +name: rteval +description: The rteval script is a utility for measuring various aspects of realtime behavior on a system under load. +upstream: https://git.kernel.org/pub/scm/utils/rteval/rteval.git +branches: +- name: master + type: protected +type: public