diff --git a/.gitignore b/.gitignore index e69de29..49dfd17 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/v0.1.4.tar.gz diff --git a/intel-cmt-cat.spec b/intel-cmt-cat.spec new file mode 100644 index 0000000..39679b3 --- /dev/null +++ b/intel-cmt-cat.spec @@ -0,0 +1,90 @@ +# Copyright (c) 2016, Intel Corporation +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# +# * Redistributions of source code must retain the above copyright notice, +# this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# * Neither the name of Intel Corporation nor the names of its contributors +# may be used to endorse or promote products derived from this software +# without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +%global githubname intel-cmt-cat +%global githubver 0.1.4 +%global githubfull %{githubname}-%{githubver} +%global pkgname intel-cmt-cat +%if 0%{!?_licensedir} +%global _licensedir %{_docdir} +%endif + +Summary: Provides command line interface to CMT, MBM, CAT and CDP technologies +Name: %{pkgname} +Version: %{githubver} +Release: 3%{?dist} +License: BSD +Group: Development/Tools +ExclusiveArch: x86_64 i686 i586 +Source0: https://github.com/01org/%{githubname}/archive/v%{githubver}.tar.gz +URL: https://github.com/01org/%{githubname} + +%description +This software package provides basic support for +Cache Monitoring Technology (CMT), Memory Bandwidth Monitoring (MBM), +Cache Allocation Technology (CAT) and Code Data Prioratization (CDP). + +CMT, MBM and CAT are configured using Model Specific Registers (MSRs) +to measure last level cache occupancy, set up the class of service masks and +manage the association of the cores/logical threads to a class of service. +The software executes in user space, and access to the MSRs is +obtained through a standard Linux* interface. The virtual file system +provides an interface to read and write the MSR registers but +it requires root privileges. + +%prep +%autosetup -n %{githubfull} + +%build +make %{?_smp_mflags} + +%install +# Not doing make install as it strips the symbols. +# Using files from the build directory. +install -d %{buildroot}/%{_bindir} +install %{_builddir}/%{githubfull}/pqos %{buildroot}/%{_bindir} + +install -d %{buildroot}/%{_mandir}/man8 +install -m 0644 %{_builddir}/%{githubfull}/pqos.8 %{buildroot}/%{_mandir}/man8 + +install -d %{buildroot}/%{_licensedir}/%{name}-%{version} +install -m 0644 %{_builddir}/%{githubfull}/LICENSE %{buildroot}/%{_licensedir}/%{name}-%{version} + +%files +%{_bindir}/pqos +%{_mandir}/man8/pqos.8.gz +%{!?_licensedir:%global license %%doc} +%license %{_licensedir}/%{name}-%{version}/LICENSE + +%changelog +* Tue Apr 19 2016 Tomasz Kantecki 0.1.4-3 +- global typo fix +- small edits in the description + +* Mon Apr 18 2016 Tomasz Kantecki 0.1.4-2 +- LICENSE file added to the package + +* Thu Apr 7 2016 Tomasz Kantecki 0.1.4-1 +- initial version of the package diff --git a/sources b/sources index e69de29..e3f195e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +fc62b64dde709a937285f77ed3895af8 v0.1.4.tar.gz