From fe637026d333780dfdcfe47b6fc273d6e551175f Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Aug 01 2017 03:32:46 +0000 Subject: import intel-cmt-cat-0.1.5-2.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c61b88a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/v0.1.5-1.tar.gz diff --git a/.intel-cmt-cat.metadata b/.intel-cmt-cat.metadata new file mode 100644 index 0000000..b279004 --- /dev/null +++ b/.intel-cmt-cat.metadata @@ -0,0 +1 @@ +602d87401fa1fffa2ed9f28802a2e9513115c248 SOURCES/v0.1.5-1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/intel-cmt-cat.spec b/SPECS/intel-cmt-cat.spec new file mode 100644 index 0000000..607fe12 --- /dev/null +++ b/SPECS/intel-cmt-cat.spec @@ -0,0 +1,167 @@ +# 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 ver014 0.1.4 +%global ver015 0.1.5 +%global ver0151 0.1.5 +%global githubname intel-cmt-cat +%global githubver %{ver0151} + +%if "%{githubver}" == "%{ver0151}" +%global githubfull %{githubname}-%{githubver}-1 +%else +%global githubfull %{githubname}-%{githubver} +%endif + +%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} + +%if "%{githubver}" == "%{ver015}" +Release: 2%{?dist} +%endif +%if "%{githubver}" == "%{ver014}" +Release: 3%{?dist} +%endif + +License: BSD +Group: Development/Tools +ExclusiveArch: x86_64 i686 i586 +%if "%{githubver}" == "%{ver0151}" +Source0: https://github.com/01org/%{githubname}/archive/v%{githubver}-1.tar.gz +%else +Source0: https://github.com/01org/%{githubname}/archive/v%{githubver}.tar.gz +%endif +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} + +%if "%{githubver}" == "%{ver015}" +%post -p /sbin/ldconfig +%endif + +%build +make %{?_smp_mflags} + +%install +# Not doing make install as it strips the symbols. +# Using files from the build directory. +%if "%{githubver}" == "%{ver015}" || "%{githubver}" == "%{ver0151}" +install -d %{buildroot}/%{_bindir} +install %{_builddir}/%{githubfull}/pqos/pqos %{buildroot}/%{_bindir} + +install -d %{buildroot}/%{_mandir}/man8 +install -m 0644 %{_builddir}/%{githubfull}/pqos/pqos.8 %{buildroot}/%{_mandir}/man8 + +install -d %{buildroot}/%{_bindir} +install %{_builddir}/%{githubfull}/rdtset/rdtset %{buildroot}/%{_bindir} + +install -d %{buildroot}/%{_mandir}/man8 +install -m 0644 %{_builddir}/%{githubfull}/rdtset/rdtset.8 %{buildroot}/%{_mandir}/man8 + +install -d %{buildroot}/%{_licensedir}/%{name}-%{version} +install -m 0644 %{_builddir}/%{githubfull}/LICENSE %{buildroot}/%{_licensedir}/%{name}-%{version} + +install -d %{buildroot}/%{_libdir} +%if "%{githubver}" == "%{ver0151}" +install %{_builddir}/%{githubfull}/lib/libpqos-0.1.6.so %{buildroot}/%{_libdir} +%else +install %{_builddir}/%{githubfull}/lib/libpqos-0.1.5.so %{buildroot}/%{_libdir} +%endif +%endif + +%if "%{githubver}" == "%{ver014}" +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} +%endif + +%files +%{_bindir}/pqos +%{_mandir}/man8/pqos.8.gz + +%if "%{githubver}" == "%{ver015}" || "%{githubver}" == "%{ver0151}" +%{_bindir}/rdtset +%{_mandir}/man8/rdtset.8.gz +%if "%{githubver}" == "%{ver0151}" +%{_libdir}/libpqos-0.1.6.so +%else +%{_libdir}/libpqos-0.1.5.so +%endif +%endif + +%{!?_licensedir:%global license %%doc} +%license %{_licensedir}/%{name}-%{version}/LICENSE +%doc ChangeLog README + +%changelog +* Mon May 08 2017 Jiri Olsa 0.1.5-2 +- new version 0.1.5-1 +- change spec to follow fedora +- Resolves: rhbz#1448539 + +* Thu May 04 2017 Jiri Olsa 0.1.5-1 +- Resolves: rhbz#1315489 + +* Thu Mar 30 2017 Jiri Olsa 0.1.4-5 +- Resolves: rhbz#1315489 + +* Fri Feb 17 2017 Gopal Tiwari 0.1.4-4 +- Resolves: rhbz#1315489 + +* 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